| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef EXTENSIONS_RENDERER_JS_EXTENSION_BINDINGS_SYSTEM_H_ | 5 #ifndef EXTENSIONS_RENDERER_JS_EXTENSION_BINDINGS_SYSTEM_H_ |
| 6 #define EXTENSIONS_RENDERER_JS_EXTENSION_BINDINGS_SYSTEM_H_ | 6 #define EXTENSIONS_RENDERER_JS_EXTENSION_BINDINGS_SYSTEM_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 const base::ListValue* event_args, | 30 const base::ListValue* event_args, |
| 31 const base::DictionaryValue* filtering_info, | 31 const base::DictionaryValue* filtering_info, |
| 32 ScriptContext* context) override; | 32 ScriptContext* context) override; |
| 33 void HandleResponse(int request_id, | 33 void HandleResponse(int request_id, |
| 34 bool success, | 34 bool success, |
| 35 const base::ListValue& response, | 35 const base::ListValue& response, |
| 36 const std::string& error) override; | 36 const std::string& error) override; |
| 37 RequestSender* GetRequestSender() override; | 37 RequestSender* GetRequestSender() override; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 void RegisterBinding(const std::string& api_name, ScriptContext* context); | 40 void RegisterBinding(const std::string& api_name, |
| 41 const std::string& api_bind_name, |
| 42 ScriptContext* context); |
| 41 | 43 |
| 42 ResourceBundleSourceMap* source_map_ = nullptr; | 44 ResourceBundleSourceMap* source_map_ = nullptr; |
| 43 | 45 |
| 44 std::unique_ptr<RequestSender> request_sender_; | 46 std::unique_ptr<RequestSender> request_sender_; |
| 45 | 47 |
| 46 DISALLOW_COPY_AND_ASSIGN(JsExtensionBindingsSystem); | 48 DISALLOW_COPY_AND_ASSIGN(JsExtensionBindingsSystem); |
| 47 }; | 49 }; |
| 48 | 50 |
| 49 } // namespace extensions | 51 } // namespace extensions |
| 50 | 52 |
| 51 #endif // EXTENSIONS_RENDERER_JS_EXTENSION_BINDINGS_SYSTEM_H_ | 53 #endif // EXTENSIONS_RENDERER_JS_EXTENSION_BINDINGS_SYSTEM_H_ |
| OLD | NEW |