OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/renderer/dispatcher.h" | 5 #include "extensions/renderer/dispatcher.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/debug/alias.h" | 16 #include "base/debug/alias.h" |
17 #include "base/feature_list.h" | 17 #include "base/feature_list.h" |
18 #include "base/lazy_instance.h" | 18 #include "base/lazy_instance.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/ptr_util.h" | 20 #include "base/memory/ptr_util.h" |
21 #include "base/metrics/histogram_macros.h" | 21 #include "base/metrics/histogram_macros.h" |
22 #include "base/metrics/user_metrics_action.h" | |
23 #include "base/strings/string_piece.h" | 22 #include "base/strings/string_piece.h" |
24 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
25 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
26 #include "base/time/time.h" | 25 #include "base/time/time.h" |
27 #include "base/values.h" | 26 #include "base/values.h" |
28 #include "build/build_config.h" | 27 #include "build/build_config.h" |
29 #include "content/grit/content_resources.h" | 28 #include "content/grit/content_resources.h" |
30 #include "content/public/child/v8_value_converter.h" | 29 #include "content/public/child/v8_value_converter.h" |
31 #include "content/public/common/content_features.h" | 30 #include "content/public/common/content_features.h" |
32 #include "content/public/common/content_switches.h" | 31 #include "content/public/common/content_switches.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 110 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
112 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 111 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
113 #include "third_party/WebKit/public/web/WebScopedUserGesture.h" | 112 #include "third_party/WebKit/public/web/WebScopedUserGesture.h" |
114 #include "third_party/WebKit/public/web/WebScriptController.h" | 113 #include "third_party/WebKit/public/web/WebScriptController.h" |
115 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" | 114 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" |
116 #include "third_party/WebKit/public/web/WebView.h" | 115 #include "third_party/WebKit/public/web/WebView.h" |
117 #include "ui/base/layout.h" | 116 #include "ui/base/layout.h" |
118 #include "ui/base/resource/resource_bundle.h" | 117 #include "ui/base/resource/resource_bundle.h" |
119 #include "v8/include/v8.h" | 118 #include "v8/include/v8.h" |
120 | 119 |
121 using base::UserMetricsAction; | |
122 using blink::WebDataSource; | 120 using blink::WebDataSource; |
123 using blink::WebDocument; | 121 using blink::WebDocument; |
124 using blink::WebScopedUserGesture; | 122 using blink::WebScopedUserGesture; |
125 using blink::WebSecurityPolicy; | 123 using blink::WebSecurityPolicy; |
126 using blink::WebString; | 124 using blink::WebString; |
127 using blink::WebVector; | 125 using blink::WebVector; |
128 using blink::WebView; | 126 using blink::WebView; |
129 using content::RenderThread; | 127 using content::RenderThread; |
130 | 128 |
131 namespace extensions { | 129 namespace extensions { |
(...skipping 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1443 // The "guestViewDeny" module must always be loaded last. It registers | 1441 // The "guestViewDeny" module must always be loaded last. It registers |
1444 // error-providing custom elements for the GuestView types that are not | 1442 // error-providing custom elements for the GuestView types that are not |
1445 // available, and thus all of those types must have been checked and loaded | 1443 // available, and thus all of those types must have been checked and loaded |
1446 // (or not loaded) beforehand. | 1444 // (or not loaded) beforehand. |
1447 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { | 1445 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { |
1448 module_system->Require("guestViewDeny"); | 1446 module_system->Require("guestViewDeny"); |
1449 } | 1447 } |
1450 } | 1448 } |
1451 | 1449 |
1452 } // namespace extensions | 1450 } // namespace extensions |
OLD | NEW |