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

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

Issue 24153012: Fix cyclic dependency between ProfilePolicyConnector and PrefService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed another bug for OTRProfile. Created 7 years, 1 month 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) 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const base::FilePath& partition_path, 77 const base::FilePath& partition_path,
78 bool in_memory) const; 78 bool in_memory) const;
79 79
80 // Deletes all network related data since |time|. It deletes transport 80 // Deletes all network related data since |time|. It deletes transport
81 // security state since |time| and also deletes HttpServerProperties data. 81 // security state since |time| and also deletes HttpServerProperties data.
82 // Works asynchronously, however if the |completion| callback is non-null, 82 // Works asynchronously, however if the |completion| callback is non-null,
83 // it will be posted on the UI thread once the removal process completes. 83 // it will be posted on the UI thread once the removal process completes.
84 void ClearNetworkingHistorySince(base::Time time, 84 void ClearNetworkingHistorySince(base::Time time,
85 const base::Closure& completion); 85 const base::Closure& completion);
86 86
87 void ReleaseFromBrowserContextServices(Profile* profile) const;
88
87 private: 89 private:
88 typedef std::map<StoragePartitionDescriptor, 90 typedef std::map<StoragePartitionDescriptor,
89 scoped_refptr<ChromeURLRequestContextGetter>, 91 scoped_refptr<ChromeURLRequestContextGetter>,
90 StoragePartitionDescriptorLess> 92 StoragePartitionDescriptorLess>
91 ChromeURLRequestContextGetterMap; 93 ChromeURLRequestContextGetterMap;
92 94
93 // Lazily initialize ProfileParams. We do this on the calls to 95 // Lazily initialize ProfileParams. We do this on the calls to
94 // Get*RequestContextGetter(), so we only initialize ProfileParams right 96 // Get*RequestContextGetter(), so we only initialize ProfileParams right
95 // before posting a task to the IO thread to start using them. This prevents 97 // before posting a task to the IO thread to start using them. This prevents
96 // objects that are supposed to be deleted on the IO thread, but are created 98 // objects that are supposed to be deleted on the IO thread, but are created
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 207
206 // Parameters needed for isolated apps. 208 // Parameters needed for isolated apps.
207 base::FilePath profile_path_; 209 base::FilePath profile_path_;
208 int app_cache_max_size_; 210 int app_cache_max_size_;
209 int app_media_cache_max_size_; 211 int app_media_cache_max_size_;
210 212
211 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 213 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
212 }; 214 };
213 215
214 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 216 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698