| OLD | NEW |
| 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_SESSIONS_REVISIT_OFFSET_TAB_MATCHER_H_ | 5 #ifndef COMPONENTS_SYNC_SESSIONS_REVISIT_OFFSET_TAB_MATCHER_H_ |
| 6 #define COMPONENTS_SYNC_SESSIONS_REVISIT_OFFSET_TAB_MATCHER_H_ | 6 #define COMPONENTS_SYNC_SESSIONS_REVISIT_OFFSET_TAB_MATCHER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "components/sync_sessions/revisit/page_equality.h" | 9 #include "components/sync_sessions/revisit/page_equality.h" |
| 9 #include "components/sync_sessions/revisit/page_visit_observer.h" | 10 #include "components/sync_sessions/revisit/page_visit_observer.h" |
| 10 | 11 |
| 11 namespace sessions { | 12 namespace sessions { |
| 12 struct SessionTab; | 13 struct SessionTab; |
| 13 }; // namespace sessions | 14 }; // namespace sessions |
| 14 | 15 |
| 15 namespace sync_sessions { | 16 namespace sync_sessions { |
| 16 | 17 |
| 17 // This class looks for tabs that have matching pages that are not the current | 18 // This class looks for tabs that have matching pages that are not the current |
| (...skipping 16 matching lines...) Expand all Loading... |
| 34 const sessions::SessionTab* best_tab_ = nullptr; | 35 const sessions::SessionTab* best_tab_ = nullptr; |
| 35 // Invalid while best_tab_ is nullptr. | 36 // Invalid while best_tab_ is nullptr. |
| 36 int best_offset_ = 0; | 37 int best_offset_ = 0; |
| 37 | 38 |
| 38 DISALLOW_COPY_AND_ASSIGN(OffsetTabMatcher); | 39 DISALLOW_COPY_AND_ASSIGN(OffsetTabMatcher); |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 } // namespace sync_sessions | 42 } // namespace sync_sessions |
| 42 | 43 |
| 43 #endif // COMPONENTS_SYNC_SESSIONS_REVISIT_OFFSET_TAB_MATCHER_H_ | 44 #endif // COMPONENTS_SYNC_SESSIONS_REVISIT_OFFSET_TAB_MATCHER_H_ |
| OLD | NEW |