WebApp.h 534 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include <include/cef_app.h>
  3. #include "WebApp.h"
  4. namespace Atomic
  5. {
  6. // Base class for customizing process-type-based behavior.
  7. class WebApp : public CefApp
  8. {
  9. public:
  10. enum ProcessType
  11. {
  12. BrowserProcess,
  13. RendererProcess,
  14. ZygoteProcess,
  15. OtherProcess,
  16. };
  17. WebApp();
  18. // Determine the process type based on command-line arguments.
  19. static ProcessType GetProcessType(CefRefPtr<CefCommandLine> command_line);
  20. private:
  21. DISALLOW_COPY_AND_ASSIGN(WebApp);
  22. };
  23. }