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

Side by Side Diff: chrome/test/base/testing_profile.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
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.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_TEST_BASE_TESTING_PROFILE_H_ 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_
6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 #endif // defined(OS_CHROMEOS) 285 #endif // defined(OS_CHROMEOS)
286 286
287 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; 287 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE;
288 288
289 // Schedules a task on the history backend and runs a nested loop until the 289 // Schedules a task on the history backend and runs a nested loop until the
290 // task is processed. This has the effect of blocking the caller until the 290 // task is processed. This has the effect of blocking the caller until the
291 // history service processes all pending requests. 291 // history service processes all pending requests.
292 void BlockUntilHistoryProcessesPendingRequests(); 292 void BlockUntilHistoryProcessesPendingRequests();
293 293
294 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; 294 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE;
295 virtual void ClearNetworkingHistorySince(base::Time time) OVERRIDE; 295 virtual void ClearNetworkingHistorySince(
296 base::Time time,
297 const base::Closure& completion) OVERRIDE;
296 virtual GURL GetHomePage() OVERRIDE; 298 virtual GURL GetHomePage() OVERRIDE;
297 299
298 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; 300 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE;
299 301
300 protected: 302 protected:
301 base::Time start_time_; 303 base::Time start_time_;
302 scoped_ptr<PrefService> prefs_; 304 scoped_ptr<PrefService> prefs_;
303 // ref only for right type, lifecycle is managed by prefs_ 305 // ref only for right type, lifecycle is managed by prefs_
304 TestingPrefService* testing_prefs_; 306 TestingPrefService* testing_prefs_;
305 307
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 // testing. 366 // testing.
365 ProfileDependencyManager* profile_dependency_manager_; 367 ProfileDependencyManager* profile_dependency_manager_;
366 368
367 scoped_ptr<content::MockResourceContext> resource_context_; 369 scoped_ptr<content::MockResourceContext> resource_context_;
368 370
369 // Weak pointer to a delegate for indicating that a profile was created. 371 // Weak pointer to a delegate for indicating that a profile was created.
370 Delegate* delegate_; 372 Delegate* delegate_;
371 }; 373 };
372 374
373 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 375 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698