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 55740c584ec2b64583cae80c5778056da2909e35..ecbac12288b4f2564d1e6f39134df7522ec5af7a 100644 |
--- a/chrome/browser/profiles/profile_impl_io_data.h |
+++ b/chrome/browser/profiles/profile_impl_io_data.h |
@@ -71,13 +71,21 @@ class ProfileImplIOData : public ProfileIOData { |
GetIsolatedMediaRequestContextGetter( |
const std::string& app_id) const; |
- void ClearNetworkingHistorySince(base::Time time); |
+ void ClearNetworkingHistorySince(base::Time time, |
+ const base::Closure& completion); |
private: |
+ friend class TestingProfile; |
+ |
typedef base::hash_map<std::string, |
scoped_refptr<ChromeURLRequestContextGetter> > |
ChromeURLRequestContextGetterMap; |
+ // Sets up a skeleton instance to be used by TestingProfile in unit tests. |
+ // Gets the object into a virtually initialized state, but skips most of the |
+ // usual initialization steps, and only creates what is needed for testing. |
+ void InitForTesting() const; |
+ |
// Lazily initialize ProfileParams. We do this on the calls to |
// Get*RequestContextGetter(), so we only initialize ProfileParams right |
// before posting a task to the IO thread to start using them. This prevents |
@@ -168,7 +176,8 @@ class ProfileImplIOData : public ProfileIOData { |
net::FtpAuthCache* ftp_auth_cache) const; |
// Clears the networking history since |time|. |
- void ClearNetworkingHistorySinceOnIOThread(base::Time time); |
+ void ClearNetworkingHistorySinceOnIOThread(base::Time time, |
+ const base::Closure& completion); |
// Lazy initialization params. |
mutable scoped_ptr<LazyParams> lazy_params_; |