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