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

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

Issue 9316109: Move Ownership of IMUI to HistoryService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Qualify globally scoped friend classes. Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_HISTORY_DATABASE_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // visit id wasn't found. 134 // visit id wasn't found.
135 SegmentID GetSegmentID(VisitID visit_id); 135 SegmentID GetSegmentID(VisitID visit_id);
136 136
137 // Retrieves/Updates early expiration threshold, which specifies the earliest 137 // Retrieves/Updates early expiration threshold, which specifies the earliest
138 // known point in history that may possibly to contain visits suitable for 138 // known point in history that may possibly to contain visits suitable for
139 // early expiration (AUTO_SUBFRAMES). 139 // early expiration (AUTO_SUBFRAMES).
140 virtual base::Time GetEarlyExpirationThreshold(); 140 virtual base::Time GetEarlyExpirationThreshold();
141 virtual void UpdateEarlyExpirationThreshold(base::Time threshold); 141 virtual void UpdateEarlyExpirationThreshold(base::Time threshold);
142 142
143 private: 143 private:
144 friend class InMemoryURLIndexTest;
144 FRIEND_TEST_ALL_PREFIXES(IconMappingMigrationTest, TestIconMappingMigration); 145 FRIEND_TEST_ALL_PREFIXES(IconMappingMigrationTest, TestIconMappingMigration);
145 146
146 // Overridden from URLDatabase: 147 // Overridden from URLDatabase:
147 virtual sql::Connection& GetDB() OVERRIDE; 148 virtual sql::Connection& GetDB() OVERRIDE;
148 149
149 // Migration ----------------------------------------------------------------- 150 // Migration -----------------------------------------------------------------
150 151
151 // Makes sure the version is up-to-date, updating if necessary. If the 152 // Makes sure the version is up-to-date, updating if necessary. If the
152 // database is too old to migrate, the user will be notified. In this case, or 153 // database is too old to migrate, the user will be notified. In this case, or
153 // for other errors, false will be returned. True means it is up-to-date and 154 // for other errors, false will be returned. True means it is up-to-date and
(...skipping 18 matching lines...) Expand all
172 173
173 // See the getters above. 174 // See the getters above.
174 bool needs_version_17_migration_; 175 bool needs_version_17_migration_;
175 176
176 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase); 177 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase);
177 }; 178 };
178 179
179 } // namespace history 180 } // namespace history
180 181
181 #endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ 182 #endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_backend.cc ('k') | chrome/browser/history/history_notifications.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698