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

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

Issue 2338133006: [NTP] Fix article suggestion clicks contributing to Most Visited tiles (Closed)
Patch Set: 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 (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 COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_
6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 646
647 // Segments ------------------------------------------------------------------ 647 // Segments ------------------------------------------------------------------
648 648
649 // Walks back a segment chain to find the last visit with a non null segment 649 // Walks back a segment chain to find the last visit with a non null segment
650 // id and returns it. If there is none found, returns 0. 650 // id and returns it. If there is none found, returns 0.
651 SegmentID GetLastSegmentID(VisitID from_visit); 651 SegmentID GetLastSegmentID(VisitID from_visit);
652 652
653 // Update the segment information. This is called internally when a page is 653 // Update the segment information. This is called internally when a page is
654 // added. Return the segment id of the segment that has been updated. 654 // added. Return the segment id of the segment that has been updated.
655 SegmentID UpdateSegments(const GURL& url, 655 SegmentID UpdateSegments(const GURL& url,
656 const GURL& referrer,
656 VisitID from_visit, 657 VisitID from_visit,
657 VisitID visit_id, 658 VisitID visit_id,
658 ui::PageTransition transition_type, 659 ui::PageTransition transition_type,
659 const base::Time ts); 660 const base::Time ts);
660 661
661 // Favicons ------------------------------------------------------------------ 662 // Favicons ------------------------------------------------------------------
662 663
663 // Used by both UpdateFaviconMappingsAndFetch and GetFavicons. 664 // Used by both UpdateFaviconMappingsAndFetch and GetFavicons.
664 // If |page_url| is non-null, the icon urls for |page_url| (and all 665 // If |page_url| is non-null, the icon urls for |page_url| (and all
665 // redirects) are set to the subset of |icon_urls| for which icons are 666 // redirects) are set to the subset of |icon_urls| for which icons are
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 893
893 // List of observers 894 // List of observers
894 base::ObserverList<HistoryBackendObserver> observers_; 895 base::ObserverList<HistoryBackendObserver> observers_;
895 896
896 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 897 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
897 }; 898 };
898 899
899 } // namespace history 900 } // namespace history
900 901
901 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ 902 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698