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

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: Removed superflous empty line. 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_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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 #endif // defined(OS_CHROMEOS) 287 #endif // defined(OS_CHROMEOS)
288 288
289 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; 289 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE;
290 290
291 // Schedules a task on the history backend and runs a nested loop until the 291 // Schedules a task on the history backend and runs a nested loop until the
292 // task is processed. This has the effect of blocking the caller until the 292 // task is processed. This has the effect of blocking the caller until the
293 // history service processes all pending requests. 293 // history service processes all pending requests.
294 void BlockUntilHistoryProcessesPendingRequests(); 294 void BlockUntilHistoryProcessesPendingRequests();
295 295
296 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; 296 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE;
297 virtual void ClearNetworkingHistorySince(base::Time time) OVERRIDE; 297 virtual void ClearNetworkingHistorySince(
298 base::Time time,
299 const base::Closure& completion) OVERRIDE;
298 virtual GURL GetHomePage() OVERRIDE; 300 virtual GURL GetHomePage() OVERRIDE;
299 301
300 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; 302 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE;
301 303
302 protected: 304 protected:
303 base::Time start_time_; 305 base::Time start_time_;
304 scoped_ptr<PrefService> prefs_; 306 scoped_ptr<PrefService> prefs_;
305 // ref only for right type, lifecycle is managed by prefs_ 307 // ref only for right type, lifecycle is managed by prefs_
306 TestingPrefService* testing_prefs_; 308 TestingPrefService* testing_prefs_;
307 309
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 // testing. 368 // testing.
367 ProfileDependencyManager* profile_dependency_manager_; 369 ProfileDependencyManager* profile_dependency_manager_;
368 370
369 scoped_ptr<content::MockResourceContext> resource_context_; 371 scoped_ptr<content::MockResourceContext> resource_context_;
370 372
371 // Weak pointer to a delegate for indicating that a profile was created. 373 // Weak pointer to a delegate for indicating that a profile was created.
372 Delegate* delegate_; 374 Delegate* delegate_;
373 }; 375 };
374 376
375 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 377 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698