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

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

Issue 625113002: replace OVERRIDE and FINAL with override and final in chrome/browser/[a-i]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newly added OVERRIDEs 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 // The InMemoryHistoryBackend is a wrapper around the in-memory URL database. 5 // The InMemoryHistoryBackend is a wrapper around the in-memory URL database.
6 // It maintains an in-memory cache of a subset of history that is required for 6 // It maintains an in-memory cache of a subset of history that is required for
7 // low-latency operations, such as in-line autocomplete. 7 // low-latency operations, such as in-line autocomplete.
8 // 8 //
9 // The in-memory cache provides the following guarantees: 9 // The in-memory cache provides the following guarantees:
10 // (1.) It will always contain URLRows that either have a |typed_count| > 0; or 10 // (1.) It will always contain URLRows that either have a |typed_count| > 0; or
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Returns the underlying database associated with this backend. The current 65 // Returns the underlying database associated with this backend. The current
66 // autocomplete code was written fro this, but it should probably be removed 66 // autocomplete code was written fro this, but it should probably be removed
67 // so that it can deal directly with this object, rather than the DB. 67 // so that it can deal directly with this object, rather than the DB.
68 InMemoryDatabase* db() const { 68 InMemoryDatabase* db() const {
69 return db_.get(); 69 return db_.get();
70 } 70 }
71 71
72 // Notification callback. 72 // Notification callback.
73 virtual void Observe(int type, 73 virtual void Observe(int type,
74 const content::NotificationSource& source, 74 const content::NotificationSource& source,
75 const content::NotificationDetails& details) OVERRIDE; 75 const content::NotificationDetails& details) override;
76 76
77 private: 77 private:
78 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, DeleteAll); 78 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, DeleteAll);
79 79
80 // Handler for HISTORY_URL_VISITED and HISTORY_URLS_MODIFIED. 80 // Handler for HISTORY_URL_VISITED and HISTORY_URLS_MODIFIED.
81 void OnURLVisitedOrModified(const URLRow& url_row); 81 void OnURLVisitedOrModified(const URLRow& url_row);
82 82
83 // Handler for HISTORY_URLS_DELETED. 83 // Handler for HISTORY_URLS_DELETED.
84 void OnURLsDeleted(const URLsDeletedDetails& details); 84 void OnURLsDeleted(const URLsDeletedDetails& details);
85 85
(...skipping 10 matching lines...) Expand all
96 // The profile that this object is attached. May be NULL before 96 // The profile that this object is attached. May be NULL before
97 // initialization. 97 // initialization.
98 Profile* profile_; 98 Profile* profile_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(InMemoryHistoryBackend); 100 DISALLOW_COPY_AND_ASSIGN(InMemoryHistoryBackend);
101 }; 101 };
102 102
103 } // namespace history 103 } // namespace history
104 104
105 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_HISTORY_BACKEND_H_ 105 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_HISTORY_BACKEND_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_unittest.cc ('k') | chrome/browser/history/in_memory_url_index.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698