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

Side by Side Diff: chrome/test/base/testing_profile.h

Issue 238863005: Domain Reliability: Remove browsing data when requested. (Closed) Base URL: http://git.chromium.org/chromium/src.git@domrel_bakedin
Patch Set: rebase Created 6 years, 8 months 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
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/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 void DestroyHistoryService(); 175 void DestroyHistoryService();
176 176
177 // Creates TopSites. This returns immediately, and top sites may not be 177 // Creates TopSites. This returns immediately, and top sites may not be
178 // loaded. Use BlockUntilTopSitesLoaded to ensure TopSites has finished 178 // loaded. Use BlockUntilTopSitesLoaded to ensure TopSites has finished
179 // loading. 179 // loading.
180 void CreateTopSites(); 180 void CreateTopSites();
181 181
182 // Shuts down and nulls out the reference to TopSites. 182 // Shuts down and nulls out the reference to TopSites.
183 void DestroyTopSites(); 183 void DestroyTopSites();
184 184
185 // Creates the BookmkarBarModel. If not invoked the bookmark bar model is 185 // Creates the BookmarkBarModel. If not invoked the bookmark bar model is
186 // NULL. If |delete_file| is true, the bookmarks file is deleted first, then 186 // NULL. If |delete_file| is true, the bookmarks file is deleted first, then
187 // the model is created. As TestingProfile deletes the directory containing 187 // the model is created. As TestingProfile deletes the directory containing
188 // the files used by HistoryService, the boolean only matters if you're 188 // the files used by HistoryService, the boolean only matters if you're
189 // recreating the BookmarkModel. 189 // recreating the BookmarkModel.
190 // 190 //
191 // NOTE: this does not block until the bookmarks are loaded. For that use 191 // NOTE: this does not block until the bookmarks are loaded. For that use
192 // WaitForBookmarkModelToLoad(). 192 // WaitForBookmarkModelToLoad().
193 void CreateBookmarkModel(bool delete_file); 193 void CreateBookmarkModel(bool delete_file);
194 194
195 // Creates a WebDataService. If not invoked, the web data service is NULL. 195 // Creates a WebDataService. If not invoked, the web data service is NULL.
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 340
341 // Schedules a task on the history backend and runs a nested loop until the 341 // Schedules a task on the history backend and runs a nested loop until the
342 // task is processed. This has the effect of blocking the caller until the 342 // task is processed. This has the effect of blocking the caller until the
343 // history service processes all pending requests. 343 // history service processes all pending requests.
344 void BlockUntilHistoryProcessesPendingRequests(); 344 void BlockUntilHistoryProcessesPendingRequests();
345 345
346 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; 346 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE;
347 virtual void ClearNetworkingHistorySince( 347 virtual void ClearNetworkingHistorySince(
348 base::Time time, 348 base::Time time,
349 const base::Closure& completion) OVERRIDE; 349 const base::Closure& completion) OVERRIDE;
350 virtual void ClearDomainReliabilityMonitor(
351 bool clear_contexts,
352 const base::Closure& completion) OVERRIDE;
350 virtual GURL GetHomePage() OVERRIDE; 353 virtual GURL GetHomePage() OVERRIDE;
351 354
352 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; 355 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE;
353 356
354 void set_profile_name(const std::string& profile_name) { 357 void set_profile_name(const std::string& profile_name) {
355 profile_name_ = profile_name; 358 profile_name_ = profile_name;
356 } 359 }
357 360
358 protected: 361 protected:
359 base::Time start_time_; 362 base::Time start_time_;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 434
432 // Weak pointer to a delegate for indicating that a profile was created. 435 // Weak pointer to a delegate for indicating that a profile was created.
433 Delegate* delegate_; 436 Delegate* delegate_;
434 437
435 std::string profile_name_; 438 std::string profile_name_;
436 439
437 scoped_ptr<policy::PolicyService> policy_service_; 440 scoped_ptr<policy::PolicyService> policy_service_;
438 }; 441 };
439 442
440 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 443 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698