| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_SERVICE_PROCESS_CONTROL_H_ | 5 #ifndef CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ |
| 6 #define CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ | 6 #define CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/id_map.h" | 12 #include "base/id_map.h" |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/process.h" | 14 #include "base/process.h" |
| 15 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
| 16 #include "base/task.h" | |
| 17 #include "chrome/common/notification_observer.h" | 16 #include "chrome/common/notification_observer.h" |
| 18 #include "chrome/common/notification_registrar.h" | 17 #include "chrome/common/notification_registrar.h" |
| 19 #include "ipc/ipc_sync_channel.h" | 18 #include "ipc/ipc_sync_channel.h" |
| 20 | 19 |
| 21 class Profile; | 20 class Profile; |
| 21 class Task; |
| 22 | 22 |
| 23 // A ServiceProcessControl works as a portal between the service process and | 23 // A ServiceProcessControl works as a portal between the service process and |
| 24 // the browser process. | 24 // the browser process. |
| 25 // | 25 // |
| 26 // It is used to start and terminate the service process. It is also used | 26 // It is used to start and terminate the service process. It is also used |
| 27 // to send and receive IPC messages from the service process. | 27 // to send and receive IPC messages from the service process. |
| 28 // | 28 // |
| 29 // THREADING | 29 // THREADING |
| 30 // | 30 // |
| 31 // This class is accessed on the UI thread through some UI actions. It then | 31 // This class is accessed on the UI thread through some UI actions. It then |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // the cloud print proxy. | 150 // the cloud print proxy. |
| 151 scoped_ptr<Callback2<bool, std::string>::Type> cloud_print_status_callback_; | 151 scoped_ptr<Callback2<bool, std::string>::Type> cloud_print_status_callback_; |
| 152 | 152 |
| 153 // Handler for messages from service process. | 153 // Handler for messages from service process. |
| 154 MessageHandler* message_handler_; | 154 MessageHandler* message_handler_; |
| 155 | 155 |
| 156 NotificationRegistrar registrar_; | 156 NotificationRegistrar registrar_; |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 #endif // CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ | 159 #endif // CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ |
| OLD | NEW |