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/callback.h" | 8 #include "base/callback.h" |
9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 ProfileImplIOData* const io_data_; | 140 ProfileImplIOData* const io_data_; |
141 | 141 |
142 Profile* const profile_; | 142 Profile* const profile_; |
143 | 143 |
144 mutable bool initialized_; | 144 mutable bool initialized_; |
145 | 145 |
146 DISALLOW_COPY_AND_ASSIGN(Handle); | 146 DISALLOW_COPY_AND_ASSIGN(Handle); |
147 }; | 147 }; |
148 | 148 |
149 private: | 149 private: |
150 friend class base::RefCountedThreadSafe<ProfileImplIOData>; | |
151 | |
152 struct LazyParams { | 150 struct LazyParams { |
153 LazyParams(); | 151 LazyParams(); |
154 ~LazyParams(); | 152 ~LazyParams(); |
155 | 153 |
156 // All of these parameters are intended to be read on the IO thread. | 154 // All of these parameters are intended to be read on the IO thread. |
157 base::FilePath cookie_path; | 155 base::FilePath cookie_path; |
158 base::FilePath channel_id_path; | 156 base::FilePath channel_id_path; |
159 base::FilePath cache_path; | 157 base::FilePath cache_path; |
160 int cache_max_size; | 158 int cache_max_size; |
161 base::FilePath media_cache_path; | 159 base::FilePath media_cache_path; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 241 |
244 // Parameters needed for isolated apps. | 242 // Parameters needed for isolated apps. |
245 base::FilePath profile_path_; | 243 base::FilePath profile_path_; |
246 int app_cache_max_size_; | 244 int app_cache_max_size_; |
247 int app_media_cache_max_size_; | 245 int app_media_cache_max_size_; |
248 | 246 |
249 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 247 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
250 }; | 248 }; |
251 | 249 |
252 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 250 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |