OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/frame_host/interstitial_page_impl.h" | 5 #include "content/browser/frame_host/interstitial_page_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "base/metrics/user_metrics.h" |
15 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
16 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
17 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
18 #include "base/threading/thread.h" | 19 #include "base/threading/thread.h" |
19 #include "base/threading/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
20 #include "build/build_config.h" | 21 #include "build/build_config.h" |
21 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 22 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
22 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 23 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
23 #include "content/browser/frame_host/interstitial_page_navigator_impl.h" | 24 #include "content/browser/frame_host/interstitial_page_navigator_impl.h" |
24 #include "content/browser/frame_host/navigation_controller_impl.h" | 25 #include "content/browser/frame_host/navigation_controller_impl.h" |
(...skipping 15 matching lines...) Expand all Loading... |
40 #include "content/public/browser/browser_context.h" | 41 #include "content/public/browser/browser_context.h" |
41 #include "content/public/browser/browser_thread.h" | 42 #include "content/public/browser/browser_thread.h" |
42 #include "content/public/browser/content_browser_client.h" | 43 #include "content/public/browser/content_browser_client.h" |
43 #include "content/public/browser/interstitial_page_delegate.h" | 44 #include "content/public/browser/interstitial_page_delegate.h" |
44 #include "content/public/browser/invalidate_type.h" | 45 #include "content/public/browser/invalidate_type.h" |
45 #include "content/public/browser/keyboard_event_processing_result.h" | 46 #include "content/public/browser/keyboard_event_processing_result.h" |
46 #include "content/public/browser/notification_service.h" | 47 #include "content/public/browser/notification_service.h" |
47 #include "content/public/browser/notification_source.h" | 48 #include "content/public/browser/notification_source.h" |
48 #include "content/public/browser/notification_types.h" | 49 #include "content/public/browser/notification_types.h" |
49 #include "content/public/browser/storage_partition.h" | 50 #include "content/public/browser/storage_partition.h" |
50 #include "content/public/browser/user_metrics.h" | |
51 #include "content/public/browser/web_contents_delegate.h" | 51 #include "content/public/browser/web_contents_delegate.h" |
52 #include "content/public/common/bindings_policy.h" | 52 #include "content/public/common/bindings_policy.h" |
53 #include "net/base/escape.h" | 53 #include "net/base/escape.h" |
54 #include "net/url_request/url_request_context_getter.h" | 54 #include "net/url_request/url_request_context_getter.h" |
55 #include "ui/base/page_transition_types.h" | 55 #include "ui/base/page_transition_types.h" |
56 | 56 |
57 using blink::WebDragOperation; | 57 using blink::WebDragOperation; |
58 using blink::WebDragOperationsMask; | 58 using blink::WebDragOperationsMask; |
59 | 59 |
60 namespace content { | 60 namespace content { |
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) { | 971 void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) { |
972 WebContentsImpl* web_contents_impl = | 972 WebContentsImpl* web_contents_impl = |
973 static_cast<WebContentsImpl*>(web_contents_); | 973 static_cast<WebContentsImpl*>(web_contents_); |
974 if (!web_contents_impl) | 974 if (!web_contents_impl) |
975 return; | 975 return; |
976 | 976 |
977 web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor); | 977 web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor); |
978 } | 978 } |
979 | 979 |
980 } // namespace content | 980 } // namespace content |
OLD | NEW |