• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #ifndef CEF_TESTS_CEFSIMPLE_SIMPLE_APP_H_
6 #define CEF_TESTS_CEFSIMPLE_SIMPLE_APP_H_
7 
8 #include "include/cef_app.h"
9 
10 // Implement application-level callbacks for the browser process.
11 class SimpleApp : public CefApp, public CefBrowserProcessHandler {
12  public:
13   SimpleApp();
14 
15   // CefApp methods:
GetBrowserProcessHandler()16   CefRefPtr<CefBrowserProcessHandler> GetBrowserProcessHandler() override {
17     return this;
18   }
19 
20   // CefBrowserProcessHandler methods:
21   void OnContextInitialized() override;
22   CefRefPtr<CefClient> GetDefaultClient() override;
23 
24  private:
25   // Include the default reference counting implementation.
26   IMPLEMENT_REFCOUNTING(SimpleApp);
27 };
28 
29 #endif  // CEF_TESTS_CEFSIMPLE_SIMPLE_APP_H_
30