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 "content/browser/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/metrics/stats_counters.h" | 12 #include "base/metrics/stats_counters.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "base/string_number_conversions.h" | 14 #include "base/string_number_conversions.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 16 #include "base/strings/utf_string_conversions.h" |
16 #include "base/sys_info.h" | 17 #include "base/sys_info.h" |
17 #include "base/time.h" | 18 #include "base/time.h" |
18 #include "base/utf_string_conversions.h" | |
19 #include "cc/base/switches.h" | 19 #include "cc/base/switches.h" |
20 #include "content/browser/browser_plugin/browser_plugin_embedder.h" | 20 #include "content/browser/browser_plugin/browser_plugin_embedder.h" |
21 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 21 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
22 #include "content/browser/browser_plugin/browser_plugin_guest_manager.h" | 22 #include "content/browser/browser_plugin/browser_plugin_guest_manager.h" |
23 #include "content/browser/child_process_security_policy_impl.h" | 23 #include "content/browser/child_process_security_policy_impl.h" |
24 #include "content/browser/devtools/devtools_manager_impl.h" | 24 #include "content/browser/devtools/devtools_manager_impl.h" |
25 #include "content/browser/dom_storage/dom_storage_context_impl.h" | 25 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
26 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 26 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
27 #include "content/browser/download/download_stats.h" | 27 #include "content/browser/download/download_stats.h" |
28 #include "content/browser/download/mhtml_generation_manager.h" | 28 #include "content/browser/download/mhtml_generation_manager.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 80 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
81 #include "ui/base/layout.h" | 81 #include "ui/base/layout.h" |
82 #include "ui/base/touch/touch_device.h" | 82 #include "ui/base/touch/touch_device.h" |
83 #include "ui/base/ui_base_switches.h" | 83 #include "ui/base/ui_base_switches.h" |
84 #include "ui/gfx/display.h" | 84 #include "ui/gfx/display.h" |
85 #include "ui/gfx/screen.h" | 85 #include "ui/gfx/screen.h" |
86 #include "ui/gl/gl_switches.h" | 86 #include "ui/gl/gl_switches.h" |
87 #include "webkit/common/webpreferences.h" | 87 #include "webkit/common/webpreferences.h" |
88 | 88 |
89 #if defined(OS_ANDROID) | 89 #if defined(OS_ANDROID) |
| 90 #include "content/browser/android/date_time_chooser_android.h" |
90 #include "content/public/browser/android/content_view_core.h" | 91 #include "content/public/browser/android/content_view_core.h" |
91 #include "content/browser/android/date_time_chooser_android.h" | |
92 #endif | 92 #endif |
93 | 93 |
94 #if defined(OS_MACOSX) | 94 #if defined(OS_MACOSX) |
95 #include "base/mac/foundation_util.h" | 95 #include "base/mac/foundation_util.h" |
96 #include "ui/surface/io_surface_support_mac.h" | 96 #include "ui/surface/io_surface_support_mac.h" |
97 #endif | 97 #endif |
98 | 98 |
99 #if defined(ENABLE_JAVA_BRIDGE) | 99 #if defined(ENABLE_JAVA_BRIDGE) |
100 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager
.h" | 100 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager
.h" |
101 #endif | 101 #endif |
(...skipping 3537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3639 } | 3639 } |
3640 | 3640 |
3641 BrowserPluginGuestManager* | 3641 BrowserPluginGuestManager* |
3642 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3642 WebContentsImpl::GetBrowserPluginGuestManager() const { |
3643 return static_cast<BrowserPluginGuestManager*>( | 3643 return static_cast<BrowserPluginGuestManager*>( |
3644 GetBrowserContext()->GetUserData( | 3644 GetBrowserContext()->GetUserData( |
3645 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3645 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
3646 } | 3646 } |
3647 | 3647 |
3648 } // namespace content | 3648 } // namespace content |
OLD | NEW |