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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |