OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "components/sessions/core/session_types.h" | 5 #include "components/sessions/core/session_types.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include <stddef.h> |
| 8 |
8 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
9 #include "components/sessions/core/session_command.h" | 10 #include "components/sessions/core/session_command.h" |
10 | 11 |
11 namespace sessions { | 12 namespace sessions { |
12 | 13 |
13 //using class SerializedNavigationEntry; | 14 //using class SerializedNavigationEntry; |
14 | 15 |
15 // SessionTab ----------------------------------------------------------------- | 16 // SessionTab ----------------------------------------------------------------- |
16 | 17 |
17 SessionTab::SessionTab() | 18 SessionTab::SessionTab() |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 NOTREACHED() << "Unhandled browser type."; | 92 NOTREACHED() << "Unhandled browser type."; |
92 } | 93 } |
93 | 94 |
94 for (size_t i = 0; i < tabs.size(); i++) | 95 for (size_t i = 0; i < tabs.size(); i++) |
95 sync_data.add_tab(tabs[i]->tab_id.id()); | 96 sync_data.add_tab(tabs[i]->tab_id.id()); |
96 | 97 |
97 return sync_data; | 98 return sync_data; |
98 } | 99 } |
99 | 100 |
100 } // namespace sessions | 101 } // namespace sessions |
OLD | NEW |