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

Side by Side Diff: chrome/browser/android/provider/chrome_browser_provider.cc

Issue 849323002: Componentize HistoryDatabase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android compilation Created 5 years, 11 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
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/android/provider/chrome_browser_provider.h" 5 #include "chrome/browser/android/provider/chrome_browser_provider.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <list> 8 #include <list>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 17 matching lines...) Expand all
28 #include "chrome/browser/favicon/favicon_service_factory.h" 28 #include "chrome/browser/favicon/favicon_service_factory.h"
29 #include "chrome/browser/history/android/sqlite_cursor.h" 29 #include "chrome/browser/history/android/sqlite_cursor.h"
30 #include "chrome/browser/history/history_service.h" 30 #include "chrome/browser/history/history_service.h"
31 #include "chrome/browser/history/history_service_factory.h" 31 #include "chrome/browser/history/history_service_factory.h"
32 #include "chrome/browser/history/top_sites.h" 32 #include "chrome/browser/history/top_sites.h"
33 #include "chrome/browser/profiles/profile.h" 33 #include "chrome/browser/profiles/profile.h"
34 #include "chrome/browser/profiles/profile_manager.h" 34 #include "chrome/browser/profiles/profile_manager.h"
35 #include "chrome/browser/search_engines/template_url_service_factory.h" 35 #include "chrome/browser/search_engines/template_url_service_factory.h"
36 #include "components/bookmarks/browser/bookmark_model.h" 36 #include "components/bookmarks/browser/bookmark_model.h"
37 #include "components/bookmarks/browser/bookmark_utils.h" 37 #include "components/bookmarks/browser/bookmark_utils.h"
38 #include "components/history/core/android/android_history_types.h" 38 #include "components/history/core/browser/android/android_history_types.h"
39 #include "components/search_engines/template_url.h" 39 #include "components/search_engines/template_url.h"
40 #include "components/search_engines/template_url_service.h" 40 #include "components/search_engines/template_url_service.h"
41 #include "content/public/browser/browser_thread.h" 41 #include "content/public/browser/browser_thread.h"
42 #include "content/public/browser/notification_service.h" 42 #include "content/public/browser/notification_service.h"
43 #include "jni/ChromeBrowserProvider_jni.h" 43 #include "jni/ChromeBrowserProvider_jni.h"
44 #include "sql/statement.h" 44 #include "sql/statement.h"
45 #include "ui/base/layout.h" 45 #include "ui/base/layout.h"
46 #include "ui/base/resource/resource_bundle.h" 46 #include "ui/base/resource/resource_bundle.h"
47 #include "ui/gfx/favicon_size.h" 47 #include "ui/gfx/favicon_size.h"
48 48
(...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1637 Java_ChromeBrowserProvider_onSearchTermChanged(env, obj.obj()); 1637 Java_ChromeBrowserProvider_onSearchTermChanged(env, obj.obj());
1638 } 1638 }
1639 1639
1640 void ChromeBrowserProvider::Observe( 1640 void ChromeBrowserProvider::Observe(
1641 int type, 1641 int type,
1642 const content::NotificationSource& source, 1642 const content::NotificationSource& source,
1643 const content::NotificationDetails& details) { 1643 const content::NotificationDetails& details) {
1644 DCHECK_EQ(type, chrome::NOTIFICATION_HISTORY_URLS_DELETED); 1644 DCHECK_EQ(type, chrome::NOTIFICATION_HISTORY_URLS_DELETED);
1645 OnHistoryChanged(); 1645 OnHistoryChanged();
1646 } 1646 }
OLDNEW
« no previous file with comments | « chrome/browser/android/provider/chrome_browser_provider.h ('k') | chrome/browser/autocomplete/history_quick_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698