| OLD | NEW |
| 1 // Copyright (c) 2009 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_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 | 10 |
| 11 #include "chrome/browser/child_process_launcher.h" | 11 #include "chrome/browser/child_process_launcher.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 private: | 53 private: |
| 54 bool all_; | 54 bool all_; |
| 55 ChildProcessInfo::ProcessType type_; | 55 ChildProcessInfo::ProcessType type_; |
| 56 std::list<BrowserChildProcessHost*>::iterator iterator_; | 56 std::list<BrowserChildProcessHost*>::iterator iterator_; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 protected: | 59 protected: |
| 60 // |resource_dispatcher_host| may be NULL to indicate none is needed for | 60 // |resource_dispatcher_host| may be NULL to indicate none is needed for |
| 61 // this process type. | 61 // this process type. |
| 62 // |url_request_context_getter| allows derived classes to override the | 62 // |url_request_context_getter| allows derived classes to override the |
| 63 // URLRequestContext. | 63 // net::URLRequestContext. |
| 64 BrowserChildProcessHost( | 64 BrowserChildProcessHost( |
| 65 ChildProcessInfo::ProcessType type, | 65 ChildProcessInfo::ProcessType type, |
| 66 ResourceDispatcherHost* resource_dispatcher_host, | 66 ResourceDispatcherHost* resource_dispatcher_host, |
| 67 ResourceMessageFilter::URLRequestContextOverride* | 67 ResourceMessageFilter::URLRequestContextOverride* |
| 68 url_request_context_override); | 68 url_request_context_override); |
| 69 | 69 |
| 70 // A convenient constructor for those classes that want to use the default | 70 // A convenient constructor for those classes that want to use the default |
| 71 // URLRequestContext. | 71 // net::URLRequestContext. |
| 72 BrowserChildProcessHost( | 72 BrowserChildProcessHost( |
| 73 ChildProcessInfo::ProcessType type, | 73 ChildProcessInfo::ProcessType type, |
| 74 ResourceDispatcherHost* resource_dispatcher_host); | 74 ResourceDispatcherHost* resource_dispatcher_host); |
| 75 | 75 |
| 76 // Derived classes call this to launch the child process asynchronously. | 76 // Derived classes call this to launch the child process asynchronously. |
| 77 void Launch( | 77 void Launch( |
| 78 #if defined(OS_WIN) | 78 #if defined(OS_WIN) |
| 79 const FilePath& exposed_dir, | 79 const FilePath& exposed_dir, |
| 80 #elif defined(OS_POSIX) | 80 #elif defined(OS_POSIX) |
| 81 bool use_zygote, | 81 bool use_zygote, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 private: | 134 private: |
| 135 BrowserChildProcessHost* host_; | 135 BrowserChildProcessHost* host_; |
| 136 }; | 136 }; |
| 137 ClientHook client_; | 137 ClientHook client_; |
| 138 // May be NULL if this current process has no resource dispatcher host. | 138 // May be NULL if this current process has no resource dispatcher host. |
| 139 ResourceDispatcherHost* resource_dispatcher_host_; | 139 ResourceDispatcherHost* resource_dispatcher_host_; |
| 140 scoped_ptr<ChildProcessLauncher> child_process_; | 140 scoped_ptr<ChildProcessLauncher> child_process_; |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 #endif // CHROME_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ | 143 #endif // CHROME_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ |
| OLD | NEW |