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_NATIVE_EXTENSION_BINDINGS_SYSTEM_H_ | 5 #ifndef EXTENSIONS_RENDERER_NATIVE_EXTENSION_BINDINGS_SYSTEM_H_ |
6 #define EXTENSIONS_RENDERER_NATIVE_EXTENSION_BINDINGS_SYSTEM_H_ | 6 #define EXTENSIONS_RENDERER_NATIVE_EXTENSION_BINDINGS_SYSTEM_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 public: | 31 public: |
32 using SendRequestIPCMethod = | 32 using SendRequestIPCMethod = |
33 base::Callback<void(ScriptContext*, | 33 base::Callback<void(ScriptContext*, |
34 const ExtensionHostMsg_Request_Params&, | 34 const ExtensionHostMsg_Request_Params&, |
35 binding::RequestThread)>; | 35 binding::RequestThread)>; |
36 using SendEventListenerIPCMethod = | 36 using SendEventListenerIPCMethod = |
37 base::Callback<void(binding::EventListenersChanged, | 37 base::Callback<void(binding::EventListenersChanged, |
38 ScriptContext*, | 38 ScriptContext*, |
39 const std::string& event_name, | 39 const std::string& event_name, |
40 const base::DictionaryValue* filter, | 40 const base::DictionaryValue* filter, |
41 bool was_manual)>; | 41 bool update_lazy_listeners)>; |
42 | 42 |
43 NativeExtensionBindingsSystem( | 43 NativeExtensionBindingsSystem( |
44 const SendRequestIPCMethod& send_request_ipc, | 44 const SendRequestIPCMethod& send_request_ipc, |
45 const SendEventListenerIPCMethod& send_event_listener_ipc); | 45 const SendEventListenerIPCMethod& send_event_listener_ipc); |
46 ~NativeExtensionBindingsSystem() override; | 46 ~NativeExtensionBindingsSystem() override; |
47 | 47 |
48 // ExtensionBindingsSystem: | 48 // ExtensionBindingsSystem: |
49 void DidCreateScriptContext(ScriptContext* context) override; | 49 void DidCreateScriptContext(ScriptContext* context) override; |
50 void WillReleaseScriptContext(ScriptContext* context) override; | 50 void WillReleaseScriptContext(ScriptContext* context) override; |
51 void UpdateBindingsForContext(ScriptContext* context) override; | 51 void UpdateBindingsForContext(ScriptContext* context) override; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 v8::Eternal<v8::FunctionTemplate> get_internal_api_; | 114 v8::Eternal<v8::FunctionTemplate> get_internal_api_; |
115 | 115 |
116 base::WeakPtrFactory<NativeExtensionBindingsSystem> weak_factory_; | 116 base::WeakPtrFactory<NativeExtensionBindingsSystem> weak_factory_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(NativeExtensionBindingsSystem); | 118 DISALLOW_COPY_AND_ASSIGN(NativeExtensionBindingsSystem); |
119 }; | 119 }; |
120 | 120 |
121 } // namespace extensions | 121 } // namespace extensions |
122 | 122 |
123 #endif // EXTENSIONS_RENDERER_NATIVE_EXTENSION_BINDINGS_SYSTEM_H_ | 123 #endif // EXTENSIONS_RENDERER_NATIVE_EXTENSION_BINDINGS_SYSTEM_H_ |
OLD | NEW |