| 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 "base/i18n/case_conversion.h" | 7 #include "base/i18n/case_conversion.h" |
| 8 #include "chrome/browser/history/android/bookmark_model_sql_handler.h" | 8 #include "chrome/browser/history/android/bookmark_model_sql_handler.h" |
| 9 #include "components/history/core/browser/android/android_time.h" | 9 #include "components/history/core/browser/android/android_time.h" |
| 10 #include "components/history/core/browser/android/android_urls_sql_handler.h" | 10 #include "components/history/core/browser/android/android_urls_sql_handler.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 if (row.last_visit_time().ToInternalValue() - | 109 if (row.last_visit_time().ToInternalValue() - |
| 110 row.created().ToInternalValue() < row.visit_count()) | 110 row.created().ToInternalValue() < row.visit_count()) |
| 111 return false; | 111 return false; |
| 112 } | 112 } |
| 113 } | 113 } |
| 114 return true; | 114 return true; |
| 115 } | 115 } |
| 116 | 116 |
| 117 void RunNotifyFaviconChanged(HistoryBackendNotifier* notifier, | 117 void RunNotifyFaviconChanged(HistoryBackendNotifier* notifier, |
| 118 scoped_ptr<std::set<GURL>> urls) { | 118 scoped_ptr<std::set<GURL>> urls) { |
| 119 notifier->NotifyFaviconChanged(*(urls.get())); | 119 notifier->NotifyFaviconsChanged(*(urls.get()), GURL()); |
| 120 } | 120 } |
| 121 | 121 |
| 122 void RunNotifyURLsModified(HistoryBackendNotifier* notifier, | 122 void RunNotifyURLsModified(HistoryBackendNotifier* notifier, |
| 123 scoped_ptr<URLRows> rows) { | 123 scoped_ptr<URLRows> rows) { |
| 124 notifier->NotifyURLsModified(*(rows.get())); | 124 notifier->NotifyURLsModified(*(rows.get())); |
| 125 } | 125 } |
| 126 | 126 |
| 127 void RunNotifyURLsDeleted(HistoryBackendNotifier* notifier, | 127 void RunNotifyURLsDeleted(HistoryBackendNotifier* notifier, |
| 128 scoped_ptr<URLRows> rows) { | 128 scoped_ptr<URLRows> rows) { |
| 129 notifier->NotifyURLsDeleted(false /* all_history */, | 129 notifier->NotifyURLsDeleted(false /* all_history */, |
| (...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1251 return false; | 1251 return false; |
| 1252 | 1252 |
| 1253 if (!history_db_->SetKeywordSearchTermsForURL(bookmark_row.url_id(), | 1253 if (!history_db_->SetKeywordSearchTermsForURL(bookmark_row.url_id(), |
| 1254 values.keyword_id(), values.search_term())) | 1254 values.keyword_id(), values.search_term())) |
| 1255 return false; | 1255 return false; |
| 1256 } | 1256 } |
| 1257 return true; | 1257 return true; |
| 1258 } | 1258 } |
| 1259 | 1259 |
| 1260 } // namespace history | 1260 } // namespace history |
| OLD | NEW |