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

Side by Side Diff: chrome/renderer/extensions/dispatcher.h

Issue 16226004: Replace JSON (de)serialization of extension messages with direct Value pickling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/extension_messages.h ('k') | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ 6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 void OnSetChannel(int channel); 145 void OnSetChannel(int channel);
146 void OnMessageInvoke(const std::string& extension_id, 146 void OnMessageInvoke(const std::string& extension_id,
147 const std::string& function_name, 147 const std::string& function_name,
148 const base::ListValue& args, 148 const base::ListValue& args,
149 bool user_gesture); 149 bool user_gesture);
150 void OnDispatchOnConnect(int target_port_id, 150 void OnDispatchOnConnect(int target_port_id,
151 const std::string& channel_name, 151 const std::string& channel_name,
152 const base::DictionaryValue& source_tab, 152 const base::DictionaryValue& source_tab,
153 const ExtensionMsg_ExternalConnectionInfo& info); 153 const ExtensionMsg_ExternalConnectionInfo& info);
154 void OnDeliverMessage(int target_port_id, const std::string& message); 154 void OnDeliverMessage(int target_port_id, const base::ListValue& message);
155 void OnDispatchOnDisconnect(int port_id, const std::string& error_message); 155 void OnDispatchOnDisconnect(int port_id, const std::string& error_message);
156 void OnSetFunctionNames(const std::vector<std::string>& names); 156 void OnSetFunctionNames(const std::vector<std::string>& names);
157 void OnLoaded( 157 void OnLoaded(
158 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); 158 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions);
159 void OnLoadedInternal(scoped_refptr<const Extension> extension); 159 void OnLoadedInternal(scoped_refptr<const Extension> extension);
160 void OnUnloaded(const std::string& id); 160 void OnUnloaded(const std::string& id);
161 void OnSetScriptingWhitelist( 161 void OnSetScriptingWhitelist(
162 const Extension::ScriptingWhitelist& extension_ids); 162 const Extension::ScriptingWhitelist& extension_ids);
163 void OnPageActionsUpdated(const std::string& extension_id, 163 void OnPageActionsUpdated(const std::string& extension_id,
164 const std::vector<std::string>& page_actions); 164 const std::vector<std::string>& page_actions);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 275
276 // Sends API requests to the extension host. 276 // Sends API requests to the extension host.
277 scoped_ptr<RequestSender> request_sender_; 277 scoped_ptr<RequestSender> request_sender_;
278 278
279 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 279 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
280 }; 280 };
281 281
282 } // namespace extensions 282 } // namespace extensions
283 283
284 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ 284 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_messages.h ('k') | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698