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

Side by Side Diff: chrome/browser/extensions/api/messaging/message_service.h

Issue 2006013002: [Extensions] Determine NativeMessaging ID solely on the browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ;; Created 4 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/messaging/message_service.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_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 int receiver_port_id, 154 int receiver_port_id,
155 int tab_id, 155 int tab_id,
156 int frame_id, 156 int frame_id,
157 const std::string& extension_id, 157 const std::string& extension_id,
158 const std::string& channel_name); 158 const std::string& channel_name);
159 159
160 void OpenChannelToNativeApp( 160 void OpenChannelToNativeApp(
161 int source_process_id, 161 int source_process_id,
162 int source_routing_id, 162 int source_routing_id,
163 int receiver_port_id, 163 int receiver_port_id,
164 const std::string& source_extension_id,
165 const std::string& native_app_name); 164 const std::string& native_app_name);
166 165
167 // Mark the given port as opened by the frame identified by 166 // Mark the given port as opened by the frame identified by
168 // (process_id, routing_id). 167 // (process_id, routing_id).
169 void OpenPort(int port_id, int process_id, int routing_id); 168 void OpenPort(int port_id, int process_id, int routing_id);
170 169
171 // Closes the given port in the given frame. If this was the last frame or if 170 // Closes the given port in the given frame. If this was the last frame or if
172 // |force_close| is true, then the other side is closed as well. 171 // |force_close| is true, then the other side is closed as well.
173 void ClosePort(int port_id, int process_id, int routing_id, bool force_close); 172 void ClosePort(int port_id, int process_id, int routing_id, bool force_close);
174 173
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 LazyBackgroundTaskQueue* lazy_background_task_queue_; 315 LazyBackgroundTaskQueue* lazy_background_task_queue_;
317 316
318 base::WeakPtrFactory<MessageService> weak_factory_; 317 base::WeakPtrFactory<MessageService> weak_factory_;
319 318
320 DISALLOW_COPY_AND_ASSIGN(MessageService); 319 DISALLOW_COPY_AND_ASSIGN(MessageService);
321 }; 320 };
322 321
323 } // namespace extensions 322 } // namespace extensions
324 323
325 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_ 324 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/messaging/message_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698