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

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

Issue 694843002: Remove NOTIFICATION_HISTORY_URLS_MODIFIED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 6 years, 1 month 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 #ifndef CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ 5 #ifndef CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_
6 #define CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ 6 #define CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_
7 7
8 #include <functional> 8 #include <functional>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 void Observe(int notification_type, 238 void Observe(int notification_type,
239 const content::NotificationSource& source, 239 const content::NotificationSource& source,
240 const content::NotificationDetails& details) override; 240 const content::NotificationDetails& details) override;
241 241
242 // HistoryServiceObserver: 242 // HistoryServiceObserver:
243 void OnURLVisited(HistoryService* history_service, 243 void OnURLVisited(HistoryService* history_service,
244 ui::PageTransition transition, 244 ui::PageTransition transition,
245 const URLRow& row, 245 const URLRow& row,
246 const RedirectList& redirects, 246 const RedirectList& redirects,
247 base::Time visit_time) override; 247 base::Time visit_time) override;
248 void OnURLsModified(HistoryService* history_service,
249 const URLRows& changed_urls) override;
248 250
249 // Notification handlers. 251 // Notification handlers.
250 void OnURLsModified(const URLsModifiedDetails* details);
251 void OnURLsDeleted(const URLsDeletedDetails* details); 252 void OnURLsDeleted(const URLsDeletedDetails* details);
252 253
253 // Sets the directory wherein the cache file will be maintained. 254 // Sets the directory wherein the cache file will be maintained.
254 // For unit test usage only. 255 // For unit test usage only.
255 void set_history_dir(const base::FilePath& dir_path) { 256 void set_history_dir(const base::FilePath& dir_path) {
256 history_dir_ = dir_path; 257 history_dir_ = dir_path;
257 } 258 }
258 259
259 // Returns a pointer to our private data. For unit testing only. 260 // Returns a pointer to our private data. For unit testing only.
260 URLIndexPrivateData* private_data() { return private_data_.get(); } 261 URLIndexPrivateData* private_data() { return private_data_.get(); }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // temporary safety check to insure that the cache is saved before the 309 // temporary safety check to insure that the cache is saved before the
309 // index has been destructed. 310 // index has been destructed.
310 bool needs_to_be_cached_; 311 bool needs_to_be_cached_;
311 312
312 DISALLOW_COPY_AND_ASSIGN(InMemoryURLIndex); 313 DISALLOW_COPY_AND_ASSIGN(InMemoryURLIndex);
313 }; 314 };
314 315
315 } // namespace history 316 } // namespace history
316 317
317 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ 318 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/in_memory_history_backend.cc ('k') | chrome/browser/history/in_memory_url_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698