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

Side by Side Diff: content/browser/utility_process_host.h

Issue 9117006: Rename BrowserChildProcessHost implementation class to BrowserChildProcessHostImpl. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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) 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 CONTENT_BROWSER_UTILITY_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_UTILITY_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_UTILITY_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_UTILITY_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/process_util.h" 14 #include "base/process_util.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/public/browser/browser_child_process_host_delegate.h" 16 #include "content/public/browser/browser_child_process_host_delegate.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "ipc/ipc_message.h" 18 #include "ipc/ipc_message.h"
19 19
20 class BrowserChildProcessHost; 20 class BrowserChildProcessHostImpl;
21 21
22 // This class acts as the browser-side host to a utility child process. A 22 // This class acts as the browser-side host to a utility child process. A
23 // utility process is a short-lived sandboxed process that is created to run 23 // utility process is a short-lived sandboxed process that is created to run
24 // a specific task. This class lives solely on the IO thread. 24 // a specific task. This class lives solely on the IO thread.
25 // If you need a single method call in the sandbox, use StartFooBar(p). 25 // If you need a single method call in the sandbox, use StartFooBar(p).
26 // If you need multiple batches of work to be done in the sandboxed process, 26 // If you need multiple batches of work to be done in the sandboxed process,
27 // use StartBatchMode(), then multiple calls to StartFooBar(p), 27 // use StartBatchMode(), then multiple calls to StartFooBar(p),
28 // then finish with EndBatchMode(). 28 // then finish with EndBatchMode().
29 class CONTENT_EXPORT UtilityProcessHost 29 class CONTENT_EXPORT UtilityProcessHost
30 : public content::BrowserChildProcessHostDelegate, 30 : public content::BrowserChildProcessHostDelegate,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 // If the |no_sandbox_| flag is off, and we are on Linux, launch the 109 // If the |no_sandbox_| flag is off, and we are on Linux, launch the
110 // utility process from the zygote. Defaults to false. 110 // utility process from the zygote. Defaults to false.
111 // Can only be used for tasks that do not require FS access. 111 // Can only be used for tasks that do not require FS access.
112 bool use_linux_zygote_; 112 bool use_linux_zygote_;
113 113
114 base::environment_vector env_; 114 base::environment_vector env_;
115 115
116 bool started_; 116 bool started_;
117 117
118 scoped_ptr<BrowserChildProcessHost> process_; 118 scoped_ptr<BrowserChildProcessHostImpl> process_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(UtilityProcessHost); 120 DISALLOW_COPY_AND_ASSIGN(UtilityProcessHost);
121 }; 121 };
122 122
123 #endif // CONTENT_BROWSER_UTILITY_PROCESS_HOST_H_ 123 #endif // CONTENT_BROWSER_UTILITY_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/utility_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698