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

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

Issue 2159133002: Shutdown StoragePartition before ProfileIOData is being shut down (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 5 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698