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

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

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, 3 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 #ifndef COMPONENTS_SESSIONS_SESSION_SERVICE_COMMANDS_H_ 5 #ifndef COMPONENTS_SESSIONS_CORE_SESSION_SERVICE_COMMANDS_H_
6 #define COMPONENTS_SESSIONS_SESSION_SERVICE_COMMANDS_H_ 6 #define COMPONENTS_SESSIONS_CORE_SESSION_SERVICE_COMMANDS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/task/cancelable_task_tracker.h" 15 #include "base/task/cancelable_task_tracker.h"
16 #include "components/sessions/base_session_service.h" 16 #include "components/sessions/core/base_session_service.h"
17 #include "components/sessions/session_types.h" 17 #include "components/sessions/core/session_types.h"
18 #include "components/sessions/sessions_export.h" 18 #include "components/sessions/core/sessions_export.h"
19 #include "ui/base/ui_base_types.h" 19 #include "ui/base/ui_base_types.h"
20 20
21 namespace sessions { 21 namespace sessions {
22 22
23 class SessionCommand; 23 class SessionCommand;
24 24
25 // The following functions create sequentialized change commands which are 25 // The following functions create sequentialized change commands which are
26 // used to reconstruct the current/previous session state. 26 // used to reconstruct the current/previous session state.
27 // It is up to the caller to delete the returned SessionCommand* object. 27 // It is up to the caller to delete the returned SessionCommand* object.
28 SESSIONS_EXPORT scoped_ptr<SessionCommand> CreateSetSelectedTabInWindowCommand( 28 SESSIONS_EXPORT scoped_ptr<SessionCommand> CreateSetSelectedTabInWindowCommand(
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // the windows added to valid_windows. |active_window_id| will be set with the 98 // the windows added to valid_windows. |active_window_id| will be set with the
99 // id of the last active window, but it's only valid when this id corresponds 99 // id of the last active window, but it's only valid when this id corresponds
100 // to the id of one of the windows in valid_windows. 100 // to the id of one of the windows in valid_windows.
101 SESSIONS_EXPORT void RestoreSessionFromCommands( 101 SESSIONS_EXPORT void RestoreSessionFromCommands(
102 const ScopedVector<SessionCommand>& commands, 102 const ScopedVector<SessionCommand>& commands,
103 std::vector<SessionWindow*>* valid_windows, 103 std::vector<SessionWindow*>* valid_windows,
104 SessionID::id_type* active_window_id); 104 SessionID::id_type* active_window_id);
105 105
106 } // namespace sessions 106 } // namespace sessions
107 107
108 #endif // COMPONENTS_SESSIONS_SESSION_SERVICE_COMMANDS_H_ 108 #endif // COMPONENTS_SESSIONS_CORE_SESSION_SERVICE_COMMANDS_H_
OLDNEW
« no previous file with comments | « components/sessions/core/session_id.cc ('k') | components/sessions/core/session_service_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698