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

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

Issue 2940893002: [Extensions] Pass EventFilteringInfo directly in DispatchEvent message (Closed)
Patch Set: . 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_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 10 matching lines...) Expand all
21 JsExtensionBindingsSystem(ResourceBundleSourceMap* source_map, 21 JsExtensionBindingsSystem(ResourceBundleSourceMap* source_map,
22 std::unique_ptr<RequestSender> request_sender); 22 std::unique_ptr<RequestSender> request_sender);
23 ~JsExtensionBindingsSystem() override; 23 ~JsExtensionBindingsSystem() override;
24 24
25 // ExtensionBindingsSystem: 25 // ExtensionBindingsSystem:
26 void DidCreateScriptContext(ScriptContext* context) override; 26 void DidCreateScriptContext(ScriptContext* context) override;
27 void WillReleaseScriptContext(ScriptContext* context) override; 27 void WillReleaseScriptContext(ScriptContext* context) override;
28 void UpdateBindingsForContext(ScriptContext* context) override; 28 void UpdateBindingsForContext(ScriptContext* context) override;
29 void DispatchEventInContext(const std::string& event_name, 29 void DispatchEventInContext(const std::string& event_name,
30 const base::ListValue* event_args, 30 const base::ListValue* event_args,
31 const base::DictionaryValue* filtering_info, 31 const EventFilteringInfo* filtering_info,
32 ScriptContext* context) override; 32 ScriptContext* context) override;
33 bool HasEventListenerInContext(const std::string& event_name, 33 bool HasEventListenerInContext(const std::string& event_name,
34 ScriptContext* context) override; 34 ScriptContext* context) override;
35 void HandleResponse(int request_id, 35 void HandleResponse(int request_id,
36 bool success, 36 bool success,
37 const base::ListValue& response, 37 const base::ListValue& response,
38 const std::string& error) override; 38 const std::string& error) override;
39 RequestSender* GetRequestSender() override; 39 RequestSender* GetRequestSender() override;
40 40
41 private: 41 private:
42 void RegisterBinding(const std::string& api_name, 42 void RegisterBinding(const std::string& api_name,
43 const std::string& api_bind_name, 43 const std::string& api_bind_name,
44 ScriptContext* context); 44 ScriptContext* context);
45 45
46 ResourceBundleSourceMap* source_map_ = nullptr; 46 ResourceBundleSourceMap* source_map_ = nullptr;
47 47
48 std::unique_ptr<RequestSender> request_sender_; 48 std::unique_ptr<RequestSender> request_sender_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(JsExtensionBindingsSystem); 50 DISALLOW_COPY_AND_ASSIGN(JsExtensionBindingsSystem);
51 }; 51 };
52 52
53 } // namespace extensions 53 } // namespace extensions
54 54
55 #endif // EXTENSIONS_RENDERER_JS_EXTENSION_BINDINGS_SYSTEM_H_ 55 #endif // EXTENSIONS_RENDERER_JS_EXTENSION_BINDINGS_SYSTEM_H_
OLDNEW
« no previous file with comments | « extensions/renderer/extension_bindings_system.h ('k') | extensions/renderer/js_extension_bindings_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698