| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 bitmap.eraseColor(SK_ColorBLUE); | 67 bitmap.eraseColor(SK_ColorBLUE); |
| 68 return bitmap; | 68 return bitmap; |
| 69 } | 69 } |
| 70 | 70 |
| 71 } // namespace | 71 } // namespace |
| 72 | 72 |
| 73 class AndroidProviderBackendDelegate : public HistoryBackend::Delegate { | 73 class AndroidProviderBackendDelegate : public HistoryBackend::Delegate { |
| 74 public: | 74 public: |
| 75 AndroidProviderBackendDelegate() {} | 75 AndroidProviderBackendDelegate() {} |
| 76 | 76 |
| 77 void NotifyProfileError(sql::InitStatus init_status) override {} | 77 void NotifyProfileError(sql::InitStatus init_status, |
| 78 const std::string& diagnostics) override {} |
| 78 void SetInMemoryBackend( | 79 void SetInMemoryBackend( |
| 79 std::unique_ptr<InMemoryHistoryBackend> backend) override {} | 80 std::unique_ptr<InMemoryHistoryBackend> backend) override {} |
| 80 void NotifyFaviconsChanged(const std::set<GURL>& page_urls, | 81 void NotifyFaviconsChanged(const std::set<GURL>& page_urls, |
| 81 const GURL& icon_url) override { | 82 const GURL& icon_url) override { |
| 82 favicon_changed_.reset( | 83 favicon_changed_.reset( |
| 83 new std::set<GURL>(page_urls.begin(), page_urls.end())); | 84 new std::set<GURL>(page_urls.begin(), page_urls.end())); |
| 84 } | 85 } |
| 85 void NotifyURLVisited(ui::PageTransition, | 86 void NotifyURLVisited(ui::PageTransition, |
| 86 const history::URLRow& row, | 87 const history::URLRow& row, |
| 87 const history::RedirectList& redirects, | 88 const history::RedirectList& redirects, |
| (...skipping 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2091 update_args, &update_count)); | 2092 update_args, &update_count)); |
| 2092 // Verify notifications. | 2093 // Verify notifications. |
| 2093 EXPECT_FALSE(notifier_.deleted_details()); | 2094 EXPECT_FALSE(notifier_.deleted_details()); |
| 2094 ASSERT_TRUE(notifier_.modified_details()); | 2095 ASSERT_TRUE(notifier_.modified_details()); |
| 2095 ASSERT_EQ(1u, notifier_.modified_details()->size()); | 2096 ASSERT_EQ(1u, notifier_.modified_details()->size()); |
| 2096 // No favicon will be updated as thumbnail database is missing. | 2097 // No favicon will be updated as thumbnail database is missing. |
| 2097 EXPECT_FALSE(notifier_.favicon_changed()); | 2098 EXPECT_FALSE(notifier_.favicon_changed()); |
| 2098 } | 2099 } |
| 2099 | 2100 |
| 2100 } // namespace history | 2101 } // namespace history |
| OLD | NEW |