Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(516)

Side by Side Diff: extensions/renderer/native_extension_bindings_system.h

Issue 2909673003: [Extensions Bindings] Request JS execution from messaging bindings (Closed)
Patch Set: lazyboy's Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
52 void DispatchEventInContext(const std::string& event_name, 52 void DispatchEventInContext(const std::string& event_name,
53 const base::ListValue* event_args, 53 const base::ListValue* event_args,
54 const base::DictionaryValue* filtering_info, 54 const base::DictionaryValue* filtering_info,
55 ScriptContext* context) override; 55 ScriptContext* context) override;
56 bool HasEventListenerInContext(const std::string& event_name,
57 ScriptContext* context) override;
56 void HandleResponse(int request_id, 58 void HandleResponse(int request_id,
57 bool success, 59 bool success,
58 const base::ListValue& response, 60 const base::ListValue& response,
59 const std::string& error) override; 61 const std::string& error) override;
60 RequestSender* GetRequestSender() override; 62 RequestSender* GetRequestSender() override;
61 63
62 APIBindingsSystem* api_system() { return &api_system_; } 64 APIBindingsSystem* api_system() { return &api_system_; }
63 65
64 private: 66 private:
65 // Handles sending a given |request|, forwarding it on to the send_ipc_ after 67 // Handles sending a given |request|, forwarding it on to the send_ipc_ after
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 v8::Eternal<v8::FunctionTemplate> get_internal_api_; 112 v8::Eternal<v8::FunctionTemplate> get_internal_api_;
111 113
112 base::WeakPtrFactory<NativeExtensionBindingsSystem> weak_factory_; 114 base::WeakPtrFactory<NativeExtensionBindingsSystem> weak_factory_;
113 115
114 DISALLOW_COPY_AND_ASSIGN(NativeExtensionBindingsSystem); 116 DISALLOW_COPY_AND_ASSIGN(NativeExtensionBindingsSystem);
115 }; 117 };
116 118
117 } // namespace extensions 119 } // namespace extensions
118 120
119 #endif // EXTENSIONS_RENDERER_NATIVE_EXTENSION_BINDINGS_SYSTEM_H_ 121 #endif // EXTENSIONS_RENDERER_NATIVE_EXTENSION_BINDINGS_SYSTEM_H_
OLDNEW
« no previous file with comments | « extensions/renderer/messaging_bindings.cc ('k') | extensions/renderer/native_extension_bindings_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698