| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 #include "extensions/renderer/script_context_set.h" | 75 #include "extensions/renderer/script_context_set.h" |
| 76 #include "extensions/renderer/script_injection.h" | 76 #include "extensions/renderer/script_injection.h" |
| 77 #include "extensions/renderer/script_injection_manager.h" | 77 #include "extensions/renderer/script_injection_manager.h" |
| 78 #include "extensions/renderer/send_request_natives.h" | 78 #include "extensions/renderer/send_request_natives.h" |
| 79 #include "extensions/renderer/set_icon_natives.h" | 79 #include "extensions/renderer/set_icon_natives.h" |
| 80 #include "extensions/renderer/test_features_native_handler.h" | 80 #include "extensions/renderer/test_features_native_handler.h" |
| 81 #include "extensions/renderer/user_gestures_native_handler.h" | 81 #include "extensions/renderer/user_gestures_native_handler.h" |
| 82 #include "extensions/renderer/utils_native_handler.h" | 82 #include "extensions/renderer/utils_native_handler.h" |
| 83 #include "extensions/renderer/v8_context_native_handler.h" | 83 #include "extensions/renderer/v8_context_native_handler.h" |
| 84 #include "grit/extensions_renderer_resources.h" | 84 #include "grit/extensions_renderer_resources.h" |
| 85 #include "mojo/public/js/constants.h" | |
| 86 #include "third_party/WebKit/public/platform/WebString.h" | 85 #include "third_party/WebKit/public/platform/WebString.h" |
| 87 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 86 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 88 #include "third_party/WebKit/public/web/WebCustomElement.h" | 87 #include "third_party/WebKit/public/web/WebCustomElement.h" |
| 89 #include "third_party/WebKit/public/web/WebDataSource.h" | 88 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 90 #include "third_party/WebKit/public/web/WebDocument.h" | 89 #include "third_party/WebKit/public/web/WebDocument.h" |
| 91 #include "third_party/WebKit/public/web/WebFrame.h" | 90 #include "third_party/WebKit/public/web/WebFrame.h" |
| 92 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 91 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
| 93 #include "third_party/WebKit/public/web/WebScopedUserGesture.h" | 92 #include "third_party/WebKit/public/web/WebScopedUserGesture.h" |
| 94 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" | 93 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" |
| 95 #include "third_party/WebKit/public/web/WebView.h" | 94 #include "third_party/WebKit/public/web/WebView.h" |
| 95 #include "third_party/mojo/src/mojo/public/js/constants.h" |
| 96 #include "ui/base/layout.h" | 96 #include "ui/base/layout.h" |
| 97 #include "ui/base/resource/resource_bundle.h" | 97 #include "ui/base/resource/resource_bundle.h" |
| 98 #include "v8/include/v8.h" | 98 #include "v8/include/v8.h" |
| 99 | 99 |
| 100 using base::UserMetricsAction; | 100 using base::UserMetricsAction; |
| 101 using blink::WebDataSource; | 101 using blink::WebDataSource; |
| 102 using blink::WebDocument; | 102 using blink::WebDocument; |
| 103 using blink::WebFrame; | 103 using blink::WebFrame; |
| 104 using blink::WebScopedUserGesture; | 104 using blink::WebScopedUserGesture; |
| 105 using blink::WebSecurityPolicy; | 105 using blink::WebSecurityPolicy; |
| (...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 return v8::Handle<v8::Object>(); | 1428 return v8::Handle<v8::Object>(); |
| 1429 | 1429 |
| 1430 if (bind_name) | 1430 if (bind_name) |
| 1431 *bind_name = split.back(); | 1431 *bind_name = split.back(); |
| 1432 | 1432 |
| 1433 return bind_object.IsEmpty() ? AsObjectOrEmpty(GetOrCreateChrome(context)) | 1433 return bind_object.IsEmpty() ? AsObjectOrEmpty(GetOrCreateChrome(context)) |
| 1434 : bind_object; | 1434 : bind_object; |
| 1435 } | 1435 } |
| 1436 | 1436 |
| 1437 } // namespace extensions | 1437 } // namespace extensions |
| OLD | NEW |