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

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

Issue 2540533002: [Extensions] Remove source/opener tab id from extension ports (Closed)
Patch Set: Created 4 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 CannotScriptWebstore); 158 CannotScriptWebstore);
159 159
160 // RenderThreadObserver implementation: 160 // RenderThreadObserver implementation:
161 bool OnControlMessageReceived(const IPC::Message& message) override; 161 bool OnControlMessageReceived(const IPC::Message& message) override;
162 void IdleNotification() override; 162 void IdleNotification() override;
163 void OnRenderProcessShutdown() override; 163 void OnRenderProcessShutdown() override;
164 164
165 void OnActivateExtension(const std::string& extension_id); 165 void OnActivateExtension(const std::string& extension_id);
166 void OnCancelSuspend(const std::string& extension_id); 166 void OnCancelSuspend(const std::string& extension_id);
167 void OnDeliverMessage(int target_port_id, 167 void OnDeliverMessage(int target_port_id,
168 int source_tab_id,
169 const Message& message); 168 const Message& message);
170 void OnDispatchOnConnect(int target_port_id, 169 void OnDispatchOnConnect(int target_port_id,
171 const std::string& channel_name, 170 const std::string& channel_name,
172 const ExtensionMsg_TabConnectionInfo& source, 171 const ExtensionMsg_TabConnectionInfo& source,
173 const ExtensionMsg_ExternalConnectionInfo& info, 172 const ExtensionMsg_ExternalConnectionInfo& info,
174 const std::string& tls_channel_id); 173 const std::string& tls_channel_id);
175 void OnDispatchOnDisconnect(int port_id, const std::string& error_message); 174 void OnDispatchOnDisconnect(int port_id, const std::string& error_message);
176 void OnLoaded( 175 void OnLoaded(
177 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); 176 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions);
178 void OnMessageInvoke(const std::string& extension_id, 177 void OnMessageInvoke(const std::string& extension_id,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // if this renderer is a WebView guest render process. Otherwise, this will be 298 // if this renderer is a WebView guest render process. Otherwise, this will be
300 // empty. 299 // empty.
301 std::string webview_partition_id_; 300 std::string webview_partition_id_;
302 301
303 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 302 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
304 }; 303 };
305 304
306 } // namespace extensions 305 } // namespace extensions
307 306
308 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ 307 #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