| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|