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

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

Issue 10915180: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r166680 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_BROWSER_HISTORY_HISTORY_BACKEND_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/mru_cache.h" 13 #include "base/memory/mru_cache.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "chrome/browser/common/cancelable_request.h" 15 #include "chrome/browser/common/cancelable_request.h"
16 #include "chrome/browser/history/archived_database.h" 16 #include "chrome/browser/history/archived_database.h"
17 #include "chrome/browser/history/expire_history_backend.h" 17 #include "chrome/browser/history/expire_history_backend.h"
18 #include "chrome/browser/history/history_database.h" 18 #include "chrome/browser/history/history_database.h"
19 #include "chrome/browser/history/history_marshaling.h" 19 #include "chrome/browser/history/history_marshaling.h"
20 #include "chrome/browser/history/history_types.h" 20 #include "chrome/browser/history/history_types.h"
21 #include "chrome/browser/history/text_database_manager.h" 21 #include "chrome/browser/history/text_database_manager.h"
22 #include "chrome/browser/history/thumbnail_database.h" 22 #include "chrome/browser/history/thumbnail_database.h"
23 #include "chrome/browser/history/visit_tracker.h" 23 #include "chrome/browser/history/visit_tracker.h"
24 #include "chrome/browser/search_engines/template_url_id.h" 24 #include "chrome/browser/search_engines/template_url_id.h"
25 #include "sql/init_status.h" 25 #include "sql/init_status.h"
26 #include "ui/base/layout.h" 26 #include "ui/base/layout.h"
27 27
28 class BookmarkService; 28 class BookmarkService;
29 class TestingProfile; 29 class TestingProfile;
30 struct DownloadPersistentStoreInfo;
30 struct ThumbnailScore; 31 struct ThumbnailScore;
31 32
32 namespace content {
33 struct DownloadPersistentStoreInfo;
34 }
35
36 namespace history { 33 namespace history {
37 #if defined(OS_ANDROID) 34 #if defined(OS_ANDROID)
38 class AndroidProviderBackend; 35 class AndroidProviderBackend;
39 #endif 36 #endif
40 class CommitLaterTask; 37 class CommitLaterTask;
41 class HistoryPublisher; 38 class HistoryPublisher;
42 class VisitFilter; 39 class VisitFilter;
43 40
44 // The maximum number of icons URLs per page which can be stored in the 41 // The maximum number of icons URLs per page which can be stored in the
45 // thumbnail database. 42 // thumbnail database.
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 void CloneFavicons(const GURL& old_page_url, const GURL& new_page_url); 298 void CloneFavicons(const GURL& old_page_url, const GURL& new_page_url);
302 299
303 void SetImportedFavicons( 300 void SetImportedFavicons(
304 const std::vector<ImportedFaviconUsage>& favicon_usage); 301 const std::vector<ImportedFaviconUsage>& favicon_usage);
305 302
306 // Downloads ----------------------------------------------------------------- 303 // Downloads -----------------------------------------------------------------
307 304
308 void GetNextDownloadId(scoped_refptr<DownloadNextIdRequest> request); 305 void GetNextDownloadId(scoped_refptr<DownloadNextIdRequest> request);
309 void QueryDownloads(scoped_refptr<DownloadQueryRequest> request); 306 void QueryDownloads(scoped_refptr<DownloadQueryRequest> request);
310 void CleanUpInProgressEntries(); 307 void CleanUpInProgressEntries();
311 void UpdateDownload(const content::DownloadPersistentStoreInfo& data); 308 void UpdateDownload(const DownloadPersistentStoreInfo& data);
312 void UpdateDownloadPath(const FilePath& path, int64 db_handle);
313 void CreateDownload(scoped_refptr<DownloadCreateRequest> request, 309 void CreateDownload(scoped_refptr<DownloadCreateRequest> request,
314 int32 id, 310 const DownloadPersistentStoreInfo& info);
315 const content::DownloadPersistentStoreInfo& info); 311 void RemoveDownloads(const std::set<int64>& db_handles);
316 void RemoveDownload(int64 db_handle);
317 void RemoveDownloadsBetween(const base::Time remove_begin,
318 const base::Time remove_end);
319 void RemoveDownloads(const base::Time remove_end);
320 312
321 // Segment usage ------------------------------------------------------------- 313 // Segment usage -------------------------------------------------------------
322 314
323 void QuerySegmentUsage(scoped_refptr<QuerySegmentUsageRequest> request, 315 void QuerySegmentUsage(scoped_refptr<QuerySegmentUsageRequest> request,
324 const base::Time from_time, 316 const base::Time from_time,
325 int max_result_count); 317 int max_result_count);
326 void DeleteOldSegmentData(); 318 void DeleteOldSegmentData();
327 void SetSegmentPresentationIndex(SegmentID segment_id, int index); 319 void SetSegmentPresentationIndex(SegmentID segment_id, int index);
328 320
329 // Keyword search terms ------------------------------------------------------ 321 // Keyword search terms ------------------------------------------------------
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 // Used to provide the Android ContentProvider APIs. 880 // Used to provide the Android ContentProvider APIs.
889 scoped_ptr<AndroidProviderBackend> android_provider_backend_; 881 scoped_ptr<AndroidProviderBackend> android_provider_backend_;
890 #endif 882 #endif
891 883
892 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 884 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
893 }; 885 };
894 886
895 } // namespace history 887 } // namespace history
896 888
897 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 889 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698