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

Side by Side Diff: components/sessions/core/session_service_commands.cc

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, 2 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 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
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
OLDNEW
« no previous file with comments | « components/sessions/core/session_service_commands.h ('k') | components/sessions/core/session_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698