mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-29 18:49:52 +01:00
e7ddc933c9
- Remove |accept_lang| parameter from CefJSDialogHandler::OnJSDialog and CefFormatUrlForSecurityDisplay (see https://crbug.com/336973#c36). - Remove remaining NPAPI-related code including functions from cef_web_plugin.h (see https://crbug.com/493212#c55). - Mac: 10.7+ deployment target is now required for client applications. - Mac: Remove CefBrowserHost::SetWindowVisibility (issue #1375). No replacement is required for windowed rendering. Use WasHidden for off-screen rendering. - Windows: Visual Studio 2015 Update 2 is now required when building CEF/Chromium.
81 lines
2.7 KiB
C++
81 lines
2.7 KiB
C++
// Copyright 2014 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_EXTENSIONS_EXTENSIONS_RENDERER_CLIENT_H_
|
|
#define CEF_LIBCEF_RENDERER_EXTENSIONS_EXTENSIONS_RENDERER_CLIENT_H_
|
|
|
|
#include <string>
|
|
|
|
#include "base/macros.h"
|
|
#include "base/memory/scoped_ptr.h"
|
|
#include "extensions/renderer/extensions_renderer_client.h"
|
|
#include "ui/base/page_transition_types.h"
|
|
|
|
class GURL;
|
|
|
|
namespace blink {
|
|
class WebFrame;
|
|
class WebLocalFrame;
|
|
struct WebPluginParams;
|
|
}
|
|
|
|
namespace content {
|
|
class BrowserPluginDelegate;
|
|
class RenderFrame;
|
|
class RenderView;
|
|
}
|
|
|
|
namespace extensions {
|
|
|
|
class Dispatcher;
|
|
class DispatcherDelegate;
|
|
class ExtensionsGuestViewContainerDispatcher;
|
|
class ResourceRequestPolicy;
|
|
|
|
class CefExtensionsRendererClient : public ExtensionsRendererClient {
|
|
public:
|
|
CefExtensionsRendererClient();
|
|
~CefExtensionsRendererClient() override;
|
|
|
|
// ExtensionsRendererClient implementation.
|
|
bool IsIncognitoProcess() const override;
|
|
int GetLowestIsolatedWorldId() const override;
|
|
|
|
// See CefContentRendererClient methods with the same names.
|
|
void RenderThreadStarted();
|
|
void RenderFrameCreated(content::RenderFrame* render_frame);
|
|
void RenderViewCreated(content::RenderView* render_view);
|
|
bool OverrideCreatePlugin(content::RenderFrame* render_frame,
|
|
const blink::WebPluginParams& params);
|
|
bool WillSendRequest(blink::WebFrame* frame,
|
|
ui::PageTransition transition_type,
|
|
const GURL& url,
|
|
GURL* new_url);
|
|
void RunScriptsAtDocumentStart(content::RenderFrame* render_frame);
|
|
void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame);
|
|
|
|
static bool ShouldFork(blink::WebLocalFrame* frame,
|
|
const GURL& url,
|
|
bool is_initial_navigation,
|
|
bool is_server_redirect,
|
|
bool* send_referrer);
|
|
static content::BrowserPluginDelegate* CreateBrowserPluginDelegate(
|
|
content::RenderFrame* render_frame,
|
|
const std::string& mime_type,
|
|
const GURL& original_url);
|
|
|
|
private:
|
|
std::unique_ptr<extensions::DispatcherDelegate> extension_dispatcher_delegate_;
|
|
std::unique_ptr<extensions::Dispatcher> extension_dispatcher_;
|
|
std::unique_ptr<extensions::ExtensionsGuestViewContainerDispatcher>
|
|
guest_view_container_dispatcher_;
|
|
std::unique_ptr<extensions::ResourceRequestPolicy> resource_request_policy_;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(CefExtensionsRendererClient);
|
|
};
|
|
|
|
} // namespace extensions
|
|
|
|
#endif // CEF_LIBCEF_RENDERER_EXTENSIONS_EXTENSIONS_RENDERER_CLIENT_H_
|