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

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

Issue 6825038: Create a content::ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dependencies. Created 9 years, 8 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_BROWSER_CHILD_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 BrowserChildProcessHost* operator++(); 49 BrowserChildProcessHost* operator++();
50 bool Done(); 50 bool Done();
51 51
52 private: 52 private:
53 bool all_; 53 bool all_;
54 ChildProcessInfo::ProcessType type_; 54 ChildProcessInfo::ProcessType type_;
55 std::list<BrowserChildProcessHost*>::iterator iterator_; 55 std::list<BrowserChildProcessHost*>::iterator iterator_;
56 }; 56 };
57 57
58 protected: 58 protected:
59 // DEPRECATED constructor. Do not use anymore. We are trying to eliminate
60 // using the default URLRequestContext.
61 BrowserChildProcessHost(
62 ChildProcessInfo::ProcessType type,
63 ResourceDispatcherHost* resource_dispatcher_host);
64
65 explicit BrowserChildProcessHost(ChildProcessInfo::ProcessType type); 59 explicit BrowserChildProcessHost(ChildProcessInfo::ProcessType type);
66 60
67 // Derived classes call this to launch the child process asynchronously. 61 // Derived classes call this to launch the child process asynchronously.
68 void Launch( 62 void Launch(
69 #if defined(OS_WIN) 63 #if defined(OS_WIN)
70 const FilePath& exposed_dir, 64 const FilePath& exposed_dir,
71 #elif defined(OS_POSIX) 65 #elif defined(OS_POSIX)
72 bool use_zygote, 66 bool use_zygote,
73 const base::environment_vector& environ, 67 const base::environment_vector& environ,
74 #endif 68 #endif
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 private: 116 private:
123 BrowserChildProcessHost* host_; 117 BrowserChildProcessHost* host_;
124 }; 118 };
125 ClientHook client_; 119 ClientHook client_;
126 // May be NULL if this current process has no resource dispatcher host. 120 // May be NULL if this current process has no resource dispatcher host.
127 ResourceDispatcherHost* resource_dispatcher_host_; 121 ResourceDispatcherHost* resource_dispatcher_host_;
128 scoped_ptr<ChildProcessLauncher> child_process_; 122 scoped_ptr<ChildProcessLauncher> child_process_;
129 }; 123 };
130 124
131 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ 125 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698