OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_UTILITY_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_UTILITY_PROCESS_HOST_H_ |
6 #define CHROME_BROWSER_UTILITY_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_UTILITY_PROCESS_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
12 #include "base/task.h" | 12 #include "base/task.h" |
13 #include "chrome/common/child_process_host.h" | 13 #include "chrome/common/child_process_host.h" |
14 #include "chrome/common/ipc_channel.h" | 14 #include "ipc/ipc_channel.h" |
15 | 15 |
16 class CommandLine; | 16 class CommandLine; |
17 class DictionaryValue; | 17 class DictionaryValue; |
18 class ListValue; | 18 class ListValue; |
19 class MessageLoop; | 19 class MessageLoop; |
20 | 20 |
21 // This class acts as the browser-side host to a utility child process. A | 21 // This class acts as the browser-side host to a utility child process. A |
22 // utility process is a short-lived sandboxed process that is created to run | 22 // utility process is a short-lived sandboxed process that is created to run |
23 // a specific task. This class lives solely on the IO thread. | 23 // a specific task. This class lives solely on the IO thread. |
24 class UtilityProcessHost : public ChildProcessHost { | 24 class UtilityProcessHost : public ChildProcessHost { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 } | 103 } |
104 | 104 |
105 // A pointer to our client interface, who will be informed of progress. | 105 // A pointer to our client interface, who will be informed of progress. |
106 scoped_refptr<Client> client_; | 106 scoped_refptr<Client> client_; |
107 MessageLoop* client_loop_; | 107 MessageLoop* client_loop_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(UtilityProcessHost); | 109 DISALLOW_COPY_AND_ASSIGN(UtilityProcessHost); |
110 }; | 110 }; |
111 | 111 |
112 #endif // CHROME_BROWSER_UTILITY_PROCESS_HOST_H_ | 112 #endif // CHROME_BROWSER_UTILITY_PROCESS_HOST_H_ |
OLD | NEW |