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

Side by Side Diff: chrome/browser/service_process/service_process_control.h

Issue 310853003: Add IPC::ChannelProxy::Create() and IPC::SyncChannel::Create() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Landing Created 6 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
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_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_ 5 #ifndef CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_
6 #define CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_ 6 #define CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // Helper method to invoke all the callbacks based on success or failure. 194 // Helper method to invoke all the callbacks based on success or failure.
195 void RunConnectDoneTasks(); 195 void RunConnectDoneTasks();
196 196
197 // Method called by Launcher when the service process is launched. 197 // Method called by Launcher when the service process is launched.
198 void OnProcessLaunched(); 198 void OnProcessLaunched();
199 199
200 // Used internally to connect to the service process. 200 // Used internally to connect to the service process.
201 void ConnectInternal(); 201 void ConnectInternal();
202 202
203 // Takes ownership of the pointer. Split out for testing. 203 // Takes ownership of the pointer. Split out for testing.
204 void SetChannel(IPC::ChannelProxy* channel); 204 void SetChannel(scoped_ptr<IPC::ChannelProxy> channel);
205 205
206 static void RunAllTasksHelper(TaskList* task_list); 206 static void RunAllTasksHelper(TaskList* task_list);
207 207
208 // IPC channel to the service process. 208 // IPC channel to the service process.
209 scoped_ptr<IPC::ChannelProxy> channel_; 209 scoped_ptr<IPC::ChannelProxy> channel_;
210 210
211 // Service process launcher. 211 // Service process launcher.
212 scoped_refptr<Launcher> launcher_; 212 scoped_refptr<Launcher> launcher_;
213 213
214 // Callbacks that get invoked when the channel is successfully connected. 214 // Callbacks that get invoked when the channel is successfully connected.
(...skipping 13 matching lines...) Expand all
228 // the service process. 228 // the service process.
229 base::Closure histograms_callback_; 229 base::Closure histograms_callback_;
230 230
231 content::NotificationRegistrar registrar_; 231 content::NotificationRegistrar registrar_;
232 232
233 // Callback that gets invoked if service didn't reply in time. 233 // Callback that gets invoked if service didn't reply in time.
234 base::CancelableClosure histograms_timeout_callback_; 234 base::CancelableClosure histograms_timeout_callback_;
235 }; 235 };
236 236
237 #endif // CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_ 237 #endif // CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698