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

Side by Side Diff: chrome/browser/history/in_memory_url_index.cc

Issue 651193002: Remove NOTIFICATION_HISTORY_URL_VISITED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@373326.2
Patch Set: Address comments Created 6 years, 2 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/history/in_memory_url_index.h" 5 #include "chrome/browser/history/in_memory_url_index.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // we haven't registered for them, so don't assert here. 207 // we haven't registered for them, so don't assert here.
208 break; 208 break;
209 } 209 }
210 } 210 }
211 211
212 void InMemoryURLIndex::OnURLVisited(HistoryService* history_service, 212 void InMemoryURLIndex::OnURLVisited(HistoryService* history_service,
213 ui::PageTransition transition, 213 ui::PageTransition transition,
214 const URLRow& row, 214 const URLRow& row,
215 const RedirectList& redirects, 215 const RedirectList& redirects,
216 base::Time visit_time) { 216 base::Time visit_time) {
217 DCHECK(history_service_ == history_service); 217 DCHECK_EQ(history_service_, history_service);
218 needs_to_be_cached_ |= private_data_->UpdateURL(history_service_, 218 needs_to_be_cached_ |= private_data_->UpdateURL(history_service_,
219 row, 219 row,
220 languages_, 220 languages_,
221 scheme_whitelist_, 221 scheme_whitelist_,
222 &private_data_tracker_); 222 &private_data_tracker_);
223 } 223 }
224 224
225 void InMemoryURLIndex::OnURLsModified(const URLsModifiedDetails* details) { 225 void InMemoryURLIndex::OnURLsModified(const URLsModifiedDetails* details) {
226 HistoryService* service = 226 HistoryService* service =
227 HistoryServiceFactory::GetForProfile(profile_, 227 HistoryServiceFactory::GetForProfile(profile_,
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 base::Bind(DeleteCacheFile, path)); 376 base::Bind(DeleteCacheFile, path));
377 } 377 }
378 } 378 }
379 379
380 void InMemoryURLIndex::OnCacheSaveDone(bool succeeded) { 380 void InMemoryURLIndex::OnCacheSaveDone(bool succeeded) {
381 if (save_cache_observer_) 381 if (save_cache_observer_)
382 save_cache_observer_->OnCacheSaveFinished(succeeded); 382 save_cache_observer_->OnCacheSaveFinished(succeeded);
383 } 383 }
384 384
385 } // namespace history 385 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/in_memory_url_index.h ('k') | chrome/browser/search_engines/chrome_template_url_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698