mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-14 18:44:56 +01:00
afe3cb1d67
- Add CefRenderProcessHandler callbacks for WebWorker context creation, release and uncaught exceptions. - Add CefTaskRunner class that supports posting of tasks to standard threads and WebWorker threads. - Organize V8 internal state information on a per-thread/per-Isolate basis. - Add webkit_451.patch that provides the WebKit implementation. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@972 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
// Copyright (c) 2013 The Chromium Embedded Framework Authors.
|
|
// Portions copyright (c) 2011 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef CEF_LIBCEF_RENDERER_RENDER_PROCESS_OBSERVER_H_
|
|
#define CEF_LIBCEF_RENDERER_RENDER_PROCESS_OBSERVER_H_
|
|
|
|
#include "base/compiler_specific.h"
|
|
#include "content/public/renderer/render_process_observer.h"
|
|
|
|
struct Cef_CrossOriginWhiteListEntry_Params;
|
|
|
|
// This class sends and receives control messages on the renderer process.
|
|
class CefRenderProcessObserver : public content::RenderProcessObserver {
|
|
public:
|
|
CefRenderProcessObserver();
|
|
virtual ~CefRenderProcessObserver();
|
|
|
|
// RenderProcessObserver implementation.
|
|
virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
|
|
virtual void WebKitInitialized() OVERRIDE;
|
|
virtual void OnRenderProcessShutdown() OVERRIDE;
|
|
|
|
private:
|
|
// Message handlers called on the render thread.
|
|
void OnModifyCrossOriginWhitelistEntry(
|
|
bool add,
|
|
const Cef_CrossOriginWhiteListEntry_Params& params);
|
|
void OnClearCrossOriginWhitelist();
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(CefRenderProcessObserver);
|
|
};
|
|
|
|
#endif // CEF_LIBCEF_RENDERER_RENDER_PROCESS_OBSERVER_H_
|