| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/declarative_event.h" | 5 #include "extensions/renderer/bindings/declarative_event.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "extensions/common/extension_api.h" | 13 #include "extensions/common/extension_api.h" |
| 14 #include "extensions/renderer/api_binding_test.h" | 14 #include "extensions/renderer/bindings/api_binding_test.h" |
| 15 #include "extensions/renderer/api_binding_test_util.h" | 15 #include "extensions/renderer/bindings/api_binding_test_util.h" |
| 16 #include "extensions/renderer/api_bindings_system.h" | 16 #include "extensions/renderer/bindings/api_bindings_system.h" |
| 17 #include "extensions/renderer/api_bindings_system_unittest.h" | 17 #include "extensions/renderer/bindings/api_bindings_system_unittest.h" |
| 18 #include "extensions/renderer/api_last_error.h" | 18 #include "extensions/renderer/bindings/api_last_error.h" |
| 19 #include "extensions/renderer/api_request_handler.h" | 19 #include "extensions/renderer/bindings/api_request_handler.h" |
| 20 #include "extensions/renderer/api_type_reference_map.h" | 20 #include "extensions/renderer/bindings/api_type_reference_map.h" |
| 21 #include "extensions/renderer/argument_spec.h" | 21 #include "extensions/renderer/bindings/argument_spec.h" |
| 22 #include "gin/handle.h" | 22 #include "gin/handle.h" |
| 23 | 23 |
| 24 namespace extensions { | 24 namespace extensions { |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 const char kDeclarativeAPIName[] = "alpha"; | 28 const char kDeclarativeAPIName[] = "alpha"; |
| 29 const char kDeclarativeAPISpec[] = | 29 const char kDeclarativeAPISpec[] = |
| 30 "{" | 30 "{" |
| 31 " 'types': [{" | 31 " 'types': [{" |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 "})"; | 249 "})"; |
| 250 v8::Local<v8::Function> remove_rules = | 250 v8::Local<v8::Function> remove_rules = |
| 251 FunctionFromString(context, kGetRules); | 251 FunctionFromString(context, kGetRules); |
| 252 RunFunctionOnGlobal(remove_rules, context, arraysize(args), args); | 252 RunFunctionOnGlobal(remove_rules, context, arraysize(args), args); |
| 253 ValidateLastRequest("events.getRules", "['alpha.declarativeEvent',0,null]"); | 253 ValidateLastRequest("events.getRules", "['alpha.declarativeEvent',0,null]"); |
| 254 reset_last_request(); | 254 reset_last_request(); |
| 255 } | 255 } |
| 256 } | 256 } |
| 257 | 257 |
| 258 } // namespace extensions | 258 } // namespace extensions |
| OLD | NEW |