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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl_io_data.h
diff --git a/chrome/browser/profiles/profile_impl_io_data.h b/chrome/browser/profiles/profile_impl_io_data.h
index 6d472272e6164e2e4d483602861b69a2426d0ef5..06dcdf7a146532728f21e3b9507100fcc6b3ab55 100644
--- a/chrome/browser/profiles/profile_impl_io_data.h
+++ b/chrome/browser/profiles/profile_impl_io_data.h
@@ -73,7 +73,12 @@ class ProfileImplIOData : public ProfileIOData {
const FilePath& partition_path,
bool in_memory) const;
- void ClearNetworkingHistorySince(base::Time time);
+ // Deletes all network related data since |time|. It deletes transport
+ // security state since |time| and also deletes HttpServerProperties data.
+ // Works asynchronously, however if the |completion| callback is non-null,
+ // it will be posted on the UI thread once the removal process completes.
+ void ClearNetworkingHistorySince(base::Time time,
+ const base::Closure& completion);
private:
typedef std::map<StoragePartitionDescriptor,
@@ -171,8 +176,12 @@ class ProfileImplIOData : public ProfileIOData {
net::FtpTransactionFactory* ftp_transaction_factory,
net::FtpAuthCache* ftp_auth_cache) const;
- // Clears the networking history since |time|.
- void ClearNetworkingHistorySinceOnIOThread(base::Time time);
+ // Deletes all network related data since |time|. It deletes transport
+ // security state since |time| and also deletes HttpServerProperties data.
+ // Works asynchronously, however if the |completion| callback is non-null,
+ // it will be posted on the UI thread once the removal process completes.
+ void ClearNetworkingHistorySinceOnIOThread(base::Time time,
+ const base::Closure& completion);
// Lazy initialization params.
mutable scoped_ptr<LazyParams> lazy_params_;
« 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