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

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.h

Issue 6825038: Create a content::ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test. 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 CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 21 matching lines...) Expand all
32 // Init() must be called before ~Handle(). It records all the necessary 32 // Init() must be called before ~Handle(). It records all the necessary
33 // parameters needed to construct a ChromeURLRequestContextGetter. 33 // parameters needed to construct a ChromeURLRequestContextGetter.
34 void Init(const FilePath& cookie_path, 34 void Init(const FilePath& cookie_path,
35 const FilePath& cache_path, 35 const FilePath& cache_path,
36 int cache_max_size, 36 int cache_max_size,
37 const FilePath& media_cache_path, 37 const FilePath& media_cache_path,
38 int media_cache_max_size, 38 int media_cache_max_size,
39 const FilePath& extensions_cookie_path, 39 const FilePath& extensions_cookie_path,
40 const FilePath& app_path); 40 const FilePath& app_path);
41 41
42 const content::ResourceContext& GetResourceContext() const;
42 scoped_refptr<ChromeURLRequestContextGetter> 43 scoped_refptr<ChromeURLRequestContextGetter>
43 GetMainRequestContextGetter() const; 44 GetMainRequestContextGetter() const;
44 scoped_refptr<ChromeURLRequestContextGetter> 45 scoped_refptr<ChromeURLRequestContextGetter>
45 GetMediaRequestContextGetter() const; 46 GetMediaRequestContextGetter() const;
46 scoped_refptr<ChromeURLRequestContextGetter> 47 scoped_refptr<ChromeURLRequestContextGetter>
47 GetExtensionsRequestContextGetter() const; 48 GetExtensionsRequestContextGetter() const;
48 scoped_refptr<ChromeURLRequestContextGetter> 49 scoped_refptr<ChromeURLRequestContextGetter>
49 GetIsolatedAppRequestContextGetter( 50 GetIsolatedAppRequestContextGetter(
50 const std::string& app_id) const; 51 const std::string& app_id) const;
51 52
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ~LazyParams(); 92 ~LazyParams();
92 93
93 // All of these parameters are intended to be read on the IO thread. 94 // All of these parameters are intended to be read on the IO thread.
94 FilePath cookie_path; 95 FilePath cookie_path;
95 FilePath cache_path; 96 FilePath cache_path;
96 int cache_max_size; 97 int cache_max_size;
97 FilePath media_cache_path; 98 FilePath media_cache_path;
98 int media_cache_max_size; 99 int media_cache_max_size;
99 FilePath extensions_cookie_path; 100 FilePath extensions_cookie_path;
100 IOThread* io_thread; 101 IOThread* io_thread;
101
102 ProfileParams profile_params;
103 }; 102 };
104 103
105 typedef base::hash_map<std::string, net::HttpTransactionFactory* > 104 typedef base::hash_map<std::string, net::HttpTransactionFactory* >
106 HttpTransactionFactoryMap; 105 HttpTransactionFactoryMap;
107 106
108 ProfileImplIOData(); 107 ProfileImplIOData();
109 virtual ~ProfileImplIOData(); 108 virtual ~ProfileImplIOData();
110 109
111 // Lazily initializes ProfileImplIOData. 110 // Lazily initializes ProfileImplIOData.
112 virtual void LazyInitializeInternal() const; 111 virtual void LazyInitializeInternal(ProfileParams* profile_params) const;
113 virtual scoped_refptr<RequestContext> InitializeAppRequestContext( 112 virtual scoped_refptr<RequestContext> InitializeAppRequestContext(
114 scoped_refptr<ChromeURLRequestContext> main_context, 113 scoped_refptr<ChromeURLRequestContext> main_context,
115 const std::string& app_id) const; 114 const std::string& app_id) const;
116 virtual scoped_refptr<ChromeURLRequestContext> 115 virtual scoped_refptr<ChromeURLRequestContext>
117 AcquireMainRequestContext() const; 116 AcquireMainRequestContext() const;
118 virtual scoped_refptr<ChromeURLRequestContext> 117 virtual scoped_refptr<ChromeURLRequestContext>
119 AcquireMediaRequestContext() const; 118 AcquireMediaRequestContext() const;
120 virtual scoped_refptr<ChromeURLRequestContext> 119 virtual scoped_refptr<ChromeURLRequestContext>
121 AcquireExtensionsRequestContext() const; 120 AcquireExtensionsRequestContext() const;
122 virtual scoped_refptr<ChromeURLRequestContext> 121 virtual scoped_refptr<ChromeURLRequestContext>
(...skipping 12 matching lines...) Expand all
135 mutable scoped_ptr<net::DnsCertProvenanceChecker> dns_cert_checker_; 134 mutable scoped_ptr<net::DnsCertProvenanceChecker> dns_cert_checker_;
136 mutable scoped_ptr<net::CookiePolicy> cookie_policy_; 135 mutable scoped_ptr<net::CookiePolicy> cookie_policy_;
137 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; 136 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_;
138 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_; 137 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_;
139 138
140 // One HttpTransactionFactory per isolated app. 139 // One HttpTransactionFactory per isolated app.
141 mutable HttpTransactionFactoryMap app_http_factory_map_; 140 mutable HttpTransactionFactoryMap app_http_factory_map_;
142 141
143 // Parameters needed for isolated apps. 142 // Parameters needed for isolated apps.
144 FilePath app_path_; 143 FilePath app_path_;
145 bool clear_local_state_on_exit_; 144 mutable bool clear_local_state_on_exit_;
146 145
147 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 146 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
148 }; 147 };
149 148
150 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 149 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698