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

Side by Side Diff: components/history/core/browser/url_database.h

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_HISTORY_CORE_BROWSER_URL_DATABASE_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_URL_DATABASE_H_
6 #define COMPONENTS_HISTORY_CORE_BROWSER_URL_DATABASE_H_ 6 #define COMPONENTS_HISTORY_CORE_BROWSER_URL_DATABASE_H_
7 7
8 #include "base/basictypes.h" 8 #include <stddef.h>
9
10 #include "base/macros.h"
9 #include "components/history/core/browser/keyword_id.h" 11 #include "components/history/core/browser/keyword_id.h"
10 #include "components/history/core/browser/url_row.h" 12 #include "components/history/core/browser/url_row.h"
11 #include "components/query_parser/query_parser.h" 13 #include "components/query_parser/query_parser.h"
12 #include "sql/statement.h" 14 #include "sql/statement.h"
13 15
14 class GURL; 16 class GURL;
15 17
16 namespace sql { 18 namespace sql {
17 class Connection; 19 class Connection;
18 } 20 }
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 // is_null() then this function determines a new time threshold each time it is 319 // is_null() then this function determines a new time threshold each time it is
318 // called. Since getting system time can be costly (such as for cases where 320 // called. Since getting system time can be costly (such as for cases where
319 // this function will be called in a loop over many history items), you can 321 // this function will be called in a loop over many history items), you can
320 // provide a non-null |time_cache| by simply initializing |time_cache| with 322 // provide a non-null |time_cache| by simply initializing |time_cache| with
321 // AutocompleteAgeThreshold() (or any other desired time in the past). 323 // AutocompleteAgeThreshold() (or any other desired time in the past).
322 bool RowQualifiesAsSignificant(const URLRow& row, const base::Time& threshold); 324 bool RowQualifiesAsSignificant(const URLRow& row, const base::Time& threshold);
323 325
324 } // namespace history 326 } // namespace history
325 327
326 #endif // COMPONENTS_HISTORY_CORE_BROWSER_URL_DATABASE_H_ 328 #endif // COMPONENTS_HISTORY_CORE_BROWSER_URL_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698