OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 class ProfileImplIOData : public ProfileIOData { | 40 class ProfileImplIOData : public ProfileIOData { |
41 public: | 41 public: |
42 class Handle { | 42 class Handle { |
43 public: | 43 public: |
44 explicit Handle(Profile* profile); | 44 explicit Handle(Profile* profile); |
45 ~Handle(); | 45 ~Handle(); |
46 | 46 |
47 // Init() must be called before ~Handle(). It records most of the | 47 // Init() must be called before ~Handle(). It records most of the |
48 // parameters needed to construct a ChromeURLRequestContextGetter. | 48 // parameters needed to construct a ChromeURLRequestContextGetter. |
49 void Init(const base::FilePath& cookie_path, | 49 void Init(const base::FilePath& cookie_path, |
50 const base::FilePath& server_bound_cert_path, | 50 const base::FilePath& channel_id_path, |
51 const base::FilePath& cache_path, | 51 const base::FilePath& cache_path, |
52 int cache_max_size, | 52 int cache_max_size, |
53 const base::FilePath& media_cache_path, | 53 const base::FilePath& media_cache_path, |
54 int media_cache_max_size, | 54 int media_cache_max_size, |
55 const base::FilePath& extensions_cookie_path, | 55 const base::FilePath& extensions_cookie_path, |
56 const base::FilePath& profile_path, | 56 const base::FilePath& profile_path, |
57 const base::FilePath& infinite_cache_path, | 57 const base::FilePath& infinite_cache_path, |
58 chrome_browser_net::Predictor* predictor, | 58 chrome_browser_net::Predictor* predictor, |
59 content::CookieStoreConfig::SessionCookieMode | 59 content::CookieStoreConfig::SessionCookieMode |
60 session_cookie_mode, | 60 session_cookie_mode, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 private: | 142 private: |
143 friend class base::RefCountedThreadSafe<ProfileImplIOData>; | 143 friend class base::RefCountedThreadSafe<ProfileImplIOData>; |
144 | 144 |
145 struct LazyParams { | 145 struct LazyParams { |
146 LazyParams(); | 146 LazyParams(); |
147 ~LazyParams(); | 147 ~LazyParams(); |
148 | 148 |
149 // All of these parameters are intended to be read on the IO thread. | 149 // All of these parameters are intended to be read on the IO thread. |
150 base::FilePath cookie_path; | 150 base::FilePath cookie_path; |
151 base::FilePath server_bound_cert_path; | 151 base::FilePath channel_id_path; |
152 base::FilePath cache_path; | 152 base::FilePath cache_path; |
153 int cache_max_size; | 153 int cache_max_size; |
154 base::FilePath media_cache_path; | 154 base::FilePath media_cache_path; |
155 int media_cache_max_size; | 155 int media_cache_max_size; |
156 base::FilePath extensions_cookie_path; | 156 base::FilePath extensions_cookie_path; |
157 base::FilePath infinite_cache_path; | 157 base::FilePath infinite_cache_path; |
158 content::CookieStoreConfig::SessionCookieMode session_cookie_mode; | 158 content::CookieStoreConfig::SessionCookieMode session_cookie_mode; |
159 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy; | 159 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy; |
160 }; | 160 }; |
161 | 161 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 227 |
228 // Parameters needed for isolated apps. | 228 // Parameters needed for isolated apps. |
229 base::FilePath profile_path_; | 229 base::FilePath profile_path_; |
230 int app_cache_max_size_; | 230 int app_cache_max_size_; |
231 int app_media_cache_max_size_; | 231 int app_media_cache_max_size_; |
232 | 232 |
233 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 233 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
234 }; | 234 }; |
235 | 235 |
236 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 236 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |