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

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

Issue 709933002: Add frameId to MessageSender (extension messaging API) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test: sender.tab.status = 'complete' Created 6 years 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
« no previous file with comments | « extensions/common/extension_messages.h ('k') | extensions/renderer/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DISPATCHER_H_ 5 #ifndef EXTENSIONS_RENDERER_DISPATCHER_H_
6 #define EXTENSIONS_RENDERER_DISPATCHER_H_ 6 #define EXTENSIONS_RENDERER_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 15 matching lines...) Expand all
26 #include "third_party/WebKit/public/platform/WebString.h" 26 #include "third_party/WebKit/public/platform/WebString.h"
27 #include "third_party/WebKit/public/platform/WebVector.h" 27 #include "third_party/WebKit/public/platform/WebVector.h"
28 #include "v8/include/v8.h" 28 #include "v8/include/v8.h"
29 29
30 class ChromeRenderViewTest; 30 class ChromeRenderViewTest;
31 class GURL; 31 class GURL;
32 class ModuleSystem; 32 class ModuleSystem;
33 class URLPattern; 33 class URLPattern;
34 struct ExtensionMsg_ExternalConnectionInfo; 34 struct ExtensionMsg_ExternalConnectionInfo;
35 struct ExtensionMsg_Loaded_Params; 35 struct ExtensionMsg_Loaded_Params;
36 struct ExtensionMsg_TabConnectionInfo;
36 struct ExtensionMsg_UpdatePermissions_Params; 37 struct ExtensionMsg_UpdatePermissions_Params;
37 38
38 namespace blink { 39 namespace blink {
39 class WebFrame; 40 class WebFrame;
40 class WebSecurityOrigin; 41 class WebSecurityOrigin;
41 } 42 }
42 43
43 namespace base { 44 namespace base {
44 class DictionaryValue;
45 class ListValue; 45 class ListValue;
46 } 46 }
47 47
48 namespace content { 48 namespace content {
49 class RenderThread; 49 class RenderThread;
50 } 50 }
51 51
52 namespace extensions { 52 namespace extensions {
53 class ContentWatcher; 53 class ContentWatcher;
54 class DispatcherDelegate; 54 class DispatcherDelegate;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void OnRenderProcessShutdown() override; 162 void OnRenderProcessShutdown() override;
163 163
164 void OnActivateExtension(const std::string& extension_id); 164 void OnActivateExtension(const std::string& extension_id);
165 void OnCancelSuspend(const std::string& extension_id); 165 void OnCancelSuspend(const std::string& extension_id);
166 void OnClearTabSpecificPermissions( 166 void OnClearTabSpecificPermissions(
167 int tab_id, 167 int tab_id,
168 const std::vector<std::string>& extension_ids); 168 const std::vector<std::string>& extension_ids);
169 void OnDeliverMessage(int target_port_id, const Message& message); 169 void OnDeliverMessage(int target_port_id, const Message& message);
170 void OnDispatchOnConnect(int target_port_id, 170 void OnDispatchOnConnect(int target_port_id,
171 const std::string& channel_name, 171 const std::string& channel_name,
172 const base::DictionaryValue& source_tab, 172 const ExtensionMsg_TabConnectionInfo& source,
173 const ExtensionMsg_ExternalConnectionInfo& info, 173 const ExtensionMsg_ExternalConnectionInfo& info,
174 const std::string& tls_channel_id); 174 const std::string& tls_channel_id);
175 void OnDispatchOnDisconnect(int port_id, const std::string& error_message); 175 void OnDispatchOnDisconnect(int port_id, const std::string& error_message);
176 void OnLoaded( 176 void OnLoaded(
177 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); 177 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions);
178 void OnLoadedInternal(scoped_refptr<const Extension> extension); 178 void OnLoadedInternal(scoped_refptr<const Extension> extension);
179 void OnMessageInvoke(const std::string& extension_id, 179 void OnMessageInvoke(const std::string& extension_id,
180 const std::string& module_name, 180 const std::string& module_name,
181 const std::string& function_name, 181 const std::string& function_name,
182 const base::ListValue& args, 182 const base::ListValue& args,
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 // Status of webrequest usage. 315 // Status of webrequest usage.
316 bool webrequest_used_; 316 bool webrequest_used_;
317 317
318 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 318 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
319 }; 319 };
320 320
321 } // namespace extensions 321 } // namespace extensions
322 322
323 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ 323 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « extensions/common/extension_messages.h ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698