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

Side by Side Diff: extensions/renderer/native_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_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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
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 EventFilteringInfo* filtering_info,
55 ScriptContext* context) override; 55 ScriptContext* context) override;
56 bool HasEventListenerInContext(const std::string& event_name, 56 bool HasEventListenerInContext(const std::string& event_name,
57 ScriptContext* context) override; 57 ScriptContext* context) override;
58 void HandleResponse(int request_id, 58 void HandleResponse(int request_id,
59 bool success, 59 bool success,
60 const base::ListValue& response, 60 const base::ListValue& response,
61 const std::string& error) override; 61 const std::string& error) override;
62 RequestSender* GetRequestSender() override; 62 RequestSender* GetRequestSender() override;
63 63
64 APIBindingsSystem* api_system() { return &api_system_; } 64 APIBindingsSystem* api_system() { return &api_system_; }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 v8::Eternal<v8::FunctionTemplate> get_internal_api_; 112 v8::Eternal<v8::FunctionTemplate> get_internal_api_;
113 113
114 base::WeakPtrFactory<NativeExtensionBindingsSystem> weak_factory_; 114 base::WeakPtrFactory<NativeExtensionBindingsSystem> weak_factory_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(NativeExtensionBindingsSystem); 116 DISALLOW_COPY_AND_ASSIGN(NativeExtensionBindingsSystem);
117 }; 117 };
118 118
119 } // namespace extensions 119 } // namespace extensions
120 120
121 #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/js_extension_bindings_system.cc ('k') | extensions/renderer/native_extension_bindings_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698