Skip to content
Snippets Groups Projects
fchost_app.h 1 KiB
Newer Older
  • Learn to ignore specific revisions
  • svornost's avatar
    svornost committed
    // Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
    // reserved. Use of this source code is governed by a BSD-style license that
    // can be found in the LICENSE file.
    
    #pragma once
    
    #include "include/cef_app.h"
    
    // Implement application-level callbacks for the browser process.
    
    class FCHostApp : public CefApp, public CefBrowserProcessHandler, public CefRenderProcessHandler {
    
    svornost's avatar
    svornost committed
     public:
      FCHostApp();
    
      // CefApp methods:
      virtual CefRefPtr<CefBrowserProcessHandler> GetBrowserProcessHandler()
          OVERRIDE {
        return this;
      }
    
      virtual CefRefPtr<CefRenderProcessHandler> GetRenderProcessHandler()
    	  OVERRIDE {
    	  return this;
      }
    
    svornost's avatar
    svornost committed
    
      // CefBrowserProcessHandler methods:
      virtual void OnContextInitialized() OVERRIDE;
    
      virtual void OnContextCreated(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, CefRefPtr<CefV8Context> context) OVERRIDE;
    
      CefString GetLocalStorePath();
    
    svornost's avatar
    svornost committed
    
     private:
      // Include the default reference counting implementation.
      IMPLEMENT_REFCOUNTING(FCHostApp);
    };