| 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 "android_webview/browser/aw_content_browser_client.h" | 5 #include "android_webview/browser/aw_content_browser_client.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/aw_browser_context.h" | 7 #include "android_webview/browser/aw_browser_context.h" |
| 8 #include "android_webview/browser/aw_browser_main_parts.h" | 8 #include "android_webview/browser/aw_browser_main_parts.h" |
| 9 #include "android_webview/browser/aw_browser_permission_request_delegate.h" | 9 #include "android_webview/browser/aw_browser_permission_request_delegate.h" |
| 10 #include "android_webview/browser/aw_contents_client_bridge_base.h" | 10 #include "android_webview/browser/aw_contents_client_bridge_base.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 net::android::StoreCertificate(cert_type, cert_data, cert_size); | 192 net::android::StoreCertificate(cert_type, cert_data, cert_size); |
| 193 } | 193 } |
| 194 | 194 |
| 195 content::BrowserMainParts* AwContentBrowserClient::CreateBrowserMainParts( | 195 content::BrowserMainParts* AwContentBrowserClient::CreateBrowserMainParts( |
| 196 const content::MainFunctionParams& parameters) { | 196 const content::MainFunctionParams& parameters) { |
| 197 return new AwBrowserMainParts(browser_context_.get()); | 197 return new AwBrowserMainParts(browser_context_.get()); |
| 198 } | 198 } |
| 199 | 199 |
| 200 content::WebContentsViewDelegate* | 200 content::WebContentsViewDelegate* |
| 201 AwContentBrowserClient::GetWebContentsViewDelegate( | 201 AwContentBrowserClient::GetWebContentsViewDelegate( |
| 202 content::WebContents* web_contents) { | 202 content::WebContents* web_contents, |
| 203 gfx::NativeView context) { |
| 203 return native_factory_->CreateViewDelegate(web_contents); | 204 return native_factory_->CreateViewDelegate(web_contents); |
| 204 } | 205 } |
| 205 | 206 |
| 206 void AwContentBrowserClient::RenderProcessWillLaunch( | 207 void AwContentBrowserClient::RenderProcessWillLaunch( |
| 207 content::RenderProcessHost* host) { | 208 content::RenderProcessHost* host) { |
| 208 // If WebView becomes multi-process capable, this may be insecure. | 209 // If WebView becomes multi-process capable, this may be insecure. |
| 209 // More benefit can be derived from the ChildProcessSecurotyPolicy by | 210 // More benefit can be derived from the ChildProcessSecurotyPolicy by |
| 210 // deferring the GrantScheme calls until we know that a given child process | 211 // deferring the GrantScheme calls until we know that a given child process |
| 211 // really does need that priviledge. Check here to ensure we rethink this | 212 // really does need that priviledge. Check here to ensure we rethink this |
| 212 // when the time comes. See crbug.com/156062. | 213 // when the time comes. See crbug.com/156062. |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); | 576 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); |
| 576 } | 577 } |
| 577 #endif | 578 #endif |
| 578 | 579 |
| 579 content::DevToolsManagerDelegate* | 580 content::DevToolsManagerDelegate* |
| 580 AwContentBrowserClient::GetDevToolsManagerDelegate() { | 581 AwContentBrowserClient::GetDevToolsManagerDelegate() { |
| 581 return new AwDevToolsManagerDelegate(); | 582 return new AwDevToolsManagerDelegate(); |
| 582 } | 583 } |
| 583 | 584 |
| 584 } // namespace android_webview | 585 } // namespace android_webview |
| OLD | NEW |