| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/public/browser/content_browser_client.h" | 5 #include "content/public/browser/content_browser_client.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "ui/gfx/image/image_skia.h" | 8 #include "ui/gfx/image/image_skia.h" |
| 9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 } | 26 } |
| 27 | 27 |
| 28 bool ContentBrowserClient::ShouldUseProcessPerSite( | 28 bool ContentBrowserClient::ShouldUseProcessPerSite( |
| 29 BrowserContext* browser_context, const GURL& effective_url) { | 29 BrowserContext* browser_context, const GURL& effective_url) { |
| 30 return false; | 30 return false; |
| 31 } | 31 } |
| 32 | 32 |
| 33 net::URLRequestContextGetter* ContentBrowserClient::CreateRequestContext( | 33 net::URLRequestContextGetter* ContentBrowserClient::CreateRequestContext( |
| 34 BrowserContext* browser_context, | 34 BrowserContext* browser_context, |
| 35 ProtocolHandlerMap* protocol_handlers, | 35 ProtocolHandlerMap* protocol_handlers, |
| 36 ProtocolHandlerScopedVector protocol_interceptors) { | 36 URLRequestInterceptorScopedVector request_interceptors) { |
| 37 return NULL; | 37 return NULL; |
| 38 } | 38 } |
| 39 | 39 |
| 40 net::URLRequestContextGetter* | 40 net::URLRequestContextGetter* |
| 41 ContentBrowserClient::CreateRequestContextForStoragePartition( | 41 ContentBrowserClient::CreateRequestContextForStoragePartition( |
| 42 BrowserContext* browser_context, | 42 BrowserContext* browser_context, |
| 43 const base::FilePath& partition_path, | 43 const base::FilePath& partition_path, |
| 44 bool in_memory, | 44 bool in_memory, |
| 45 ProtocolHandlerMap* protocol_handlers, | 45 ProtocolHandlerMap* protocol_handlers, |
| 46 ProtocolHandlerScopedVector protocol_interceptors) { | 46 URLRequestInterceptorScopedVector request_interceptors) { |
| 47 return NULL; | 47 return NULL; |
| 48 } | 48 } |
| 49 | 49 |
| 50 bool ContentBrowserClient::IsHandledURL(const GURL& url) { | 50 bool ContentBrowserClient::IsHandledURL(const GURL& url) { |
| 51 return false; | 51 return false; |
| 52 } | 52 } |
| 53 | 53 |
| 54 bool ContentBrowserClient::CanCommitURL(RenderProcessHost* process_host, | 54 bool ContentBrowserClient::CanCommitURL(RenderProcessHost* process_host, |
| 55 const GURL& site_url) { | 55 const GURL& site_url) { |
| 56 return true; | 56 return true; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 int render_process_id) { | 210 int render_process_id) { |
| 211 return blink::WebNotificationPresenter::PermissionAllowed; | 211 return blink::WebNotificationPresenter::PermissionAllowed; |
| 212 } | 212 } |
| 213 | 213 |
| 214 bool ContentBrowserClient::CanCreateWindow( | 214 bool ContentBrowserClient::CanCreateWindow( |
| 215 const GURL& opener_url, | 215 const GURL& opener_url, |
| 216 const GURL& opener_top_level_frame_url, | 216 const GURL& opener_top_level_frame_url, |
| 217 const GURL& source_origin, | 217 const GURL& source_origin, |
| 218 WindowContainerType container_type, | 218 WindowContainerType container_type, |
| 219 const GURL& target_url, | 219 const GURL& target_url, |
| 220 const content::Referrer& referrer, | 220 const Referrer& referrer, |
| 221 WindowOpenDisposition disposition, | 221 WindowOpenDisposition disposition, |
| 222 const blink::WebWindowFeatures& features, | 222 const blink::WebWindowFeatures& features, |
| 223 bool user_gesture, | 223 bool user_gesture, |
| 224 bool opener_suppressed, | 224 bool opener_suppressed, |
| 225 content::ResourceContext* context, | 225 ResourceContext* context, |
| 226 int render_process_id, | 226 int render_process_id, |
| 227 int opener_id, | 227 int opener_id, |
| 228 bool* no_javascript_access) { | 228 bool* no_javascript_access) { |
| 229 *no_javascript_access = false; | 229 *no_javascript_access = false; |
| 230 return true; | 230 return true; |
| 231 } | 231 } |
| 232 | 232 |
| 233 std::string ContentBrowserClient::GetWorkerProcessTitle( | 233 std::string ContentBrowserClient::GetWorkerProcessTitle( |
| 234 const GURL& url, ResourceContext* context) { | 234 const GURL& url, ResourceContext* context) { |
| 235 return std::string(); | 235 return std::string(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 return NULL; | 290 return NULL; |
| 291 } | 291 } |
| 292 | 292 |
| 293 #if defined(OS_WIN) | 293 #if defined(OS_WIN) |
| 294 const wchar_t* ContentBrowserClient::GetResourceDllName() { | 294 const wchar_t* ContentBrowserClient::GetResourceDllName() { |
| 295 return NULL; | 295 return NULL; |
| 296 } | 296 } |
| 297 #endif | 297 #endif |
| 298 | 298 |
| 299 bool ContentBrowserClient::IsPluginAllowedToCallRequestOSFileHandle( | 299 bool ContentBrowserClient::IsPluginAllowedToCallRequestOSFileHandle( |
| 300 content::BrowserContext* browser_context, | 300 BrowserContext* browser_context, |
| 301 const GURL& url) { | 301 const GURL& url) { |
| 302 return false; | 302 return false; |
| 303 } | 303 } |
| 304 | 304 |
| 305 bool ContentBrowserClient::IsPluginAllowedToUseDevChannelAPIs() { | 305 bool ContentBrowserClient::IsPluginAllowedToUseDevChannelAPIs() { |
| 306 return false; | 306 return false; |
| 307 } | 307 } |
| 308 | 308 |
| 309 net::CookieStore* ContentBrowserClient::OverrideCookieStoreForRenderProcess( | 309 net::CookieStore* ContentBrowserClient::OverrideCookieStoreForRenderProcess( |
| 310 int render_process_id) { | 310 int render_process_id) { |
| 311 return NULL; | 311 return NULL; |
| 312 } | 312 } |
| 313 | 313 |
| 314 #if defined(VIDEO_HOLE) | 314 #if defined(VIDEO_HOLE) |
| 315 ExternalVideoSurfaceContainer* | 315 ExternalVideoSurfaceContainer* |
| 316 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 316 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 317 WebContents* web_contents) { | 317 WebContents* web_contents) { |
| 318 return NULL; | 318 return NULL; |
| 319 } | 319 } |
| 320 #endif | 320 #endif |
| 321 | 321 |
| 322 } // namespace content | 322 } // namespace content |
| OLD | NEW |