diff --git a/CHROMIUM_BUILD_COMPATIBILITY.txt b/CHROMIUM_BUILD_COMPATIBILITY.txt
index 1f5da7df9..1b70b0d2a 100644
--- a/CHROMIUM_BUILD_COMPATIBILITY.txt
+++ b/CHROMIUM_BUILD_COMPATIBILITY.txt
@@ -17,5 +17,5 @@
{
'chromium_url': 'http://src.chromium.org/svn/trunk/src',
- 'chromium_revision': '131752',
+ 'chromium_revision': '133430',
}
diff --git a/cef.gyp b/cef.gyp
index 38ca76a13..786249a71 100644
--- a/cef.gyp
+++ b/cef.gyp
@@ -802,7 +802,6 @@
'libcef/browser/resource_request_job.cc',
'libcef/browser/resource_request_job.h',
'libcef/browser/scheme_impl.cc',
- 'libcef/browser/scheme_impl.h',
'libcef/browser/sqlite_diagnostics_stub.cc',
'libcef/browser/stream_impl.cc',
'libcef/browser/stream_impl.h',
@@ -840,6 +839,8 @@
'libcef/common/response_impl.h',
'libcef/common/response_manager.cc',
'libcef/common/response_manager.h',
+ 'libcef/common/scheme_registrar_impl.cc',
+ 'libcef/common/scheme_registrar_impl.h',
'libcef/common/string_list_impl.cc',
'libcef/common/string_map_impl.cc',
'libcef/common/string_multimap_impl.cc',
@@ -862,8 +863,6 @@
'libcef/renderer/content_renderer_client.h',
'libcef/renderer/frame_impl.cc',
'libcef/renderer/frame_impl.h',
- 'libcef/renderer/render_message_filter.cc',
- 'libcef/renderer/render_message_filter.h',
'libcef/renderer/render_process_observer.cc',
'libcef/renderer/render_process_observer.h',
'libcef/renderer/thread_util.h',
@@ -1053,11 +1052,17 @@
'sources': [
'tests/cefclient/client_app.cpp',
'tests/cefclient/client_app.h',
+ 'tests/cefclient/client_switches.cpp',
+ 'tests/cefclient/client_switches.h',
'tests/cefclient/process_helper_mac.cpp',
'tests/unittests/client_app_delegates.cc',
+ 'tests/unittests/cookie_unittest.cc',
'tests/unittests/process_message_unittest.cc',
+ 'tests/unittests/scheme_handler_unittest.cc',
'tests/unittests/test_handler.cc',
'tests/unittests/test_handler.h',
+ 'tests/unittests/test_suite.cc',
+ 'tests/unittests/test_suite.h',
'tests/unittests/test_util.cc',
'tests/unittests/test_util.h',
'tests/unittests/v8_unittest.cc',
diff --git a/cef_paths.gypi b/cef_paths.gypi
index a35600de2..0d52642f7 100644
--- a/cef_paths.gypi
+++ b/cef_paths.gypi
@@ -150,6 +150,8 @@
'libcef_dll/cpptoc/response_cpptoc.h',
'libcef_dll/ctocpp/scheme_handler_factory_ctocpp.cc',
'libcef_dll/ctocpp/scheme_handler_factory_ctocpp.h',
+ 'libcef_dll/cpptoc/scheme_registrar_cpptoc.cc',
+ 'libcef_dll/cpptoc/scheme_registrar_cpptoc.h',
'libcef_dll/cpptoc/stream_reader_cpptoc.cc',
'libcef_dll/cpptoc/stream_reader_cpptoc.h',
'libcef_dll/cpptoc/stream_writer_cpptoc.cc',
@@ -246,6 +248,8 @@
'libcef_dll/ctocpp/response_ctocpp.h',
'libcef_dll/cpptoc/scheme_handler_factory_cpptoc.cc',
'libcef_dll/cpptoc/scheme_handler_factory_cpptoc.h',
+ 'libcef_dll/ctocpp/scheme_registrar_ctocpp.cc',
+ 'libcef_dll/ctocpp/scheme_registrar_ctocpp.h',
'libcef_dll/ctocpp/stream_reader_ctocpp.cc',
'libcef_dll/ctocpp/stream_reader_ctocpp.h',
'libcef_dll/ctocpp/stream_writer_ctocpp.cc',
diff --git a/cef_paths2.gypi b/cef_paths2.gypi
index 3bd4ea87a..3bae63a3d 100644
--- a/cef_paths2.gypi
+++ b/cef_paths2.gypi
@@ -10,6 +10,8 @@
'variables': {
'includes_common': [
'include/cef_base.h',
+ 'include/cef_pack_resources.h',
+ 'include/cef_pack_strings.h',
'include/cef_runnable.h',
'include/cef_version.h',
'include/internal/cef_build.h',
@@ -130,6 +132,8 @@
'tests/cefclient/process_helper_mac.cpp',
'tests/cefclient/resource_util.h',
'tests/cefclient/resource_util_mac.mm',
+ 'tests/cefclient/scheme_test.cpp',
+ 'tests/cefclient/scheme_test.h',
'tests/cefclient/string_util.cpp',
'tests/cefclient/string_util.h',
'tests/cefclient/util.h',
diff --git a/include/capi/cef_app_capi.h b/include/capi/cef_app_capi.h
index b39bd3ae2..1930d046b 100644
--- a/include/capi/cef_app_capi.h
+++ b/include/capi/cef_app_capi.h
@@ -125,6 +125,15 @@ typedef struct _cef_app_t {
struct _cef_app_t* self, const cef_string_t* process_type,
struct _cef_command_line_t* command_line);
+ ///
+ // Provides an opportunity to register custom schemes. Do not keep a reference
+ // to the |registrar| object. This function is called on the main thread for
+ // each process and the registered schemes should be the same across all
+ // processes.
+ ///
+ void (CEF_CALLBACK *on_register_custom_schemes)(struct _cef_app_t* self,
+ struct _cef_scheme_registrar_t* registrar);
+
///
// Return the handler for render process events. This function is called by
// the render process main thread.
diff --git a/include/capi/cef_frame_capi.h b/include/capi/cef_frame_capi.h
index 543c37ffe..52da143b6 100644
--- a/include/capi/cef_frame_capi.h
+++ b/include/capi/cef_frame_capi.h
@@ -144,8 +144,8 @@ typedef struct _cef_frame_t {
// reporting.
///
void (CEF_CALLBACK *execute_java_script)(struct _cef_frame_t* self,
- const cef_string_t* jsCode, const cef_string_t* scriptUrl,
- int startLine);
+ const cef_string_t* code, const cef_string_t* script_url,
+ int start_line);
///
// Returns true (1) if this is the main (top-level) frame.
diff --git a/include/capi/cef_scheme_capi.h b/include/capi/cef_scheme_capi.h
index 5897f3840..b7fb63294 100644
--- a/include/capi/cef_scheme_capi.h
+++ b/include/capi/cef_scheme_capi.h
@@ -45,53 +45,6 @@ extern "C" {
#include "include/capi/cef_base_capi.h"
-///
-// Register a custom scheme. This function should not be called for the built-in
-// HTTP, HTTPS, FILE, FTP, ABOUT and DATA schemes.
-//
-// If |is_standard| is true (1) the scheme will be treated as a standard scheme.
-// Standard schemes are subject to URL canonicalization and parsing rules as
-// defined in the Common Internet Scheme Syntax RFC 1738 Section 3.1 available
-// at http://www.ietf.org/rfc/rfc1738.txt
-//
-// In particular, the syntax for standard scheme URLs must be of the form:
-// [scheme]://[username]:[password]@[host]:[port]/[url-path]
-//
Standard scheme URLs must have a host component that is a fully
-// qualified domain name as defined in Section 3.5 of RFC 1034 [13] and Section
-// 2.1 of RFC 1123. These URLs will be canonicalized to "scheme://host/path" in
-// the simplest case and "scheme://username:password@host:port/path" in the most
-// explicit case. For example, "scheme:host/path" and "scheme:///host/path" will
-// both be canonicalized to "scheme://host/path". The origin of a standard
-// scheme URL is the combination of scheme, host and port (i.e.,
-// "scheme://host:port" in the most explicit case).
-//
-// For non-standard scheme URLs only the "scheme:" component is parsed and
-// canonicalized. The remainder of the URL will be passed to the handler as-is.
-// For example, "scheme:///some%20text" will remain the same. Non-standard
-// scheme URLs cannot be used as a target for form submission.
-//
-// If |is_local| is true (1) the scheme will be treated as local (i.e., with the
-// same security rules as those applied to "file" URLs). Normal pages cannot
-// link to or access local URLs. Also, by default, local URLs can only perform
-// XMLHttpRequest calls to the same URL (origin + path) that originated the
-// request. To allow XMLHttpRequest calls from a local URL to other URLs with
-// the same origin set the CefSettings.file_access_from_file_urls_allowed value
-// to true (1). To allow XMLHttpRequest calls from a local URL to all origins
-// set the CefSettings.universal_access_from_file_urls_allowed value to true
-// (1).
-//
-// If |is_display_isolated| is true (1) the scheme will be treated as display-
-// isolated. This means that pages cannot display these URLs unless they are
-// from the same scheme. For example, pages in another origin cannot create
-// iframes or hyperlinks to URLs with this scheme.
-//
-// This function may be called on any thread. It should only be called once per
-// unique |scheme_name| value. If |scheme_name| is already registered or if an
-// error occurs this function will return false (0).
-///
-CEF_EXPORT int cef_register_custom_scheme(const cef_string_t* scheme_name,
- int is_standard, int is_local, int is_display_isolated);
-
///
// Register a scheme handler factory for the specified |scheme_name| and
// optional |domain_name|. An NULL |domain_name| value for a standard scheme
@@ -99,7 +52,7 @@ CEF_EXPORT int cef_register_custom_scheme(const cef_string_t* scheme_name,
// will be ignored for non-standard schemes. If |scheme_name| is a built-in
// scheme and no handler is returned by |factory| then the built-in scheme
// handler factory will be called. If |scheme_name| is a custom scheme the
-// cef_register_custom_scheme() function should be called for that scheme. This
+// CefRegisterCustomScheme() function should be called for that scheme. This
// function may be called multiple times to change or remove the factory that
// matches the specified |scheme_name| and optional |domain_name|. Returns false
// (0) if an error occurs. This function may be called on any thread.
@@ -114,6 +67,67 @@ CEF_EXPORT int cef_register_scheme_handler_factory(
///
CEF_EXPORT int cef_clear_scheme_handler_factories();
+///
+// Structure that manages custom scheme registrations.
+///
+typedef struct _cef_scheme_registrar_t {
+ ///
+ // Base structure.
+ ///
+ cef_base_t base;
+
+ ///
+ // Register a custom scheme. This function should not be called for the built-
+ // in HTTP, HTTPS, FILE, FTP, ABOUT and DATA schemes.
+ //
+ // If |is_standard| is true (1) the scheme will be treated as a standard
+ // scheme. Standard schemes are subject to URL canonicalization and parsing
+ // rules as defined in the Common Internet Scheme Syntax RFC 1738 Section 3.1
+ // available at http://www.ietf.org/rfc/rfc1738.txt
+ //
+ // In particular, the syntax for standard scheme URLs must be of the form:
+ //
+ // [scheme]://[username]:[password]@[host]:[port]/[url-path]
+ //
Standard scheme URLs must have a host component that is a fully
+ // qualified domain name as defined in Section 3.5 of RFC 1034 [13] and
+ // Section 2.1 of RFC 1123. These URLs will be canonicalized to
+ // "scheme://host/path" in the simplest case and
+ // "scheme://username:password@host:port/path" in the most explicit case. For
+ // example, "scheme:host/path" and "scheme:///host/path" will both be
+ // canonicalized to "scheme://host/path". The origin of a standard scheme URL
+ // is the combination of scheme, host and port (i.e., "scheme://host:port" in
+ // the most explicit case).
+ //
+ // For non-standard scheme URLs only the "scheme:" component is parsed and
+ // canonicalized. The remainder of the URL will be passed to the handler as-
+ // is. For example, "scheme:///some%20text" will remain the same. Non-standard
+ // scheme URLs cannot be used as a target for form submission.
+ //
+ // If |is_local| is true (1) the scheme will be treated as local (i.e., with
+ // the same security rules as those applied to "file" URLs). Normal pages
+ // cannot link to or access local URLs. Also, by default, local URLs can only
+ // perform XMLHttpRequest calls to the same URL (origin + path) that
+ // originated the request. To allow XMLHttpRequest calls from a local URL to
+ // other URLs with the same origin set the
+ // CefSettings.file_access_from_file_urls_allowed value to true (1). To allow
+ // XMLHttpRequest calls from a local URL to all origins set the
+ // CefSettings.universal_access_from_file_urls_allowed value to true (1).
+ //
+ // If |is_display_isolated| is true (1) the scheme will be treated as display-
+ // isolated. This means that pages cannot display these URLs unless they are
+ // from the same scheme. For example, pages in another origin cannot create
+ // iframes or hyperlinks to URLs with this scheme.
+ //
+ // This function may be called on any thread. It should only be called once
+ // per unique |scheme_name| value. If |scheme_name| is already registered or
+ // if an error occurs this function will return false (0).
+ ///
+ int (CEF_CALLBACK *add_custom_scheme)(struct _cef_scheme_registrar_t* self,
+ const cef_string_t* scheme_name, int is_standard, int is_local,
+ int is_display_isolated);
+} cef_scheme_registrar_t;
+
+
///
// Structure that creates cef_resource_handler_t instances for handling scheme
// requests. The functions of this structure will always be called on the IO
diff --git a/include/cef_app.h b/include/cef_app.h
index 9b2697dca..cecc06686 100644
--- a/include/cef_app.h
+++ b/include/cef_app.h
@@ -44,6 +44,7 @@
#include "include/cef_proxy_handler.h"
#include "include/cef_render_process_handler.h"
#include "include/cef_resource_bundle_handler.h"
+#include "include/cef_scheme.h"
class CefApp;
@@ -130,6 +131,17 @@ class CefApp : public virtual CefBase {
CefRefPtr command_line) {
}
+ ///
+ // Provides an opportunity to register custom schemes. Do not keep a reference
+ // to the |registrar| object. This method is called on the main thread for
+ // each process and the registered schemes should be the same across all
+ // processes.
+ ///
+ /*--cef()--*/
+ virtual void OnRegisterCustomSchemes(
+ CefRefPtr registrar) {
+ }
+
///
// Return the handler for render process events. This method is called by the
// render process main thread.
diff --git a/include/cef_application_mac.h b/include/cef_application_mac.h
index 0eb2c201c..3a5126ef7 100644
--- a/include/cef_application_mac.h
+++ b/include/cef_application_mac.h
@@ -66,9 +66,10 @@
@end
// Copy of definition from ui/base/cocoa/underlay_opengl_hosting_window.h.
-@protocol UnderlayableSurface
-- (void)underlaySurfaceAdded;
-- (void)underlaySurfaceRemoved;
+// Common base class for windows that host a OpenGL surface that renders under
+// the window. Contains methods relating to hole punching so that the OpenGL
+// surface is visible through the window.
+@interface UnderlayOpenGLHostingWindow : NSWindow
@end
// The Mac OS X 10.6 SDK introduced new protocols used for delegates. These
@@ -112,11 +113,6 @@ DEFINE_EMPTY_PROTOCOL(NSWindowDelegate)
@protocol CefAppProtocol
@end
-// All CEF windows should implement this protocol to be informed explicitly
-// about underlay surfaces.
-@protocol CefUnderlayableSurface
-@end
-
// Controls the state of |isHandlingSendEvent| in the event loop so that it is
// reset properly.
class CefScopedSendingEvent {
diff --git a/include/cef_frame.h b/include/cef_frame.h
index 04b10c840..d022b0c2a 100644
--- a/include/cef_frame.h
+++ b/include/cef_frame.h
@@ -151,10 +151,10 @@ class CefFrame : public virtual CefBase {
// error. The |start_line| parameter is the base line number to use for error
// reporting.
///
- /*--cef(optional_param=scriptUrl)--*/
- virtual void ExecuteJavaScript(const CefString& jsCode,
- const CefString& scriptUrl,
- int startLine) =0;
+ /*--cef(optional_param=script_url)--*/
+ virtual void ExecuteJavaScript(const CefString& code,
+ const CefString& script_url,
+ int start_line) =0;
///
// Returns true if this is the main (top-level) frame.
diff --git a/include/cef_scheme.h b/include/cef_scheme.h
index 3171d553e..66a5e75d0 100644
--- a/include/cef_scheme.h
+++ b/include/cef_scheme.h
@@ -47,56 +47,6 @@
class CefSchemeHandlerFactory;
-///
-// Register a custom scheme. This method should not be called for the built-in
-// HTTP, HTTPS, FILE, FTP, ABOUT and DATA schemes.
-//
-// If |is_standard| is true the scheme will be treated as a standard scheme.
-// Standard schemes are subject to URL canonicalization and parsing rules as
-// defined in the Common Internet Scheme Syntax RFC 1738 Section 3.1 available
-// at http://www.ietf.org/rfc/rfc1738.txt
-//
-// In particular, the syntax for standard scheme URLs must be of the form:
-//
-// [scheme]://[username]:[password]@[host]:[port]/[url-path]
-//
-// Standard scheme URLs must have a host component that is a fully qualified
-// domain name as defined in Section 3.5 of RFC 1034 [13] and Section 2.1 of RFC
-// 1123. These URLs will be canonicalized to "scheme://host/path" in the
-// simplest case and "scheme://username:password@host:port/path" in the most
-// explicit case. For example, "scheme:host/path" and "scheme:///host/path" will
-// both be canonicalized to "scheme://host/path". The origin of a standard
-// scheme URL is the combination of scheme, host and port (i.e.,
-// "scheme://host:port" in the most explicit case).
-//
-// For non-standard scheme URLs only the "scheme:" component is parsed and
-// canonicalized. The remainder of the URL will be passed to the handler as-is.
-// For example, "scheme:///some%20text" will remain the same. Non-standard
-// scheme URLs cannot be used as a target for form submission.
-//
-// If |is_local| is true the scheme will be treated as local (i.e., with the
-// same security rules as those applied to "file" URLs). Normal pages cannot
-// link to or access local URLs. Also, by default, local URLs can only perform
-// XMLHttpRequest calls to the same URL (origin + path) that originated the
-// request. To allow XMLHttpRequest calls from a local URL to other URLs with
-// the same origin set the CefSettings.file_access_from_file_urls_allowed value
-// to true. To allow XMLHttpRequest calls from a local URL to all origins set
-// the CefSettings.universal_access_from_file_urls_allowed value to true.
-//
-// If |is_display_isolated| is true the scheme will be treated as display-
-// isolated. This means that pages cannot display these URLs unless they are
-// from the same scheme. For example, pages in another origin cannot create
-// iframes or hyperlinks to URLs with this scheme.
-//
-// This function may be called on any thread. It should only be called once
-// per unique |scheme_name| value. If |scheme_name| is already registered or if
-// an error occurs this method will return false.
-///
-/*--cef()--*/
-bool CefRegisterCustomScheme(const CefString& scheme_name,
- bool is_standard,
- bool is_local,
- bool is_display_isolated);
///
// Register a scheme handler factory for the specified |scheme_name| and
@@ -125,15 +75,75 @@ bool CefClearSchemeHandlerFactories();
///
-// Class that creates CefResourceHandler instances for handling scheme requests. The
-// methods of this class will always be called on the IO thread.
+// Class that manages custom scheme registrations.
+///
+/*--cef(source=library)--*/
+class CefSchemeRegistrar : public virtual CefBase {
+ public:
+ ///
+ // Register a custom scheme. This method should not be called for the built-in
+ // HTTP, HTTPS, FILE, FTP, ABOUT and DATA schemes.
+ //
+ // If |is_standard| is true the scheme will be treated as a standard scheme.
+ // Standard schemes are subject to URL canonicalization and parsing rules as
+ // defined in the Common Internet Scheme Syntax RFC 1738 Section 3.1 available
+ // at http://www.ietf.org/rfc/rfc1738.txt
+ //
+ // In particular, the syntax for standard scheme URLs must be of the form:
+ //
+ // [scheme]://[username]:[password]@[host]:[port]/[url-path]
+ //
+ // Standard scheme URLs must have a host component that is a fully qualified
+ // domain name as defined in Section 3.5 of RFC 1034 [13] and Section 2.1 of
+ // RFC 1123. These URLs will be canonicalized to "scheme://host/path" in the
+ // simplest case and "scheme://username:password@host:port/path" in the most
+ // explicit case. For example, "scheme:host/path" and "scheme:///host/path"
+ // will both be canonicalized to "scheme://host/path". The origin of a
+ // standard scheme URL is the combination of scheme, host and port (i.e.,
+ // "scheme://host:port" in the most explicit case).
+ //
+ // For non-standard scheme URLs only the "scheme:" component is parsed and
+ // canonicalized. The remainder of the URL will be passed to the handler
+ // as-is. For example, "scheme:///some%20text" will remain the same.
+ // Non-standard scheme URLs cannot be used as a target for form submission.
+ //
+ // If |is_local| is true the scheme will be treated as local (i.e., with the
+ // same security rules as those applied to "file" URLs). Normal pages cannot
+ // link to or access local URLs. Also, by default, local URLs can only perform
+ // XMLHttpRequest calls to the same URL (origin + path) that originated the
+ // request. To allow XMLHttpRequest calls from a local URL to other URLs with
+ // the same origin set the CefSettings.file_access_from_file_urls_allowed
+ // value to true. To allow XMLHttpRequest calls from a local URL to all
+ // origins set the CefSettings.universal_access_from_file_urls_allowed value
+ // to true.
+ //
+ // If |is_display_isolated| is true the scheme will be treated as display-
+ // isolated. This means that pages cannot display these URLs unless they are
+ // from the same scheme. For example, pages in another origin cannot create
+ // iframes or hyperlinks to URLs with this scheme.
+ //
+ // This function may be called on any thread. It should only be called once
+ // per unique |scheme_name| value. If |scheme_name| is already registered or
+ // if an error occurs this method will return false.
+ ///
+ /*--cef()--*/
+ virtual bool AddCustomScheme(const CefString& scheme_name,
+ bool is_standard,
+ bool is_local,
+ bool is_display_isolated) =0;
+};
+
+
+///
+// Class that creates CefResourceHandler instances for handling scheme requests.
+// The methods of this class will always be called on the IO thread.
///
/*--cef(source=client)--*/
class CefSchemeHandlerFactory : public virtual CefBase {
public:
///
- // Return a new resource handler instance to handle the request. |browser| will
- // be the browser window that initiated the request. If the request was
+ // Return a new resource handler instance to handle the request. |browser|
+ // will be the browser window that initiated the request. If the request was
// initiated using the CefWebURLRequest API |browser| will be NULL. The
// |request| object passed to this method will not contain cookie data.
///
diff --git a/include/internal/cef_types.h b/include/internal/cef_types.h
index 12e159015..3c9ec56a1 100644
--- a/include/internal/cef_types.h
+++ b/include/internal/cef_types.h
@@ -232,6 +232,14 @@ typedef struct _cef_settings_t {
// is disabled.
///
bool pack_loading_disabled;
+
+ ///
+ // Set to a value between 1024 and 65535 to enable remote debugging on the
+ // specified port. For example, if 8080 is specified the remote debugging URL
+ // will be http://localhost:8080. CEF can be remotely debugged from any CEF or
+ // Chrome browser window.
+ ///
+ int remote_debugging_port;
} cef_settings_t;
///
diff --git a/include/internal/cef_types_wrappers.h b/include/internal/cef_types_wrappers.h
index 2dcedc1b9..b3c326ca0 100644
--- a/include/internal/cef_types_wrappers.h
+++ b/include/internal/cef_types_wrappers.h
@@ -286,6 +286,7 @@ struct CefSettingsTraits {
cef_string_set(src->locales_dir_path.str, src->locales_dir_path.length,
&target->locales_dir_path, copy);
target->pack_loading_disabled = src->pack_loading_disabled;
+ target->remote_debugging_port = src->remote_debugging_port;
}
};
diff --git a/libcef/browser/browser_host_impl.cc b/libcef/browser/browser_host_impl.cc
index 73a0bb42d..fd4cfd880 100644
--- a/libcef/browser/browser_host_impl.cc
+++ b/libcef/browser/browser_host_impl.cc
@@ -22,7 +22,7 @@
#include "base/bind_helpers.h"
#include "content/browser/renderer_host/render_view_host_impl.h"
#include "content/browser/renderer_host/resource_request_info_impl.h"
-#include "content/browser/tab_contents/tab_contents.h"
+#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/notification_details.h"
@@ -160,9 +160,10 @@ CefRefPtr CefBrowserHostImpl::GetBrowserForHost(
const content::RenderViewHost* host) {
DCHECK(host);
CEF_REQUIRE_UIT();
- TabContents* tab_contents = static_cast(host->GetDelegate());
- if (tab_contents)
- return static_cast(tab_contents->GetDelegate());
+ WebContentsImpl* web_contents =
+ static_cast(host->GetDelegate());
+ if (web_contents)
+ return static_cast(web_contents->GetDelegate());
return NULL;
}
diff --git a/libcef/browser/browser_message_filter.cc b/libcef/browser/browser_message_filter.cc
index baba225d5..72e22bb91 100644
--- a/libcef/browser/browser_message_filter.cc
+++ b/libcef/browser/browser_message_filter.cc
@@ -6,7 +6,6 @@
#include "libcef/browser/browser_message_filter.h"
#include "libcef/browser/origin_whitelist_impl.h"
-#include "libcef/browser/scheme_impl.h"
#include "libcef/browser/thread_util.h"
#include "libcef/common/cef_messages.h"
@@ -49,6 +48,5 @@ void CefBrowserMessageFilter::RegisterOnUIThread() {
CEF_REQUIRE_UIT();
// Send existing registrations to the new render process.
- RegisterSchemesWithHost(host_);
RegisterCrossOriginWhitelistEntriesWithHost(host_);
}
diff --git a/libcef/browser/scheme_impl.cc b/libcef/browser/scheme_impl.cc
index 3b1ed9a4d..692e9619b 100644
--- a/libcef/browser/scheme_impl.cc
+++ b/libcef/browser/scheme_impl.cc
@@ -3,8 +3,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "libcef/browser/scheme_impl.h"
-
#include