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

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

Issue 8469018: Provide assumed favicon for intents if service provider page was never visited. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review issues Created 9 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) 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_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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 scoped_refptr<RefCountedMemory> data, 232 scoped_refptr<RefCountedMemory> data,
233 IconType icon_type); 233 IconType icon_type);
234 234
235 void UpdateFaviconMappingAndFetch(scoped_refptr<GetFaviconRequest> request, 235 void UpdateFaviconMappingAndFetch(scoped_refptr<GetFaviconRequest> request,
236 const GURL& page_url, 236 const GURL& page_url,
237 const GURL& icon_url, 237 const GURL& icon_url,
238 IconType icon_type); 238 IconType icon_type);
239 239
240 void SetFaviconOutOfDateForPage(const GURL& page_url); 240 void SetFaviconOutOfDateForPage(const GURL& page_url);
241 241
242 void CloneFavicon(const GURL& old_page_url, const GURL& new_page_url);
243
242 void SetImportedFavicons( 244 void SetImportedFavicons(
243 const std::vector<ImportedFaviconUsage>& favicon_usage); 245 const std::vector<ImportedFaviconUsage>& favicon_usage);
244 246
245 // Downloads ----------------------------------------------------------------- 247 // Downloads -----------------------------------------------------------------
246 248
247 void GetNextDownloadId(scoped_refptr<DownloadNextIdRequest> request); 249 void GetNextDownloadId(scoped_refptr<DownloadNextIdRequest> request);
248 void QueryDownloads(scoped_refptr<DownloadQueryRequest> request); 250 void QueryDownloads(scoped_refptr<DownloadQueryRequest> request);
249 void CleanUpInProgressEntries(); 251 void CleanUpInProgressEntries();
250 void UpdateDownload(const DownloadPersistentStoreInfo& data); 252 void UpdateDownload(const DownloadPersistentStoreInfo& data);
251 void UpdateDownloadPath(const FilePath& path, int64 db_handle); 253 void UpdateDownloadPath(const FilePath& path, int64 db_handle);
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, AddPageArgsSource); 367 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, AddPageArgsSource);
366 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, AddVisitsSource); 368 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, AddVisitsSource);
367 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, RemoveVisitsSource); 369 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, RemoveVisitsSource);
368 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, RemoveVisitsTransitions); 370 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, RemoveVisitsTransitions);
369 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, MigrationVisitSource); 371 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, MigrationVisitSource);
370 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, MigrationIconMapping); 372 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, MigrationIconMapping);
371 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, SetFaviconMapping); 373 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, SetFaviconMapping);
372 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, AddOrUpdateIconMapping); 374 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, AddOrUpdateIconMapping);
373 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, GetMostRecentVisits); 375 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, GetMostRecentVisits);
374 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, GetFaviconForURL); 376 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, GetFaviconForURL);
377 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest,
378 CloneFaviconIsRestrictedToSameDomain);
375 379
376 friend class ::TestingProfile; 380 friend class ::TestingProfile;
377 381
378 // Computes the name of the specified database on disk. 382 // Computes the name of the specified database on disk.
379 FilePath GetThumbnailFileName() const; 383 FilePath GetThumbnailFileName() const;
380 384
381 // Returns the name of the Favicons database. This is the new name 385 // Returns the name of the Favicons database. This is the new name
382 // of the Thumbnails database. 386 // of the Thumbnails database.
383 // See ThumbnailDatabase::RenameAndDropThumbnails. 387 // See ThumbnailDatabase::RenameAndDropThumbnails.
384 FilePath GetFaviconsFileName() const; 388 FilePath GetFaviconsFileName() const;
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 // Publishes the history to all indexers which are registered to receive 640 // Publishes the history to all indexers which are registered to receive
637 // history data from us. Can be NULL if there are no listeners. 641 // history data from us. Can be NULL if there are no listeners.
638 scoped_ptr<HistoryPublisher> history_publisher_; 642 scoped_ptr<HistoryPublisher> history_publisher_;
639 643
640 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 644 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
641 }; 645 };
642 646
643 } // namespace history 647 } // namespace history
644 648
645 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 649 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698