OLD | NEW |
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 Loading... |
238 // Handles notifications of history changes. | 238 // Handles notifications of history changes. |
239 virtual void Observe(int notification_type, | 239 virtual void Observe(int notification_type, |
240 const content::NotificationSource& source, | 240 const content::NotificationSource& source, |
241 const content::NotificationDetails& details) override; | 241 const content::NotificationDetails& details) override; |
242 | 242 |
243 // HistoryServiceObserver: | 243 // HistoryServiceObserver: |
244 virtual void OnURLVisited(HistoryService* history_service, | 244 virtual void OnURLVisited(HistoryService* history_service, |
245 ui::PageTransition transition, | 245 ui::PageTransition transition, |
246 const URLRow& row, | 246 const URLRow& row, |
247 const RedirectList& redirects, | 247 const RedirectList& redirects, |
248 base::Time visit_time) OVERRIDE; | 248 base::Time visit_time) override; |
249 | 249 |
250 // Notification handlers. | 250 // Notification handlers. |
251 void OnURLsModified(const URLsModifiedDetails* details); | 251 void OnURLsModified(const URLsModifiedDetails* details); |
252 void OnURLsDeleted(const URLsDeletedDetails* details); | 252 void OnURLsDeleted(const URLsDeletedDetails* details); |
253 | 253 |
254 // Sets the directory wherein the cache file will be maintained. | 254 // Sets the directory wherein the cache file will be maintained. |
255 // For unit test usage only. | 255 // For unit test usage only. |
256 void set_history_dir(const base::FilePath& dir_path) { | 256 void set_history_dir(const base::FilePath& dir_path) { |
257 history_dir_ = dir_path; | 257 history_dir_ = dir_path; |
258 } | 258 } |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 // 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 |
310 // index has been destructed. | 310 // index has been destructed. |
311 bool needs_to_be_cached_; | 311 bool needs_to_be_cached_; |
312 | 312 |
313 DISALLOW_COPY_AND_ASSIGN(InMemoryURLIndex); | 313 DISALLOW_COPY_AND_ASSIGN(InMemoryURLIndex); |
314 }; | 314 }; |
315 | 315 |
316 } // namespace history | 316 } // namespace history |
317 | 317 |
318 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ | 318 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ |
OLD | NEW |