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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 browser_context_->PreMainMessageLoopRun(); | 89 browser_context_->PreMainMessageLoopRun(); |
90 | 90 |
91 AwDevToolsDiscoveryProvider::Install(); | 91 AwDevToolsDiscoveryProvider::Install(); |
92 | 92 |
93 media::SetMediaClientAndroid( | 93 media::SetMediaClientAndroid( |
94 new AwMediaClientAndroid(AwResource::GetConfigKeySystemUuidMapping())); | 94 new AwMediaClientAndroid(AwResource::GetConfigKeySystemUuidMapping())); |
95 | 95 |
96 content::RenderFrameHost::AllowInjectingJavaScriptForAndroidWebView(); | 96 content::RenderFrameHost::AllowInjectingJavaScriptForAndroidWebView(); |
97 } | 97 } |
98 | 98 |
99 void AwBrowserMainParts::PostMainMessageLoopRun() { | |
100 browser_context_->PostMainMessageLoopRun(); | |
101 } | |
102 | |
103 bool AwBrowserMainParts::MainMessageLoopRun(int* result_code) { | 99 bool AwBrowserMainParts::MainMessageLoopRun(int* result_code) { |
104 // Android WebView does not use default MessageLoop. It has its own | 100 // Android WebView does not use default MessageLoop. It has its own |
105 // Android specific MessageLoop. | 101 // Android specific MessageLoop. |
106 return true; | 102 return true; |
107 } | 103 } |
108 | 104 |
109 } // namespace android_webview | 105 } // namespace android_webview |
OLD | NEW |