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

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

Issue 2338703003: [NTP] Fix article suggestion clicks contributing to Most Visited tiles (Closed)
Patch Set: Add test coverage to HistoryBackend. Created 4 years, 3 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_HISTORY_TYPES_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_TYPES_H_
6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_TYPES_H_ 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_TYPES_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 GURL url; 325 GURL url;
326 base::string16 title; 326 base::string16 title;
327 327
328 // If this is a URL for which we want to force a thumbnail, records the last 328 // If this is a URL for which we want to force a thumbnail, records the last
329 // time it was forced so we can evict it when more recent URLs are requested. 329 // time it was forced so we can evict it when more recent URLs are requested.
330 // If it's not a forced thumbnail, keep a time of 0. 330 // If it's not a forced thumbnail, keep a time of 0.
331 base::Time last_forced_time; 331 base::Time last_forced_time;
332 332
333 RedirectList redirects; 333 RedirectList redirects;
334 334
335 bool operator==(const MostVisitedURL& other) { 335 bool operator==(const MostVisitedURL& other) const {
336 return url == other.url; 336 return url == other.url;
337 } 337 }
338 }; 338 };
339 339
340 // FilteredURL ----------------------------------------------------------------- 340 // FilteredURL -----------------------------------------------------------------
341 341
342 // Holds the per-URL information of the filterd url query. 342 // Holds the per-URL information of the filterd url query.
343 struct FilteredURL { 343 struct FilteredURL {
344 struct ExtendedInfo { 344 struct ExtendedInfo {
345 ExtendedInfo(); 345 ExtendedInfo();
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 void SetTimeRangeForOneDay(base::Time time); 548 void SetTimeRangeForOneDay(base::Time time);
549 549
550 std::set<GURL> urls; 550 std::set<GURL> urls;
551 base::Time begin_time; 551 base::Time begin_time;
552 base::Time end_time; 552 base::Time end_time;
553 }; 553 };
554 554
555 } // namespace history 555 } // namespace history
556 556
557 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_TYPES_H_ 557 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_TYPES_H_
OLDNEW
« no previous file with comments | « components/history/core/browser/history_backend_unittest.cc ('k') | components/sessions/core/serialized_navigation_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698