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

Side by Side Diff: chrome/browser/history/history.h

Issue 8890089: [Sync] Add HistoryService::DeleteURLsForTest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_HISTORY_HISTORY_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 // Requests a page thumbnail. See ThumbnailDataCallback definition above. 373 // Requests a page thumbnail. See ThumbnailDataCallback definition above.
374 Handle GetPageThumbnail(const GURL& page_url, 374 Handle GetPageThumbnail(const GURL& page_url,
375 CancelableRequestConsumerBase* consumer, 375 CancelableRequestConsumerBase* consumer,
376 const ThumbnailDataCallback& callback); 376 const ThumbnailDataCallback& callback);
377 377
378 // Database management operations -------------------------------------------- 378 // Database management operations --------------------------------------------
379 379
380 // Delete all the information related to a single url. 380 // Delete all the information related to a single url.
381 void DeleteURL(const GURL& url); 381 void DeleteURL(const GURL& url);
382 382
383 // Delete all the information related to a list of urls. (Deleting
384 // URLs one by one is slow as it has to flush to disk each time.)
385 void DeleteURLsForTest(const std::vector<GURL>& urls);
386
383 // Removes all visits in the selected time range (including the start time), 387 // Removes all visits in the selected time range (including the start time),
384 // updating the URLs accordingly. This deletes the associated data, including 388 // updating the URLs accordingly. This deletes the associated data, including
385 // the full text index. This function also deletes the associated favicons, 389 // the full text index. This function also deletes the associated favicons,
386 // if they are no longer referenced. |callback| runs when the expiration is 390 // if they are no longer referenced. |callback| runs when the expiration is
387 // complete. You may use null Time values to do an unbounded delete in 391 // complete. You may use null Time values to do an unbounded delete in
388 // either direction. 392 // either direction.
389 // If |restrict_urls| is not empty, only visits to the URLs in this set are 393 // If |restrict_urls| is not empty, only visits to the URLs in this set are
390 // removed. 394 // removed.
391 void ExpireHistoryBetween(const std::set<GURL>& restrict_urls, 395 void ExpireHistoryBetween(const std::set<GURL>& restrict_urls,
392 base::Time begin_time, base::Time end_time, 396 base::Time begin_time, base::Time end_time,
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 BookmarkService* bookmark_service_; 863 BookmarkService* bookmark_service_;
860 bool no_db_; 864 bool no_db_;
861 865
862 // True if needs top site migration. 866 // True if needs top site migration.
863 bool needs_top_sites_migration_; 867 bool needs_top_sites_migration_;
864 868
865 DISALLOW_COPY_AND_ASSIGN(HistoryService); 869 DISALLOW_COPY_AND_ASSIGN(HistoryService);
866 }; 870 };
867 871
868 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ 872 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698