| 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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 // is used to post onPageStarted. We handle shouldOverrideUrlLoading | 512 // is used to post onPageStarted. We handle shouldOverrideUrlLoading |
| 513 // via a sync IPC. | 513 // via a sync IPC. |
| 514 if (navigation_handle->IsInMainFrame()) { | 514 if (navigation_handle->IsInMainFrame()) { |
| 515 throttles.push_back( | 515 throttles.push_back( |
| 516 navigation_interception::InterceptNavigationDelegate::CreateThrottleFor( | 516 navigation_interception::InterceptNavigationDelegate::CreateThrottleFor( |
| 517 navigation_handle)); | 517 navigation_handle)); |
| 518 } | 518 } |
| 519 return throttles; | 519 return throttles; |
| 520 } | 520 } |
| 521 | 521 |
| 522 #if defined(VIDEO_HOLE) | |
| 523 content::ExternalVideoSurfaceContainer* | |
| 524 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | |
| 525 content::WebContents* web_contents) { | |
| 526 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); | |
| 527 } | |
| 528 #endif | |
| 529 | |
| 530 } // namespace android_webview | 522 } // namespace android_webview |
| OLD | NEW |