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

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

Issue 830483005: Eliminate sending NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_DELETED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated 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
« no previous file with comments | « no previous file | chrome/browser/android/provider/chrome_browser_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_
6 #define CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ 6 #define CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_
7 7
8 #include "base/android/jni_weak_ref.h" 8 #include "base/android/jni_weak_ref.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // Override history::HistoryServiceObserver. 188 // Override history::HistoryServiceObserver.
189 void OnURLVisited(HistoryService* history_service, 189 void OnURLVisited(HistoryService* history_service,
190 ui::PageTransition transition, 190 ui::PageTransition transition,
191 const history::URLRow& row, 191 const history::URLRow& row,
192 const history::RedirectList& redirects, 192 const history::RedirectList& redirects,
193 base::Time visit_time) override; 193 base::Time visit_time) override;
194 void OnKeywordSearchTermUpdated(HistoryService* history_service, 194 void OnKeywordSearchTermUpdated(HistoryService* history_service,
195 const history::URLRow& row, 195 const history::URLRow& row,
196 history::KeywordID keyword_id, 196 history::KeywordID keyword_id,
197 const base::string16& term) override; 197 const base::string16& term) override;
198 void OnKeywordSearchTermDeleted(HistoryService* history_service,
199 history::URLID url_id) override;
198 200
199 // Override content::NotificationObserver. 201 // Override content::NotificationObserver.
200 virtual void Observe(int type, 202 virtual void Observe(int type,
201 const content::NotificationSource& source, 203 const content::NotificationSource& source,
202 const content::NotificationDetails& details) override; 204 const content::NotificationDetails& details) override;
203 205
204 JavaObjectWeakGlobalRef weak_java_provider_; 206 JavaObjectWeakGlobalRef weak_java_provider_;
205 207
206 // Profile must outlive this object. 208 // Profile must outlive this object.
207 // 209 //
(...skipping 13 matching lines...) Expand all
221 content::NotificationRegistrar notification_registrar_; 223 content::NotificationRegistrar notification_registrar_;
222 ScopedObserver<HistoryService, HistoryServiceObserver> 224 ScopedObserver<HistoryService, HistoryServiceObserver>
223 history_service_observer_; 225 history_service_observer_;
224 226
225 bool handling_extensive_changes_; 227 bool handling_extensive_changes_;
226 228
227 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserProvider); 229 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserProvider);
228 }; 230 };
229 231
230 #endif // CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ 232 #endif // CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/provider/chrome_browser_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698