| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "android_webview/browser/aw_browser_context.h" | 9 #include "android_webview/browser/aw_browser_context.h" |
| 10 #include "android_webview/browser/aw_browser_main_parts.h" | 10 #include "android_webview/browser/aw_browser_main_parts.h" |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 } | 401 } |
| 402 | 402 |
| 403 void AwContentBrowserClient::ResourceDispatcherHostCreated() { | 403 void AwContentBrowserClient::ResourceDispatcherHostCreated() { |
| 404 AwResourceDispatcherHostDelegate::ResourceDispatcherHostCreated(); | 404 AwResourceDispatcherHostDelegate::ResourceDispatcherHostCreated(); |
| 405 } | 405 } |
| 406 | 406 |
| 407 net::NetLog* AwContentBrowserClient::GetNetLog() { | 407 net::NetLog* AwContentBrowserClient::GetNetLog() { |
| 408 return browser_context_->GetAwURLRequestContext()->GetNetLog(); | 408 return browser_context_->GetAwURLRequestContext()->GetNetLog(); |
| 409 } | 409 } |
| 410 | 410 |
| 411 bool AwContentBrowserClient::IsFastShutdownPossible() { | |
| 412 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | |
| 413 switches::kSingleProcess)) { | |
| 414 NOTREACHED() | |
| 415 << "Android WebView is single process, so IsFastShutdownPossible" | |
| 416 << " should never be called"; | |
| 417 return false; | |
| 418 } else { | |
| 419 return true; | |
| 420 } | |
| 421 } | |
| 422 | |
| 423 void AwContentBrowserClient::ClearCache(content::RenderFrameHost* rfh) { | 411 void AwContentBrowserClient::ClearCache(content::RenderFrameHost* rfh) { |
| 424 RemoveHttpDiskCache(rfh->GetProcess()); | 412 RemoveHttpDiskCache(rfh->GetProcess()); |
| 425 } | 413 } |
| 426 | 414 |
| 427 void AwContentBrowserClient::ClearCookies(content::RenderFrameHost* rfh) { | 415 void AwContentBrowserClient::ClearCookies(content::RenderFrameHost* rfh) { |
| 428 // TODO(boliu): Implement. | 416 // TODO(boliu): Implement. |
| 429 NOTIMPLEMENTED(); | 417 NOTIMPLEMENTED(); |
| 430 } | 418 } |
| 431 | 419 |
| 432 base::FilePath AwContentBrowserClient::GetDefaultDownloadDirectory() { | 420 base::FilePath AwContentBrowserClient::GetDefaultDownloadDirectory() { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 | 505 |
| 518 #if defined(VIDEO_HOLE) | 506 #if defined(VIDEO_HOLE) |
| 519 content::ExternalVideoSurfaceContainer* | 507 content::ExternalVideoSurfaceContainer* |
| 520 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 508 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 521 content::WebContents* web_contents) { | 509 content::WebContents* web_contents) { |
| 522 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); | 510 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); |
| 523 } | 511 } |
| 524 #endif | 512 #endif |
| 525 | 513 |
| 526 } // namespace android_webview | 514 } // namespace android_webview |
| OLD | NEW |