OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SERVICE_SERVICE_PROCESS_H_ | 5 #ifndef CHROME_SERVICE_SERVICE_PROCESS_H_ |
6 #define CHROME_SERVICE_SERVICE_PROCESS_H_ | 6 #define CHROME_SERVICE_SERVICE_PROCESS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 class ServiceProcess : public CloudPrintProxy::Client { | 32 class ServiceProcess : public CloudPrintProxy::Client { |
33 public: | 33 public: |
34 ServiceProcess(); | 34 ServiceProcess(); |
35 virtual ~ServiceProcess(); | 35 virtual ~ServiceProcess(); |
36 | 36 |
37 // Initialize the ServiceProcess with the message loop that it should run on. | 37 // Initialize the ServiceProcess with the message loop that it should run on. |
38 // ServiceProcess takes ownership of |state|. | 38 // ServiceProcess takes ownership of |state|. |
39 bool Initialize(MessageLoopForUI* message_loop, | 39 bool Initialize(MessageLoopForUI* message_loop, |
40 const CommandLine& command_line, | 40 const CommandLine& command_line, |
41 ServiceProcessState* state); | 41 ServiceProcessState* state); |
| 42 |
| 43 // Functions for Cloud Print virtual driver on Mac. |
| 44 void EnableVirtualPrintDriver(); |
| 45 void DisableVirtualPrintDriver(); |
| 46 |
42 bool Teardown(); | 47 bool Teardown(); |
43 // TODO(sanjeevr): Change various parts of the code such as | 48 // TODO(sanjeevr): Change various parts of the code such as |
44 // net::ProxyService::CreateSystemProxyConfigService to take in | 49 // net::ProxyService::CreateSystemProxyConfigService to take in |
45 // MessageLoopProxy* instead of MessageLoop*. When we have done that, we can | 50 // MessageLoopProxy* instead of MessageLoop*. When we have done that, we can |
46 // remove the io_thread() and file_thread() accessors and replace them with | 51 // remove the io_thread() and file_thread() accessors and replace them with |
47 // io_message_loop_proxy() and file_message_loop_proxy() respectively. | 52 // io_message_loop_proxy() and file_message_loop_proxy() respectively. |
48 | 53 |
49 // Returns the thread that we perform I/O coordination on (network requests, | 54 // Returns the thread that we perform I/O coordination on (network requests, |
50 // communication with renderers, etc. | 55 // communication with renderers, etc. |
51 // NOTE: You should ONLY use this to pass to IPC or other objects which must | 56 // NOTE: You should ONLY use this to pass to IPC or other objects which must |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 DISALLOW_COPY_AND_ASSIGN(ServiceProcess); | 134 DISALLOW_COPY_AND_ASSIGN(ServiceProcess); |
130 }; | 135 }; |
131 | 136 |
132 // Disable refcounting for runnable method because it is really not needed | 137 // Disable refcounting for runnable method because it is really not needed |
133 // when we post tasks on the main message loop. | 138 // when we post tasks on the main message loop. |
134 DISABLE_RUNNABLE_METHOD_REFCOUNT(ServiceProcess); | 139 DISABLE_RUNNABLE_METHOD_REFCOUNT(ServiceProcess); |
135 | 140 |
136 extern ServiceProcess* g_service_process; | 141 extern ServiceProcess* g_service_process; |
137 | 142 |
138 #endif // CHROME_SERVICE_SERVICE_PROCESS_H_ | 143 #endif // CHROME_SERVICE_SERVICE_PROCESS_H_ |
OLD | NEW |