mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-26 17:07:47 +01:00
Update to Chromium revision 184577.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1111 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
d9a4c5690b
commit
c10f203620
@ -17,5 +17,5 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'chromium_url': 'http://src.chromium.org/svn/trunk/src',
|
'chromium_url': 'http://src.chromium.org/svn/trunk/src',
|
||||||
'chromium_revision': '181864',
|
'chromium_revision': '184577',
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "base/compiler_specific.h"
|
#include "base/compiler_specific.h"
|
||||||
#include "base/file_path.h"
|
#include "base/files/file_path.h"
|
||||||
#include "base/memory/ref_counted.h"
|
#include "base/memory/ref_counted.h"
|
||||||
#include "base/memory/scoped_ptr.h"
|
#include "base/memory/scoped_ptr.h"
|
||||||
#include "content/public/browser/browser_context.h"
|
#include "content/public/browser/browser_context.h"
|
||||||
@ -59,7 +59,7 @@ class CefBrowserContext : public content::BrowserContext {
|
|||||||
scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
||||||
chrome_devtools_protocol_handler);
|
chrome_devtools_protocol_handler);
|
||||||
net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
|
net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
|
||||||
const FilePath& partition_path,
|
const base::FilePath& partition_path,
|
||||||
bool in_memory,
|
bool in_memory,
|
||||||
scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
||||||
blob_protocol_handler,
|
blob_protocol_handler,
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#include "libcef/common/command_line_impl.h"
|
#include "libcef/common/command_line_impl.h"
|
||||||
|
|
||||||
#include "base/command_line.h"
|
#include "base/command_line.h"
|
||||||
#include "base/file_path.h"
|
#include "base/files/file_path.h"
|
||||||
#include "base/path_service.h"
|
#include "base/path_service.h"
|
||||||
#include "chrome/common/chrome_switches.h"
|
#include "chrome/common/chrome_switches.h"
|
||||||
#include "content/browser/plugin_service_impl.h"
|
#include "content/browser/plugin_service_impl.h"
|
||||||
@ -208,7 +208,7 @@ class CefPluginServiceFilter : public content::PluginServiceFilter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual bool CanLoadPlugin(int render_process_id,
|
virtual bool CanLoadPlugin(int render_process_id,
|
||||||
const FilePath& path) OVERRIDE {
|
const base::FilePath& path) OVERRIDE {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -238,6 +238,11 @@ class CefMediaObserver : public content::MediaObserver {
|
|||||||
int render_view_id,
|
int render_view_id,
|
||||||
const content::MediaStreamDevice& device,
|
const content::MediaStreamDevice& device,
|
||||||
content::MediaRequestState state) OVERRIDE {}
|
content::MediaRequestState state) OVERRIDE {}
|
||||||
|
virtual void OnAudioStreamPlayingChanged(
|
||||||
|
int render_process_id,
|
||||||
|
int render_view_id,
|
||||||
|
int stream_id,
|
||||||
|
bool playing) OVERRIDE {}
|
||||||
};
|
};
|
||||||
|
|
||||||
CefContentBrowserClient::CefContentBrowserClient()
|
CefContentBrowserClient::CefContentBrowserClient()
|
||||||
@ -360,11 +365,11 @@ content::BrowserMainParts* CefContentBrowserClient::CreateBrowserMainParts(
|
|||||||
return browser_main_parts_;
|
return browser_main_parts_;
|
||||||
}
|
}
|
||||||
|
|
||||||
content::WebContentsView*
|
content::WebContentsViewPort*
|
||||||
CefContentBrowserClient::OverrideCreateWebContentsView(
|
CefContentBrowserClient::OverrideCreateWebContentsView(
|
||||||
content::WebContents* web_contents,
|
content::WebContents* web_contents,
|
||||||
content::RenderViewHostDelegateView** render_view_host_delegate_view) {
|
content::RenderViewHostDelegateView** render_view_host_delegate_view) {
|
||||||
content::WebContentsView* view = NULL;
|
content::WebContentsViewPort* view = NULL;
|
||||||
*render_view_host_delegate_view = NULL;
|
*render_view_host_delegate_view = NULL;
|
||||||
// TODO(port): Implement this method to work on other platforms as part of
|
// TODO(port): Implement this method to work on other platforms as part of
|
||||||
// off-screen rendering support.
|
// off-screen rendering support.
|
||||||
|
@ -62,7 +62,7 @@ class CefContentBrowserClient : public content::ContentBrowserClient {
|
|||||||
|
|
||||||
virtual content::BrowserMainParts* CreateBrowserMainParts(
|
virtual content::BrowserMainParts* CreateBrowserMainParts(
|
||||||
const content::MainFunctionParams& parameters) OVERRIDE;
|
const content::MainFunctionParams& parameters) OVERRIDE;
|
||||||
virtual content::WebContentsView* OverrideCreateWebContentsView(
|
virtual content::WebContentsViewPort* OverrideCreateWebContentsView(
|
||||||
content::WebContents* web_contents,
|
content::WebContents* web_contents,
|
||||||
content::RenderViewHostDelegateView** rvhdv) OVERRIDE;
|
content::RenderViewHostDelegateView** rvhdv) OVERRIDE;
|
||||||
virtual void RenderProcessHostCreated(
|
virtual void RenderProcessHostCreated(
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#include "include/cef_app.h"
|
#include "include/cef_app.h"
|
||||||
#include "include/cef_base.h"
|
#include "include/cef_base.h"
|
||||||
|
|
||||||
#include "base/file_path.h"
|
#include "base/files/file_path.h"
|
||||||
#include "base/files/scoped_temp_dir.h"
|
#include "base/files/scoped_temp_dir.h"
|
||||||
#include "base/memory/scoped_ptr.h"
|
#include "base/memory/scoped_ptr.h"
|
||||||
#include "base/threading/platform_thread.h"
|
#include "base/threading/platform_thread.h"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#define CEF_LIBCEF_BROWSER_COOKIE_MANAGER_IMPL_H_
|
#define CEF_LIBCEF_BROWSER_COOKIE_MANAGER_IMPL_H_
|
||||||
|
|
||||||
#include "include/cef_cookie.h"
|
#include "include/cef_cookie.h"
|
||||||
#include "base/file_path.h"
|
#include "base/files/file_path.h"
|
||||||
#include "net/cookies/cookie_monster.h"
|
#include "net/cookies/cookie_monster.h"
|
||||||
|
|
||||||
// Implementation of the CefCookieManager interface.
|
// Implementation of the CefCookieManager interface.
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#include "libcef/browser/browser_host_impl.h"
|
#include "libcef/browser/browser_host_impl.h"
|
||||||
#include "libcef_dll/resource.h"
|
#include "libcef_dll/resource.h"
|
||||||
|
|
||||||
#include "base/file_path.h"
|
#include "base/files/file_path.h"
|
||||||
#include "base/path_service.h"
|
#include "base/path_service.h"
|
||||||
#include "base/string_util.h"
|
#include "base/string_util.h"
|
||||||
#include "base/utf_string_conversions.h"
|
#include "base/utf_string_conversions.h"
|
||||||
@ -24,7 +24,7 @@ INT_PTR CALLBACK CefJavaScriptDialog::DialogProc(HWND dialog,
|
|||||||
LPARAM lparam) {
|
LPARAM lparam) {
|
||||||
switch (message) {
|
switch (message) {
|
||||||
case WM_INITDIALOG: {
|
case WM_INITDIALOG: {
|
||||||
SetWindowLongPtr(dialog, DWL_USER, static_cast<LONG_PTR>(lparam));
|
SetWindowLongPtr(dialog, DWLP_USER, static_cast<LONG_PTR>(lparam));
|
||||||
CefJavaScriptDialog* owner =
|
CefJavaScriptDialog* owner =
|
||||||
reinterpret_cast<CefJavaScriptDialog*>(lparam);
|
reinterpret_cast<CefJavaScriptDialog*>(lparam);
|
||||||
owner->dialog_win_ = dialog;
|
owner->dialog_win_ = dialog;
|
||||||
@ -36,7 +36,7 @@ INT_PTR CALLBACK CefJavaScriptDialog::DialogProc(HWND dialog,
|
|||||||
}
|
}
|
||||||
case WM_CLOSE: {
|
case WM_CLOSE: {
|
||||||
CefJavaScriptDialog* owner = reinterpret_cast<CefJavaScriptDialog*>(
|
CefJavaScriptDialog* owner = reinterpret_cast<CefJavaScriptDialog*>(
|
||||||
GetWindowLongPtr(dialog, DWL_USER));
|
GetWindowLongPtr(dialog, DWLP_USER));
|
||||||
if (owner) {
|
if (owner) {
|
||||||
owner->Cancel();
|
owner->Cancel();
|
||||||
owner->callback_.Run(false, string16());
|
owner->callback_.Run(false, string16());
|
||||||
@ -50,7 +50,7 @@ INT_PTR CALLBACK CefJavaScriptDialog::DialogProc(HWND dialog,
|
|||||||
}
|
}
|
||||||
case WM_COMMAND: {
|
case WM_COMMAND: {
|
||||||
CefJavaScriptDialog* owner = reinterpret_cast<CefJavaScriptDialog*>(
|
CefJavaScriptDialog* owner = reinterpret_cast<CefJavaScriptDialog*>(
|
||||||
GetWindowLongPtr(dialog, DWL_USER));
|
GetWindowLongPtr(dialog, DWLP_USER));
|
||||||
string16 user_input;
|
string16 user_input;
|
||||||
bool finish = false;
|
bool finish = false;
|
||||||
bool result;
|
bool result;
|
||||||
@ -158,7 +158,7 @@ void CefJavaScriptDialog::Cancel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (dialog_win_ && IsWindow(dialog_win_)) {
|
if (dialog_win_ && IsWindow(dialog_win_)) {
|
||||||
SetWindowLongPtr(dialog_win_, DWL_USER, NULL);
|
SetWindowLongPtr(dialog_win_, DWLP_USER, NULL);
|
||||||
DestroyWindow(dialog_win_);
|
DestroyWindow(dialog_win_);
|
||||||
dialog_win_ = NULL;
|
dialog_win_ = NULL;
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#include "include/cef_path_util.h"
|
#include "include/cef_path_util.h"
|
||||||
|
|
||||||
#include "base/file_path.h"
|
#include "base/files/file_path.h"
|
||||||
#include "base/logging.h"
|
#include "base/logging.h"
|
||||||
#include "base/path_service.h"
|
#include "base/path_service.h"
|
||||||
|
|
||||||
|
@ -182,6 +182,11 @@ void CefRenderWidgetHostViewOSR::TextInputStateChanged(
|
|||||||
void CefRenderWidgetHostViewOSR::ImeCancelComposition() {
|
void CefRenderWidgetHostViewOSR::ImeCancelComposition() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CefRenderWidgetHostViewOSR::ImeCompositionRangeChanged(
|
||||||
|
const ui::Range& range,
|
||||||
|
const std::vector<gfx::Rect>& character_bounds) {
|
||||||
|
}
|
||||||
|
|
||||||
void CefRenderWidgetHostViewOSR::DidUpdateBackingStore(
|
void CefRenderWidgetHostViewOSR::DidUpdateBackingStore(
|
||||||
const gfx::Rect& scroll_rect,
|
const gfx::Rect& scroll_rect,
|
||||||
const gfx::Vector2d& scroll_delta,
|
const gfx::Vector2d& scroll_delta,
|
||||||
@ -228,6 +233,10 @@ gfx::Rect CefRenderWidgetHostViewOSR::GetBoundsInRootWindow() {
|
|||||||
return gfx::Rect();
|
return gfx::Rect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CefRenderWidgetHostViewOSR::OnAccessibilityNotifications(
|
||||||
|
const std::vector<AccessibilityHostMsg_NotificationParams>& params) {
|
||||||
|
}
|
||||||
|
|
||||||
void CefRenderWidgetHostViewOSR::Destroy() {
|
void CefRenderWidgetHostViewOSR::Destroy() {
|
||||||
if (IsPopupWidget()) {
|
if (IsPopupWidget()) {
|
||||||
if (parent_host_view_)
|
if (parent_host_view_)
|
||||||
@ -251,6 +260,13 @@ void CefRenderWidgetHostViewOSR::SetTooltipText(const string16& tooltip_text) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CefRenderWidgetHostViewOSR::SelectionBoundsChanged(
|
||||||
|
const ViewHostMsg_SelectionBounds_Params& params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
void CefRenderWidgetHostViewOSR::ScrollOffsetChanged() {
|
||||||
|
}
|
||||||
|
|
||||||
content::BackingStore* CefRenderWidgetHostViewOSR::AllocBackingStore(
|
content::BackingStore* CefRenderWidgetHostViewOSR::AllocBackingStore(
|
||||||
const gfx::Size& size) {
|
const gfx::Size& size) {
|
||||||
return render_widget_host_ ?
|
return render_widget_host_ ?
|
||||||
@ -302,6 +318,9 @@ void CefRenderWidgetHostViewOSR::AcceleratedSurfacePostSubBuffer(
|
|||||||
void CefRenderWidgetHostViewOSR::AcceleratedSurfaceSuspend() {
|
void CefRenderWidgetHostViewOSR::AcceleratedSurfaceSuspend() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CefRenderWidgetHostViewOSR::AcceleratedSurfaceRelease() {
|
||||||
|
}
|
||||||
|
|
||||||
bool CefRenderWidgetHostViewOSR::HasAcceleratedSurface(
|
bool CefRenderWidgetHostViewOSR::HasAcceleratedSurface(
|
||||||
const gfx::Size& desired_size) {
|
const gfx::Size& desired_size) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -75,6 +75,9 @@ class CefRenderWidgetHostViewOSR : public content::RenderWidgetHostViewBase {
|
|||||||
virtual void TextInputStateChanged(
|
virtual void TextInputStateChanged(
|
||||||
const ViewHostMsg_TextInputState_Params& params) OVERRIDE;
|
const ViewHostMsg_TextInputState_Params& params) OVERRIDE;
|
||||||
virtual void ImeCancelComposition() OVERRIDE;
|
virtual void ImeCancelComposition() OVERRIDE;
|
||||||
|
virtual void ImeCompositionRangeChanged(
|
||||||
|
const ui::Range& range,
|
||||||
|
const std::vector<gfx::Rect>& character_bounds) OVERRIDE;
|
||||||
virtual void DidUpdateBackingStore(
|
virtual void DidUpdateBackingStore(
|
||||||
const gfx::Rect& scroll_rect,
|
const gfx::Rect& scroll_rect,
|
||||||
const gfx::Vector2d& scroll_delta,
|
const gfx::Vector2d& scroll_delta,
|
||||||
@ -86,8 +89,14 @@ class CefRenderWidgetHostViewOSR : public content::RenderWidgetHostViewBase {
|
|||||||
#endif
|
#endif
|
||||||
virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE;
|
virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE;
|
||||||
virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE;
|
virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE;
|
||||||
|
void OnAccessibilityNotifications(
|
||||||
|
const std::vector<AccessibilityHostMsg_NotificationParams>& params)
|
||||||
|
OVERRIDE;
|
||||||
virtual void Destroy() OVERRIDE;
|
virtual void Destroy() OVERRIDE;
|
||||||
virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
|
virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
|
||||||
|
virtual void SelectionBoundsChanged(
|
||||||
|
const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE;
|
||||||
|
virtual void ScrollOffsetChanged() OVERRIDE;
|
||||||
virtual content::BackingStore*
|
virtual content::BackingStore*
|
||||||
AllocBackingStore(const gfx::Size& size) OVERRIDE;
|
AllocBackingStore(const gfx::Size& size) OVERRIDE;
|
||||||
virtual void CopyFromCompositingSurface(
|
virtual void CopyFromCompositingSurface(
|
||||||
@ -112,6 +121,7 @@ class CefRenderWidgetHostViewOSR : public content::RenderWidgetHostViewBase {
|
|||||||
const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
|
const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
|
||||||
int gpu_host_id) OVERRIDE;
|
int gpu_host_id) OVERRIDE;
|
||||||
virtual void AcceleratedSurfaceSuspend() OVERRIDE;
|
virtual void AcceleratedSurfaceSuspend() OVERRIDE;
|
||||||
|
virtual void AcceleratedSurfaceRelease() OVERRIDE;
|
||||||
virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE;
|
virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE;
|
||||||
virtual bool LockMouse() OVERRIDE;
|
virtual bool LockMouse() OVERRIDE;
|
||||||
virtual void UnlockMouse() OVERRIDE;
|
virtual void UnlockMouse() OVERRIDE;
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
#include "net/url_request/url_request_ftp_job.h"
|
#include "net/url_request/url_request_ftp_job.h"
|
||||||
#include "net/url_request/url_request_http_job.h"
|
#include "net/url_request/url_request_http_job.h"
|
||||||
#include "net/url_request/url_request_job.h"
|
#include "net/url_request/url_request_job.h"
|
||||||
#include "net/url_request/url_request_job_factory.h"
|
#include "net/url_request/url_request_job_factory_impl.h"
|
||||||
|
|
||||||
using net::URLRequestStatus;
|
using net::URLRequestStatus;
|
||||||
|
|
||||||
@ -124,11 +124,9 @@ class CefUrlRequestManager {
|
|||||||
// Retrieve the singleton instance.
|
// Retrieve the singleton instance.
|
||||||
static CefUrlRequestManager* GetInstance();
|
static CefUrlRequestManager* GetInstance();
|
||||||
|
|
||||||
net::URLRequestJobFactory* GetJobFactory() {
|
net::URLRequestJobFactoryImpl* GetJobFactoryImpl() {
|
||||||
return const_cast<net::URLRequestJobFactory*>(
|
return static_cast<CefURLRequestContextGetter*>(
|
||||||
static_cast<CefURLRequestContextGetter*>(
|
_Context->request_context().get())->job_factory_impl();
|
||||||
_Context->request_context().get())->
|
|
||||||
GetURLRequestContext()->job_factory());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AddFactory(const std::string& scheme,
|
bool AddFactory(const std::string& scheme,
|
||||||
@ -150,7 +148,7 @@ class CefUrlRequestManager {
|
|||||||
|
|
||||||
handler_map_[make_pair(scheme_lower, domain_lower)] = factory;
|
handler_map_[make_pair(scheme_lower, domain_lower)] = factory;
|
||||||
|
|
||||||
net::URLRequestJobFactory* job_factory = GetJobFactory();
|
net::URLRequestJobFactoryImpl* job_factory = GetJobFactoryImpl();
|
||||||
job_factory->SetProtocolHandler(scheme_lower,
|
job_factory->SetProtocolHandler(scheme_lower,
|
||||||
new ProtocolHandler(scheme_lower));
|
new ProtocolHandler(scheme_lower));
|
||||||
|
|
||||||
@ -178,7 +176,7 @@ class CefUrlRequestManager {
|
|||||||
void ClearFactories() {
|
void ClearFactories() {
|
||||||
CEF_REQUIRE_IOT();
|
CEF_REQUIRE_IOT();
|
||||||
|
|
||||||
net::URLRequestJobFactory* job_factory = GetJobFactory();
|
net::URLRequestJobFactoryImpl* job_factory = GetJobFactoryImpl();
|
||||||
|
|
||||||
// Unregister with the ProtocolFactory.
|
// Unregister with the ProtocolFactory.
|
||||||
std::set<std::string> schemes;
|
std::set<std::string> schemes;
|
||||||
|
@ -30,7 +30,7 @@ bool CefTraceSubscriber::BeginTracing(CefRefPtr<CefTraceClient> client,
|
|||||||
client_ = client;
|
client_ = client;
|
||||||
|
|
||||||
return content::TraceController::GetInstance()->BeginTracing(
|
return content::TraceController::GetInstance()->BeginTracing(
|
||||||
this, categories);
|
this, categories, base::debug::TraceLog::GetInstance()->trace_options());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CefTraceSubscriber::EndTracingAsync() {
|
bool CefTraceSubscriber::EndTracingAsync() {
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include "include/cef_trace.h"
|
#include "include/cef_trace.h"
|
||||||
|
|
||||||
#include "base/debug/trace_event.h"
|
#include "base/debug/trace_event.h"
|
||||||
#include "base/file_path.h"
|
#include "base/files/file_path.h"
|
||||||
#include "base/memory/scoped_ptr.h"
|
#include "base/memory/scoped_ptr.h"
|
||||||
#include "content/public/browser/trace_subscriber.h"
|
#include "content/public/browser/trace_subscriber.h"
|
||||||
|
|
||||||
|
@ -175,6 +175,7 @@ net::URLRequestContext* CefURLRequestContextGetter::GetURLRequestContext() {
|
|||||||
|
|
||||||
scoped_ptr<net::URLRequestJobFactoryImpl> job_factory(
|
scoped_ptr<net::URLRequestJobFactoryImpl> job_factory(
|
||||||
new net::URLRequestJobFactoryImpl());
|
new net::URLRequestJobFactoryImpl());
|
||||||
|
job_factory_impl_ = job_factory.get();
|
||||||
bool set_protocol = job_factory->SetProtocolHandler(
|
bool set_protocol = job_factory->SetProtocolHandler(
|
||||||
chrome::kBlobScheme, blob_protocol_handler_.release());
|
chrome::kBlobScheme, blob_protocol_handler_.release());
|
||||||
DCHECK(set_protocol);
|
DCHECK(set_protocol);
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "base/compiler_specific.h"
|
#include "base/compiler_specific.h"
|
||||||
#include "base/file_path.h"
|
#include "base/files/file_path.h"
|
||||||
#include "base/memory/ref_counted.h"
|
#include "base/memory/ref_counted.h"
|
||||||
#include "base/memory/scoped_ptr.h"
|
#include "base/memory/scoped_ptr.h"
|
||||||
#include "net/url_request/url_request_context_getter.h"
|
#include "net/url_request/url_request_context_getter.h"
|
||||||
@ -26,6 +26,7 @@ class HostResolver;
|
|||||||
class ProxyConfigService;
|
class ProxyConfigService;
|
||||||
class URLRequestContextStorage;
|
class URLRequestContextStorage;
|
||||||
class URLRequestJobFactory;
|
class URLRequestJobFactory;
|
||||||
|
class URLRequestJobFactoryImpl;
|
||||||
class URLSecurityManager;
|
class URLSecurityManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,6 +90,9 @@ class CefURLRequestContextGetter : public net::URLRequestContextGetter {
|
|||||||
GetNetworkTaskRunner() const OVERRIDE;
|
GetNetworkTaskRunner() const OVERRIDE;
|
||||||
|
|
||||||
net::HostResolver* host_resolver();
|
net::HostResolver* host_resolver();
|
||||||
|
net::URLRequestJobFactoryImpl* job_factory_impl() const {
|
||||||
|
return job_factory_impl_;
|
||||||
|
}
|
||||||
|
|
||||||
void SetCookieStoragePath(const base::FilePath& path,
|
void SetCookieStoragePath(const base::FilePath& path,
|
||||||
bool persist_session_cookies);
|
bool persist_session_cookies);
|
||||||
@ -117,6 +121,7 @@ class CefURLRequestContextGetter : public net::URLRequestContextGetter {
|
|||||||
file_system_protocol_handler_;
|
file_system_protocol_handler_;
|
||||||
scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
||||||
developer_protocol_handler_;
|
developer_protocol_handler_;
|
||||||
|
net::URLRequestJobFactoryImpl* job_factory_impl_;
|
||||||
|
|
||||||
typedef std::set<CefURLRequestContextProxy*> RequestContextProxySet;
|
typedef std::set<CefURLRequestContextProxy*> RequestContextProxySet;
|
||||||
RequestContextProxySet url_request_context_proxies_;
|
RequestContextProxySet url_request_context_proxies_;
|
||||||
|
@ -77,6 +77,9 @@ void CefWebContentsViewOSR::RenderViewCreated(content::RenderViewHost* host) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CefWebContentsViewOSR::RenderViewSwappedIn(content::RenderViewHost* host) {
|
||||||
|
}
|
||||||
|
|
||||||
void CefWebContentsViewOSR::Focus() {
|
void CefWebContentsViewOSR::Focus() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,6 +96,11 @@ WebDropData* CefWebContentsViewOSR::GetDropData() const {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gfx::Rect CefWebContentsViewOSR::GetViewBounds() const {
|
||||||
|
return view_ ? view_->GetViewBounds() : gfx::Rect();
|
||||||
|
}
|
||||||
|
|
||||||
|
#if defined(OS_MACOSX)
|
||||||
bool CefWebContentsViewOSR::IsEventTracking() const {
|
bool CefWebContentsViewOSR::IsEventTracking() const {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -100,9 +108,9 @@ bool CefWebContentsViewOSR::IsEventTracking() const {
|
|||||||
void CefWebContentsViewOSR::CloseTabAfterEventTracking() {
|
void CefWebContentsViewOSR::CloseTabAfterEventTracking() {
|
||||||
}
|
}
|
||||||
|
|
||||||
gfx::Rect CefWebContentsViewOSR::GetViewBounds() const {
|
void CefWebContentsViewOSR::SetAllowOverlappingViews(bool overlapping) {
|
||||||
return view_ ? view_->GetViewBounds() : gfx::Rect();
|
|
||||||
}
|
}
|
||||||
|
#endif // defined(OS_MACOSX)
|
||||||
|
|
||||||
// RenderViewHostDelegateView methods.
|
// RenderViewHostDelegateView methods.
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "content/port/browser/render_view_host_delegate_view.h"
|
#include "content/port/browser/render_view_host_delegate_view.h"
|
||||||
#include "content/public/browser/web_contents_view.h"
|
#include "content/port/browser/web_contents_view_port.h"
|
||||||
|
|
||||||
namespace content {
|
namespace content {
|
||||||
class WebContents;
|
class WebContents;
|
||||||
@ -19,7 +19,7 @@ class WebContentsViewDelegate;
|
|||||||
class CefBrowserHostImpl;
|
class CefBrowserHostImpl;
|
||||||
|
|
||||||
// An implementation of WebContentsView for off-screen rendering.
|
// An implementation of WebContentsView for off-screen rendering.
|
||||||
class CefWebContentsViewOSR : public content::WebContentsView,
|
class CefWebContentsViewOSR : public content::WebContentsViewPort,
|
||||||
public content::RenderViewHostDelegateView {
|
public content::RenderViewHostDelegateView {
|
||||||
public:
|
public:
|
||||||
CefWebContentsViewOSR(content::WebContents* web_contents,
|
CefWebContentsViewOSR(content::WebContents* web_contents,
|
||||||
@ -42,14 +42,18 @@ class CefWebContentsViewOSR : public content::WebContentsView,
|
|||||||
int error_code) OVERRIDE;
|
int error_code) OVERRIDE;
|
||||||
virtual void SizeContents(const gfx::Size& size) OVERRIDE;
|
virtual void SizeContents(const gfx::Size& size) OVERRIDE;
|
||||||
virtual void RenderViewCreated(content::RenderViewHost* host) OVERRIDE;
|
virtual void RenderViewCreated(content::RenderViewHost* host) OVERRIDE;
|
||||||
|
virtual void RenderViewSwappedIn(content::RenderViewHost* host) OVERRIDE;
|
||||||
virtual void Focus() OVERRIDE;
|
virtual void Focus() OVERRIDE;
|
||||||
virtual void SetInitialFocus() OVERRIDE;
|
virtual void SetInitialFocus() OVERRIDE;
|
||||||
virtual void StoreFocus() OVERRIDE;
|
virtual void StoreFocus() OVERRIDE;
|
||||||
virtual void RestoreFocus() OVERRIDE;
|
virtual void RestoreFocus() OVERRIDE;
|
||||||
virtual WebDropData* GetDropData() const OVERRIDE;
|
virtual WebDropData* GetDropData() const OVERRIDE;
|
||||||
|
virtual gfx::Rect GetViewBounds() const OVERRIDE;
|
||||||
|
#if defined(OS_MACOSX)
|
||||||
virtual bool IsEventTracking() const OVERRIDE;
|
virtual bool IsEventTracking() const OVERRIDE;
|
||||||
virtual void CloseTabAfterEventTracking() OVERRIDE;
|
virtual void CloseTabAfterEventTracking() OVERRIDE;
|
||||||
virtual gfx::Rect GetViewBounds() const OVERRIDE;
|
virtual void SetAllowOverlappingViews(bool overlapping) OVERRIDE;
|
||||||
|
#endif
|
||||||
|
|
||||||
// RenderViewHostDelegateView methods.
|
// RenderViewHostDelegateView methods.
|
||||||
virtual void StartDragging(const WebDropData& drop_data,
|
virtual void StartDragging(const WebDropData& drop_data,
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include "libcef/browser/thread_util.h"
|
#include "libcef/browser/thread_util.h"
|
||||||
|
|
||||||
#include "base/bind.h"
|
#include "base/bind.h"
|
||||||
#include "base/file_path.h"
|
#include "base/files/file_path.h"
|
||||||
#include "content/browser/plugin_service_impl.h"
|
#include "content/browser/plugin_service_impl.h"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#include "libcef/common/command_line_impl.h"
|
#include "libcef/common/command_line_impl.h"
|
||||||
|
|
||||||
#include "base/file_path.h"
|
#include "base/files/file_path.h"
|
||||||
#include "base/logging.h"
|
#include "base/logging.h"
|
||||||
|
|
||||||
CefCommandLineImpl::CefCommandLineImpl(CommandLine* value,
|
CefCommandLineImpl::CefCommandLineImpl(CommandLine* value,
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include "libcef/renderer/content_renderer_client.h"
|
#include "libcef/renderer/content_renderer_client.h"
|
||||||
|
|
||||||
#include "base/command_line.h"
|
#include "base/command_line.h"
|
||||||
#include "base/file_path.h"
|
#include "base/files/file_path.h"
|
||||||
#include "base/file_util.h"
|
#include "base/file_util.h"
|
||||||
#include "base/path_service.h"
|
#include "base/path_service.h"
|
||||||
#include "base/string_number_conversions.h"
|
#include "base/string_number_conversions.h"
|
||||||
@ -191,7 +191,7 @@ bool CefMainDelegate::BasicStartupComplete(int* exit_code) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (settings.log_file.length > 0) {
|
if (settings.log_file.length > 0) {
|
||||||
base::FilePath file_path = FilePath(CefString(&settings.log_file));
|
base::FilePath file_path = base::FilePath(CefString(&settings.log_file));
|
||||||
if (!file_path.empty())
|
if (!file_path.empty())
|
||||||
command_line->AppendSwitchPath(switches::kLogFile, file_path);
|
command_line->AppendSwitchPath(switches::kLogFile, file_path);
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#include "base/logging.h"
|
#include "base/logging.h"
|
||||||
#include "base/message_loop.h"
|
#include "base/message_loop.h"
|
||||||
|
#include "third_party/WebKit/Source/Platform/chromium/public/Platform.h"
|
||||||
#include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
|
#include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
|
||||||
#include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h"
|
#include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h"
|
||||||
#include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h"
|
#include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h"
|
||||||
@ -15,7 +16,6 @@
|
|||||||
#include "third_party/WebKit/Source/Platform/chromium/public/WebURLLoaderClient.h"
|
#include "third_party/WebKit/Source/Platform/chromium/public/WebURLLoaderClient.h"
|
||||||
#include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h"
|
#include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h"
|
||||||
#include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h"
|
#include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h"
|
||||||
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h"
|
|
||||||
#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
|
#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
|
||||||
|
|
||||||
using WebKit::WebString;
|
using WebKit::WebString;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Index: page/FrameView.cpp
|
Index: page/FrameView.cpp
|
||||||
===================================================================
|
===================================================================
|
||||||
--- page/FrameView.cpp (revision 137939)
|
--- page/FrameView.cpp (revision 143980)
|
||||||
+++ page/FrameView.cpp (working copy)
|
+++ page/FrameView.cpp (working copy)
|
||||||
@@ -209,10 +209,12 @@
|
@@ -208,10 +208,12 @@
|
||||||
if (!page)
|
if (!page)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ Index: page/FrameView.cpp
|
|||||||
PassRefPtr<FrameView> FrameView::create(Frame* frame)
|
PassRefPtr<FrameView> FrameView::create(Frame* frame)
|
||||||
Index: platform/mac/NSScrollerImpDetails.mm
|
Index: platform/mac/NSScrollerImpDetails.mm
|
||||||
===================================================================
|
===================================================================
|
||||||
--- platform/mac/NSScrollerImpDetails.mm (revision 137939)
|
--- platform/mac/NSScrollerImpDetails.mm (revision 143980)
|
||||||
+++ platform/mac/NSScrollerImpDetails.mm (working copy)
|
+++ platform/mac/NSScrollerImpDetails.mm (working copy)
|
||||||
@@ -34,6 +34,7 @@
|
@@ -34,6 +34,7 @@
|
||||||
#if PLATFORM(CHROMIUM)
|
#if PLATFORM(CHROMIUM)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Index: pylib/gyp/input.py
|
Index: pylib/gyp/input.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- pylib/gyp/input.py (revision 1556)
|
--- pylib/gyp/input.py (revision 1583)
|
||||||
+++ pylib/gyp/input.py (working copy)
|
+++ pylib/gyp/input.py (working copy)
|
||||||
@@ -857,7 +857,8 @@
|
@@ -843,7 +843,8 @@
|
||||||
# that don't load quickly, this can be faster than
|
# that don't load quickly, this can be faster than
|
||||||
# <!(python modulename param eters). Do this in |build_file_dir|.
|
# <!(python modulename param eters). Do this in |build_file_dir|.
|
||||||
oldwd = os.getcwd() # Python doesn't like os.open('.'): no fchdir.
|
oldwd = os.getcwd() # Python doesn't like os.open('.'): no fchdir.
|
||||||
|
@ -247,7 +247,7 @@ class DownloadTestHandler : public TestHandler {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
base::ScopedTempDir temp_dir_;
|
base::ScopedTempDir temp_dir_;
|
||||||
FilePath test_path_;
|
base::FilePath test_path_;
|
||||||
int download_id_;
|
int download_id_;
|
||||||
|
|
||||||
TrackCallback got_download_request_;
|
TrackCallback got_download_request_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user