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

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

Issue 11238034: Added completion notification to Profile's ClearNetworkingHistorySince. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed IO/UI typo and rebased. Created 8 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/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 GetExtensionsRequestContextGetter() const; 66 GetExtensionsRequestContextGetter() const;
67 scoped_refptr<ChromeURLRequestContextGetter> 67 scoped_refptr<ChromeURLRequestContextGetter>
68 GetIsolatedAppRequestContextGetter( 68 GetIsolatedAppRequestContextGetter(
69 const FilePath& partition_path, 69 const FilePath& partition_path,
70 bool in_memory) const; 70 bool in_memory) const;
71 scoped_refptr<ChromeURLRequestContextGetter> 71 scoped_refptr<ChromeURLRequestContextGetter>
72 GetIsolatedMediaRequestContextGetter( 72 GetIsolatedMediaRequestContextGetter(
73 const FilePath& partition_path, 73 const FilePath& partition_path,
74 bool in_memory) const; 74 bool in_memory) const;
75 75
76 void ClearNetworkingHistorySince(base::Time time); 76 // Deletes all network related data since |time|. It deletes transport
77 // security state since |time| and also deletes HttpServerProperties data.
78 // Works asynchronously, however if the |completion| callback is non-null,
79 // it will be posted on the UI thread once the removal process completes.
80 void ClearNetworkingHistorySince(base::Time time,
81 const base::Closure& completion);
77 82
78 private: 83 private:
79 typedef std::map<StoragePartitionDescriptor, 84 typedef std::map<StoragePartitionDescriptor,
80 scoped_refptr<ChromeURLRequestContextGetter>, 85 scoped_refptr<ChromeURLRequestContextGetter>,
81 StoragePartitionDescriptorLess> 86 StoragePartitionDescriptorLess>
82 ChromeURLRequestContextGetterMap; 87 ChromeURLRequestContextGetterMap;
83 88
84 // Lazily initialize ProfileParams. We do this on the calls to 89 // Lazily initialize ProfileParams. We do this on the calls to
85 // Get*RequestContextGetter(), so we only initialize ProfileParams right 90 // Get*RequestContextGetter(), so we only initialize ProfileParams right
86 // before posting a task to the IO thread to start using them. This prevents 91 // before posting a task to the IO thread to start using them. This prevents
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 virtual chrome_browser_net::LoadTimeStats* GetLoadTimeStats( 169 virtual chrome_browser_net::LoadTimeStats* GetLoadTimeStats(
165 IOThread::Globals* io_thread_globals) const OVERRIDE; 170 IOThread::Globals* io_thread_globals) const OVERRIDE;
166 171
167 void SetUpJobFactory(net::URLRequestJobFactoryImpl* job_factory, 172 void SetUpJobFactory(net::URLRequestJobFactoryImpl* job_factory,
168 scoped_ptr<net::URLRequestJobFactory::Interceptor> 173 scoped_ptr<net::URLRequestJobFactory::Interceptor>
169 protocol_handler_interceptor, 174 protocol_handler_interceptor,
170 net::NetworkDelegate* network_delegate, 175 net::NetworkDelegate* network_delegate,
171 net::FtpTransactionFactory* ftp_transaction_factory, 176 net::FtpTransactionFactory* ftp_transaction_factory,
172 net::FtpAuthCache* ftp_auth_cache) const; 177 net::FtpAuthCache* ftp_auth_cache) const;
173 178
174 // Clears the networking history since |time|. 179 // Deletes all network related data since |time|. It deletes transport
175 void ClearNetworkingHistorySinceOnIOThread(base::Time time); 180 // security state since |time| and also deletes HttpServerProperties data.
181 // Works asynchronously, however if the |completion| callback is non-null,
182 // it will be posted on the UI thread once the removal process completes.
183 void ClearNetworkingHistorySinceOnIOThread(base::Time time,
184 const base::Closure& completion);
176 185
177 // Lazy initialization params. 186 // Lazy initialization params.
178 mutable scoped_ptr<LazyParams> lazy_params_; 187 mutable scoped_ptr<LazyParams> lazy_params_;
179 188
180 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; 189 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_;
181 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; 190 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_;
182 191
183 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; 192 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_;
184 193
185 mutable scoped_ptr<ChromeURLRequestContext> media_request_context_; 194 mutable scoped_ptr<ChromeURLRequestContext> media_request_context_;
186 195
187 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; 196 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_;
188 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; 197 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_;
189 198
190 // Parameters needed for isolated apps. 199 // Parameters needed for isolated apps.
191 FilePath profile_path_; 200 FilePath profile_path_;
192 int app_cache_max_size_; 201 int app_cache_max_size_;
193 int app_media_cache_max_size_; 202 int app_media_cache_max_size_;
194 203
195 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 204 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
196 }; 205 };
197 206
198 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 207 #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