| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |