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

Side by Side Diff: chrome/browser/history/android/android_provider_backend.cc

Issue 339433007: Componentize URLDatabase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
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/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/favicon/favicon_changed_details.h" 9 #include "chrome/browser/favicon/favicon_changed_details.h"
10 #include "chrome/browser/history/android/android_time.h" 10 #include "chrome/browser/history/android/android_time.h"
11 #include "chrome/browser/history/android/android_urls_sql_handler.h" 11 #include "chrome/browser/history/android/android_urls_sql_handler.h"
12 #include "chrome/browser/history/android/bookmark_model_sql_handler.h" 12 #include "chrome/browser/history/android/bookmark_model_sql_handler.h"
13 #include "chrome/browser/history/android/favicon_sql_handler.h" 13 #include "chrome/browser/history/android/favicon_sql_handler.h"
14 #include "chrome/browser/history/android/urls_sql_handler.h" 14 #include "chrome/browser/history/android/urls_sql_handler.h"
15 #include "chrome/browser/history/android/visit_sql_handler.h" 15 #include "chrome/browser/history/android/visit_sql_handler.h"
16 #include "chrome/browser/history/history_backend.h" 16 #include "chrome/browser/history/history_backend.h"
17 #include "chrome/browser/history/history_database.h" 17 #include "chrome/browser/history/history_database.h"
18 #include "chrome/browser/history/thumbnail_database.h" 18 #include "chrome/browser/history/thumbnail_database.h"
19 #include "components/history/core/browser/history_client.h" 19 #include "components/history/core/browser/history_client.h"
20 #include "components/history/core/browser/keyword_search_term.h"
20 #include "content/public/common/page_transition_types.h" 21 #include "content/public/common/page_transition_types.h"
21 #include "sql/connection.h" 22 #include "sql/connection.h"
22 23
23 24
24 namespace history { 25 namespace history {
25 26
26 27
27 // Helpers -------------------------------------------------------------------- 28 // Helpers --------------------------------------------------------------------
28 29
29 namespace { 30 namespace {
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 return false; 1221 return false;
1221 1222
1222 if (!history_db_->SetKeywordSearchTermsForURL(bookmark_row.url_id(), 1223 if (!history_db_->SetKeywordSearchTermsForURL(bookmark_row.url_id(),
1223 values.keyword_id(), values.search_term())) 1224 values.keyword_id(), values.search_term()))
1224 return false; 1225 return false;
1225 } 1226 }
1226 return true; 1227 return true;
1227 } 1228 }
1228 1229
1229 } // namespace history 1230 } // namespace history
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698