OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/session_service_commands.h" | 5 #include "components/sessions/core/session_service_commands.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/pickle.h" | 9 #include "base/pickle.h" |
10 #include "components/sessions/base_session_service_commands.h" | 10 #include "components/sessions/core/base_session_service_commands.h" |
11 #include "components/sessions/base_session_service_delegate.h" | 11 #include "components/sessions/core/base_session_service_delegate.h" |
12 #include "components/sessions/session_command.h" | 12 #include "components/sessions/core/session_command.h" |
13 #include "components/sessions/session_types.h" | 13 #include "components/sessions/core/session_types.h" |
14 | 14 |
15 namespace sessions { | 15 namespace sessions { |
16 | 16 |
17 // Identifier for commands written to file. | 17 // Identifier for commands written to file. |
18 static const SessionCommand::id_type kCommandSetTabWindow = 0; | 18 static const SessionCommand::id_type kCommandSetTabWindow = 0; |
19 // OBSOLETE Superseded by kCommandSetWindowBounds3. | 19 // OBSOLETE Superseded by kCommandSetWindowBounds3. |
20 // static const SessionCommand::id_type kCommandSetWindowBounds = 1; | 20 // static const SessionCommand::id_type kCommandSetWindowBounds = 1; |
21 static const SessionCommand::id_type kCommandSetTabIndexInWindow = 2; | 21 static const SessionCommand::id_type kCommandSetTabIndexInWindow = 2; |
22 static const SessionCommand::id_type | 22 static const SessionCommand::id_type |
23 kCommandTabNavigationPathPrunedFromBack = 5; | 23 kCommandTabNavigationPathPrunedFromBack = 5; |
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 AddTabsToWindows(&tabs, &windows); | 864 AddTabsToWindows(&tabs, &windows); |
865 SortTabsBasedOnVisualOrderAndPrune(&windows, valid_windows); | 865 SortTabsBasedOnVisualOrderAndPrune(&windows, valid_windows); |
866 UpdateSelectedTabIndex(valid_windows); | 866 UpdateSelectedTabIndex(valid_windows); |
867 } | 867 } |
868 STLDeleteValues(&tabs); | 868 STLDeleteValues(&tabs); |
869 // Don't delete contents of windows, that is done by the caller as all | 869 // Don't delete contents of windows, that is done by the caller as all |
870 // valid windows are added to valid_windows. | 870 // valid windows are added to valid_windows. |
871 } | 871 } |
872 | 872 |
873 } // namespace sessions | 873 } // namespace sessions |
OLD | NEW |