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

Side by Side Diff: components/history/core/browser/history_client.cc

Issue 971423002: Abstract code filtering URLs added to the history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keyed-service
Patch Set: Created 5 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "components/history/core/browser/history_client.h" 5 #include "components/history/core/browser/history_client.h"
6 6
7 namespace history { 7 namespace history {
8 8
9 HistoryClient::HistoryClient() { 9 HistoryClient::HistoryClient() {
10 } 10 }
11 11
12 void HistoryClient::BlockUntilBookmarksLoaded() { 12 void HistoryClient::BlockUntilBookmarksLoaded() {
13 } 13 }
14 14
15 bool HistoryClient::IsBookmarked(const GURL& url) { 15 bool HistoryClient::IsBookmarked(const GURL& url) {
16 return false; 16 return false;
17 } 17 }
18 18
19 void HistoryClient::GetBookmarks(std::vector<URLAndTitle>* bookmarks) { 19 void HistoryClient::GetBookmarks(std::vector<URLAndTitle>* bookmarks) {
20 } 20 }
21 21
22 bool HistoryClient::CanAddURL(const GURL& url) {
23 return true;
24 }
25
22 void HistoryClient::NotifyProfileError(sql::InitStatus init_status) { 26 void HistoryClient::NotifyProfileError(sql::InitStatus init_status) {
23 } 27 }
24 28
25 bool HistoryClient::ShouldReportDatabaseError() { 29 bool HistoryClient::ShouldReportDatabaseError() {
26 return false; 30 return false;
27 } 31 }
28 32
29 void HistoryClient::OnHistoryBackendInitialized( 33 void HistoryClient::OnHistoryBackendInitialized(
30 HistoryBackend* history_backend, 34 HistoryBackend* history_backend,
31 HistoryDatabase* history_database, 35 HistoryDatabase* history_database,
32 ThumbnailDatabase* thumbnail_database, 36 ThumbnailDatabase* thumbnail_database,
33 const base::FilePath& history_dir) { 37 const base::FilePath& history_dir) {
34 } 38 }
35 39
36 void HistoryClient::OnHistoryBackendDestroyed( 40 void HistoryClient::OnHistoryBackendDestroyed(
37 HistoryBackend* history_backend, 41 HistoryBackend* history_backend,
38 const base::FilePath& history_dir) { 42 const base::FilePath& history_dir) {
39 } 43 }
40 44
41 } // namespace history 45 } // namespace history
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698