OLD | NEW |
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 #include "chrome/browser/history/android/android_provider_backend.h" | 5 #include "chrome/browser/history/android/android_provider_backend.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 } // namespace | 70 } // namespace |
71 | 71 |
72 class AndroidProviderBackendDelegate : public HistoryBackend::Delegate { | 72 class AndroidProviderBackendDelegate : public HistoryBackend::Delegate { |
73 public: | 73 public: |
74 AndroidProviderBackendDelegate() {} | 74 AndroidProviderBackendDelegate() {} |
75 | 75 |
76 void NotifyProfileError(sql::InitStatus init_status) override {} | 76 void NotifyProfileError(sql::InitStatus init_status) override {} |
77 void SetInMemoryBackend( | 77 void SetInMemoryBackend( |
78 scoped_ptr<InMemoryHistoryBackend> backend) override {} | 78 scoped_ptr<InMemoryHistoryBackend> backend) override {} |
79 void NotifyAddVisit(const history::BriefVisitInfo& info) override {} | |
80 void NotifyFaviconChanged(const std::set<GURL>& url) override { | 79 void NotifyFaviconChanged(const std::set<GURL>& url) override { |
81 favicon_changed_.reset(new std::set<GURL>(url.begin(), url.end())); | 80 favicon_changed_.reset(new std::set<GURL>(url.begin(), url.end())); |
82 } | 81 } |
83 void NotifyURLVisited(ui::PageTransition, | 82 void NotifyURLVisited(ui::PageTransition, |
84 const history::URLRow& row, | 83 const history::URLRow& row, |
85 const history::RedirectList& redirects, | 84 const history::RedirectList& redirects, |
86 base::Time visit_time) override {} | 85 base::Time visit_time) override {} |
87 void NotifyURLsModified(const history::URLRows& rows) override { | 86 void NotifyURLsModified(const history::URLRows& rows) override { |
88 modified_details_.reset(new history::URLRows(rows)); | 87 modified_details_.reset(new history::URLRows(rows)); |
89 } | 88 } |
(...skipping 2058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2148 update_args, &update_count)); | 2147 update_args, &update_count)); |
2149 // Verify notifications. | 2148 // Verify notifications. |
2150 EXPECT_FALSE(notifier_.deleted_details()); | 2149 EXPECT_FALSE(notifier_.deleted_details()); |
2151 ASSERT_TRUE(notifier_.modified_details()); | 2150 ASSERT_TRUE(notifier_.modified_details()); |
2152 ASSERT_EQ(1u, notifier_.modified_details()->size()); | 2151 ASSERT_EQ(1u, notifier_.modified_details()->size()); |
2153 // No favicon will be updated as thumbnail database is missing. | 2152 // No favicon will be updated as thumbnail database is missing. |
2154 EXPECT_FALSE(notifier_.favicon_changed()); | 2153 EXPECT_FALSE(notifier_.favicon_changed()); |
2155 } | 2154 } |
2156 | 2155 |
2157 } // namespace history | 2156 } // namespace history |
OLD | NEW |