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 #include "components/sync_sessions/revisit/offset_tab_matcher.h" | 5 #include "components/sync_sessions/revisit/offset_tab_matcher.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
10 #include "base/metrics/sparse_histogram.h" | 12 #include "base/metrics/sparse_histogram.h" |
11 #include "components/sessions/core/serialized_navigation_entry.h" | 13 #include "components/sessions/core/serialized_navigation_entry.h" |
12 #include "components/sessions/core/session_types.h" | 14 #include "components/sessions/core/session_types.h" |
13 | 15 |
14 namespace sync_sessions { | 16 namespace sync_sessions { |
15 | 17 |
16 namespace { | 18 namespace { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 transition, | 73 transition, |
72 PageVisitObserver::kTransitionTypeLast); | 74 PageVisitObserver::kTransitionTypeLast); |
73 } | 75 } |
74 } | 76 } |
75 | 77 |
76 int OffsetTabMatcher::Clamp(const int input, const int lower, const int upper) { | 78 int OffsetTabMatcher::Clamp(const int input, const int lower, const int upper) { |
77 return std::max(lower, std::min(upper, input)); | 79 return std::max(lower, std::min(upper, input)); |
78 } | 80 } |
79 | 81 |
80 } // namespace sync_sessions | 82 } // namespace sync_sessions |
OLD | NEW |