Chromium Code Reviews| 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 #ifndef COMPONENTS_SESSIONS_BASE_SESSION_SERVICE_COMMANDS_H_ | 5 #ifndef COMPONENTS_SESSIONS_BASE_SESSION_SERVICE_COMMANDS_H_ |
| 6 #define COMPONENTS_SESSIONS_BASE_SESSION_SERVICE_COMMANDS_H_ | 6 #define COMPONENTS_SESSIONS_BASE_SESSION_SERVICE_COMMANDS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 36 SessionID::id_type command_id, | 36 SessionID::id_type command_id, |
| 37 SessionID::id_type tab_id, | 37 SessionID::id_type tab_id, |
| 38 const std::string& user_agent_override); | 38 const std::string& user_agent_override); |
| 39 | 39 |
| 40 // Creates a SessionCommand stores a browser window's app name. | 40 // Creates a SessionCommand stores a browser window's app name. |
| 41 SESSIONS_EXPORT scoped_ptr<SessionCommand> CreateSetWindowAppNameCommand( | 41 SESSIONS_EXPORT scoped_ptr<SessionCommand> CreateSetWindowAppNameCommand( |
| 42 SessionID::id_type command_id, | 42 SessionID::id_type command_id, |
| 43 SessionID::id_type window_id, | 43 SessionID::id_type window_id, |
| 44 const std::string& app_name); | 44 const std::string& app_name); |
| 45 | 45 |
| 46 // Creates a SessionCommand stores the last time the tab was activated. | |
| 47 SESSIONS_EXPORT scoped_ptr<SessionCommand> CreateLastActiveTimeCommand( | |
|
sky
2015/05/12 21:25:30
Is this used?
Georges Khalil
2015/05/15 16:55:30
Not anymore, removed.
| |
| 48 SessionID::id_type command_id, | |
| 49 SessionID::id_type window_id, | |
| 50 const std::string& app_name); | |
| 51 | |
| 46 // Converts a SessionCommand previously created by | 52 // Converts a SessionCommand previously created by |
| 47 // CreateUpdateTabNavigationCommand into a | 53 // CreateUpdateTabNavigationCommand into a |
| 48 // sessions::SerializedNavigationEntry. Returns true on success. If | 54 // sessions::SerializedNavigationEntry. Returns true on success. If |
| 49 // successful |tab_id| is set to the id of the restored tab. | 55 // successful |tab_id| is set to the id of the restored tab. |
| 50 SESSIONS_EXPORT bool RestoreUpdateTabNavigationCommand( | 56 SESSIONS_EXPORT bool RestoreUpdateTabNavigationCommand( |
| 51 const SessionCommand& command, | 57 const SessionCommand& command, |
| 52 sessions::SerializedNavigationEntry* navigation, | 58 sessions::SerializedNavigationEntry* navigation, |
| 53 SessionID::id_type* tab_id); | 59 SessionID::id_type* tab_id); |
| 54 | 60 |
| 55 // Extracts a SessionCommand as previously created by | 61 // Extracts a SessionCommand as previously created by |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 70 // Extracts a SessionCommand as previously created by | 76 // Extracts a SessionCommand as previously created by |
| 71 // CreateSetWindowAppNameCommand into the window id and application name. | 77 // CreateSetWindowAppNameCommand into the window id and application name. |
| 72 SESSIONS_EXPORT bool RestoreSetWindowAppNameCommand( | 78 SESSIONS_EXPORT bool RestoreSetWindowAppNameCommand( |
| 73 const SessionCommand& command, | 79 const SessionCommand& command, |
| 74 SessionID::id_type* window_id, | 80 SessionID::id_type* window_id, |
| 75 std::string* app_name); | 81 std::string* app_name); |
| 76 | 82 |
| 77 } // namespace sessions | 83 } // namespace sessions |
| 78 | 84 |
| 79 #endif // COMPONENTS_SESSIONS_BASE_SESSION_SERVICE_COMMANDS_H_ | 85 #endif // COMPONENTS_SESSIONS_BASE_SESSION_SERVICE_COMMANDS_H_ |
| OLD | NEW |