1 // Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
5 #ifndef CEF_TESTS_SHARED_COMMON_CLIENT_APP_H_
6 #define CEF_TESTS_SHARED_COMMON_CLIENT_APP_H_
11 #include "include/cef_app.h"
15 // Base class for customizing process-type-based behavior.
16 class ClientApp : public CefApp {
27 // Determine the process type based on command-line arguments.
28 static ProcessType GetProcessType(CefRefPtr<CefCommandLine> command_line);
31 // Schemes that will be registered with the global cookie manager.
32 std::vector<CefString> cookieable_schemes_;
35 // Registers custom schemes. Implemented by cefclient in
36 // client_app_delegates_common.cc
37 static void RegisterCustomSchemes(CefRawPtr<CefSchemeRegistrar> registrar,
38 std::vector<CefString>& cookiable_schemes);
41 void OnRegisterCustomSchemes(
42 CefRawPtr<CefSchemeRegistrar> registrar) OVERRIDE;
44 DISALLOW_COPY_AND_ASSIGN(ClientApp);
49 #endif // CEF_TESTS_SHARED_COMMON_CLIENT_APP_H_