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

Side by Side Diff: components/sync_driver/revisit/offset_tab_matcher.h

Issue 1361613002: Move all core files in //components/sessions into core/ subdir (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SYNC_DRIVER_OFFSET_TAB_MATCHER_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_OFFSET_TAB_MATCHER_H_
6 #define COMPONENTS_SYNC_DRIVER_OFFSET_TAB_MATCHER_H_ 6 #define COMPONENTS_SYNC_DRIVER_OFFSET_TAB_MATCHER_H_
7 7
8 #include "components/sessions/session_types.h" 8 #include "components/sessions/core/session_types.h"
9 #include "components/sync_driver/revisit/page_equality.h" 9 #include "components/sync_driver/revisit/page_equality.h"
10 #include "components/sync_driver/revisit/page_visit_observer.h" 10 #include "components/sync_driver/revisit/page_visit_observer.h"
11 11
12 namespace sync_driver { 12 namespace sync_driver {
13 13
14 // This class looks for tabs that have matching pages that are not the current 14 // This class looks for tabs that have matching pages that are not the current
15 // navigation entry. This corresponds to the pages you would arrive at if you 15 // navigation entry. This corresponds to the pages you would arrive at if you
16 // pressed the forward/backwards buttons. The goal is to emit metrics for the 16 // pressed the forward/backwards buttons. The goal is to emit metrics for the
17 // most recent/current entry. So to break ties of multiple entries that match, 17 // most recent/current entry. So to break ties of multiple entries that match,
18 // first the timestamp on the tab is used, followed by the index of the entry. 18 // first the timestamp on the tab is used, followed by the index of the entry.
(...skipping 12 matching lines...) Expand all
31 const sessions::SessionTab* best_tab_ = nullptr; 31 const sessions::SessionTab* best_tab_ = nullptr;
32 // Invalid while best_tab_ is nullptr. 32 // Invalid while best_tab_ is nullptr.
33 int best_offset_ = 0; 33 int best_offset_ = 0;
34 34
35 DISALLOW_COPY_AND_ASSIGN(OffsetTabMatcher); 35 DISALLOW_COPY_AND_ASSIGN(OffsetTabMatcher);
36 }; 36 };
37 37
38 } // namespace sync_driver 38 } // namespace sync_driver
39 39
40 #endif // COMPONENTS_SYNC_DRIVER_OFFSET_TAB_MATCHER_H_ 40 #endif // COMPONENTS_SYNC_DRIVER_OFFSET_TAB_MATCHER_H_
OLDNEW
« no previous file with comments | « components/sync_driver/revisit/current_tab_matcher_unittest.cc ('k') | components/sync_driver/revisit/offset_tab_matcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698