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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/alias.h" | 10 #include "base/debug/alias.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 #include "extensions/renderer/script_context_set.h" | 73 #include "extensions/renderer/script_context_set.h" |
74 #include "extensions/renderer/script_injection.h" | 74 #include "extensions/renderer/script_injection.h" |
75 #include "extensions/renderer/script_injection_manager.h" | 75 #include "extensions/renderer/script_injection_manager.h" |
76 #include "extensions/renderer/send_request_natives.h" | 76 #include "extensions/renderer/send_request_natives.h" |
77 #include "extensions/renderer/set_icon_natives.h" | 77 #include "extensions/renderer/set_icon_natives.h" |
78 #include "extensions/renderer/test_features_native_handler.h" | 78 #include "extensions/renderer/test_features_native_handler.h" |
79 #include "extensions/renderer/user_gestures_native_handler.h" | 79 #include "extensions/renderer/user_gestures_native_handler.h" |
80 #include "extensions/renderer/utils_native_handler.h" | 80 #include "extensions/renderer/utils_native_handler.h" |
81 #include "extensions/renderer/v8_context_native_handler.h" | 81 #include "extensions/renderer/v8_context_native_handler.h" |
82 #include "grit/extensions_renderer_resources.h" | 82 #include "grit/extensions_renderer_resources.h" |
83 #include "mojo/public/js/bindings/constants.h" | 83 #include "mojo/public/js/constants.h" |
84 #include "third_party/WebKit/public/platform/WebString.h" | 84 #include "third_party/WebKit/public/platform/WebString.h" |
85 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 85 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
86 #include "third_party/WebKit/public/web/WebCustomElement.h" | 86 #include "third_party/WebKit/public/web/WebCustomElement.h" |
87 #include "third_party/WebKit/public/web/WebDataSource.h" | 87 #include "third_party/WebKit/public/web/WebDataSource.h" |
88 #include "third_party/WebKit/public/web/WebDocument.h" | 88 #include "third_party/WebKit/public/web/WebDocument.h" |
89 #include "third_party/WebKit/public/web/WebFrame.h" | 89 #include "third_party/WebKit/public/web/WebFrame.h" |
90 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 90 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
91 #include "third_party/WebKit/public/web/WebScopedUserGesture.h" | 91 #include "third_party/WebKit/public/web/WebScopedUserGesture.h" |
92 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" | 92 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" |
93 #include "third_party/WebKit/public/web/WebView.h" | 93 #include "third_party/WebKit/public/web/WebView.h" |
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1403 return v8::Handle<v8::Object>(); | 1403 return v8::Handle<v8::Object>(); |
1404 | 1404 |
1405 if (bind_name) | 1405 if (bind_name) |
1406 *bind_name = split.back(); | 1406 *bind_name = split.back(); |
1407 | 1407 |
1408 return bind_object.IsEmpty() ? AsObjectOrEmpty(GetOrCreateChrome(context)) | 1408 return bind_object.IsEmpty() ? AsObjectOrEmpty(GetOrCreateChrome(context)) |
1409 : bind_object; | 1409 : bind_object; |
1410 } | 1410 } |
1411 | 1411 |
1412 } // namespace extensions | 1412 } // namespace extensions |
OLD | NEW |