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