| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SYNC_SESSIONS_OPEN_TABS_UI_DELEGATE_H_ | 5 #ifndef COMPONENTS_SYNC_SESSIONS_OPEN_TABS_UI_DELEGATE_H_ |
| 6 #define COMPONENTS_SYNC_SESSIONS_OPEN_TABS_UI_DELEGATE_H_ | 6 #define COMPONENTS_SYNC_SESSIONS_OPEN_TABS_UI_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // Builds a list of all foreign sessions, ordered from most recent to least | 27 // Builds a list of all foreign sessions, ordered from most recent to least |
| 28 // recent. Caller does NOT own SyncedSession objects. | 28 // recent. Caller does NOT own SyncedSession objects. |
| 29 // Returns true if foreign sessions were found, false otherwise. | 29 // Returns true if foreign sessions were found, false otherwise. |
| 30 virtual bool GetAllForeignSessions( | 30 virtual bool GetAllForeignSessions( |
| 31 std::vector<const SyncedSession*>* sessions) = 0; | 31 std::vector<const SyncedSession*>* sessions) = 0; |
| 32 | 32 |
| 33 // Looks up the foreign tab identified by |tab_id| and belonging to foreign | 33 // Looks up the foreign tab identified by |tab_id| and belonging to foreign |
| 34 // session |tag|. Caller does NOT own the SessionTab object. | 34 // session |tag|. Caller does NOT own the SessionTab object. |
| 35 // Returns true if the foreign session and tab were found, false otherwise. | 35 // Returns true if the foreign session and tab were found, false otherwise. |
| 36 virtual bool GetForeignTab(const std::string& tag, | 36 virtual bool GetForeignTab(const std::string& tag, |
| 37 const SessionID::id_type tab_id, | 37 SessionID::id_type tab_id, |
| 38 const sessions::SessionTab** tab) = 0; | 38 const sessions::SessionTab** tab) = 0; |
| 39 | 39 |
| 40 // Delete a foreign session and all its sync data. | 40 // Delete a foreign session and all its sync data. |
| 41 virtual void DeleteForeignSession(const std::string& tag) = 0; | 41 virtual void DeleteForeignSession(const std::string& tag) = 0; |
| 42 | 42 |
| 43 // Loads all windows for foreign session with session tag |tag|. Caller does | 43 // Loads all windows for foreign session with session tag |tag|. Caller does |
| 44 // NOT own SessionWindow objects. | 44 // NOT own SessionWindow objects. |
| 45 // Returns true if the foreign session was found, false otherwise. | 45 // Returns true if the foreign session was found, false otherwise. |
| 46 virtual bool GetForeignSession( | 46 virtual bool GetForeignSession( |
| 47 const std::string& tag, | 47 const std::string& tag, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 60 // local machine. | 60 // local machine. |
| 61 virtual bool GetLocalSession(const SyncedSession** local) = 0; | 61 virtual bool GetLocalSession(const SyncedSession** local) = 0; |
| 62 | 62 |
| 63 protected: | 63 protected: |
| 64 virtual ~OpenTabsUIDelegate(); | 64 virtual ~OpenTabsUIDelegate(); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace sync_sessions | 67 } // namespace sync_sessions |
| 68 | 68 |
| 69 #endif // COMPONENTS_SYNC_SESSIONS_OPEN_TABS_UI_DELEGATE_H_ | 69 #endif // COMPONENTS_SYNC_SESSIONS_OPEN_TABS_UI_DELEGATE_H_ |
| OLD | NEW |