| 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_browser_main_parts.h" | 5 #include "android_webview/browser/aw_browser_main_parts.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_dev_tools_discovery_provider.h" | 8 #include "android_webview/browser/aw_dev_tools_discovery_provider.h" |
| 9 #include "android_webview/browser/aw_media_client_android.h" | 9 #include "android_webview/browser/aw_media_client_android.h" |
| 10 #include "android_webview/browser/aw_result_codes.h" | 10 #include "android_webview/browser/aw_result_codes.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 browser_context_->PreMainMessageLoopRun(); | 83 browser_context_->PreMainMessageLoopRun(); |
| 84 | 84 |
| 85 AwDevToolsDiscoveryProvider::Install(); | 85 AwDevToolsDiscoveryProvider::Install(); |
| 86 | 86 |
| 87 media::SetMediaClientAndroid( | 87 media::SetMediaClientAndroid( |
| 88 new AwMediaClientAndroid(AwResource::GetConfigKeySystemUuidMapping())); | 88 new AwMediaClientAndroid(AwResource::GetConfigKeySystemUuidMapping())); |
| 89 | 89 |
| 90 content::RenderFrameHost::AllowInjectingJavaScriptForAndroidWebView(); | 90 content::RenderFrameHost::AllowInjectingJavaScriptForAndroidWebView(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 void AwBrowserMainParts::PostMainMessageLoopRun() { |
| 94 browser_context_->PostMainMessageLoopRun(); |
| 95 } |
| 96 |
| 93 bool AwBrowserMainParts::MainMessageLoopRun(int* result_code) { | 97 bool AwBrowserMainParts::MainMessageLoopRun(int* result_code) { |
| 94 // Android WebView does not use default MessageLoop. It has its own | 98 // Android WebView does not use default MessageLoop. It has its own |
| 95 // Android specific MessageLoop. | 99 // Android specific MessageLoop. |
| 96 return true; | 100 return true; |
| 97 } | 101 } |
| 98 | 102 |
| 99 } // namespace android_webview | 103 } // namespace android_webview |
| OLD | NEW |