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/lib/main/aw_main_delegate.h" | 5 #include "android_webview/lib/main/aw_main_delegate.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "android_webview/browser/aw_content_browser_client.h" | 9 #include "android_webview/browser/aw_content_browser_client.h" |
10 #include "android_webview/browser/aw_safe_browsing_config_helper.h" | 10 #include "android_webview/browser/aw_safe_browsing_config_helper.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #include "media/media_features.h" | 48 #include "media/media_features.h" |
49 #include "ui/base/resource/resource_bundle.h" | 49 #include "ui/base/resource/resource_bundle.h" |
50 #include "ui/events/gesture_detection/gesture_configuration.h" | 50 #include "ui/events/gesture_detection/gesture_configuration.h" |
51 | 51 |
52 namespace android_webview { | 52 namespace android_webview { |
53 | 53 |
54 namespace { | 54 namespace { |
55 | 55 |
56 // TODO(boliu): Remove this global Allow once the underlying issues are | 56 // TODO(boliu): Remove this global Allow once the underlying issues are |
57 // resolved - http://crbug.com/240453. See AwMainDelegate::RunProcess below. | 57 // resolved - http://crbug.com/240453. See AwMainDelegate::RunProcess below. |
58 base::LazyInstance<std::unique_ptr<ScopedAllowWaitForLegacyWebViewApi>> | 58 base::LazyInstance<std::unique_ptr<ScopedAllowWaitForLegacyWebViewApi>>:: |
59 g_allow_wait_in_ui_thread = LAZY_INSTANCE_INITIALIZER; | 59 DestructorAtExit g_allow_wait_in_ui_thread = LAZY_INSTANCE_INITIALIZER; |
60 } | 60 } |
61 | 61 |
62 AwMainDelegate::AwMainDelegate() { | 62 AwMainDelegate::AwMainDelegate() { |
63 } | 63 } |
64 | 64 |
65 AwMainDelegate::~AwMainDelegate() { | 65 AwMainDelegate::~AwMainDelegate() { |
66 } | 66 } |
67 | 67 |
68 bool AwMainDelegate::BasicStartupComplete(int* exit_code) { | 68 bool AwMainDelegate::BasicStartupComplete(int* exit_code) { |
69 content::SetContentClient(&content_client_); | 69 content::SetContentClient(&content_client_); |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 280 |
281 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { | 281 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { |
282 return new AwWebPreferencesPopulaterImpl(); | 282 return new AwWebPreferencesPopulaterImpl(); |
283 } | 283 } |
284 | 284 |
285 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() { | 285 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() { |
286 return new AwLocaleManagerImpl(); | 286 return new AwLocaleManagerImpl(); |
287 } | 287 } |
288 | 288 |
289 } // namespace android_webview | 289 } // namespace android_webview |
OLD | NEW |