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_SYNC_SESSIONS_SESSIONS_SYNC_MANAGER_H_ | 5 #ifndef COMPONENTS_SYNC_SESSIONS_SESSIONS_SYNC_MANAGER_H_ |
6 #define COMPONENTS_SYNC_SESSIONS_SESSIONS_SYNC_MANAGER_H_ | 6 #define COMPONENTS_SYNC_SESSIONS_SESSIONS_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // OpenTabsUIDelegate implementation. | 83 // OpenTabsUIDelegate implementation. |
84 bool GetSyncedFaviconForPageURL( | 84 bool GetSyncedFaviconForPageURL( |
85 const std::string& pageurl, | 85 const std::string& pageurl, |
86 scoped_refptr<base::RefCountedMemory>* favicon_png) const override; | 86 scoped_refptr<base::RefCountedMemory>* favicon_png) const override; |
87 bool GetAllForeignSessions( | 87 bool GetAllForeignSessions( |
88 std::vector<const SyncedSession*>* sessions) override; | 88 std::vector<const SyncedSession*>* sessions) override; |
89 bool GetForeignSession( | 89 bool GetForeignSession( |
90 const std::string& tag, | 90 const std::string& tag, |
91 std::vector<const sessions::SessionWindow*>* windows) override; | 91 std::vector<const sessions::SessionWindow*>* windows) override; |
92 bool GetForeignTab(const std::string& tag, | 92 bool GetForeignTab(const std::string& tag, |
93 const SessionID::id_type tab_id, | 93 SessionID::id_type tab_id, |
94 const sessions::SessionTab** tab) override; | 94 const sessions::SessionTab** tab) override; |
95 bool GetForeignSessionTabs( | 95 bool GetForeignSessionTabs( |
96 const std::string& tag, | 96 const std::string& tag, |
97 std::vector<const sessions::SessionTab*>* tabs) override; | 97 std::vector<const sessions::SessionTab*>* tabs) override; |
98 void DeleteForeignSession(const std::string& tag) override; | 98 void DeleteForeignSession(const std::string& tag) override; |
99 bool GetLocalSession(const SyncedSession** local_session) override; | 99 bool GetLocalSession(const SyncedSession** local_session) override; |
100 | 100 |
101 // LocalSessionEventHandler implementation. | 101 // LocalSessionEventHandler implementation. |
102 void OnLocalTabModified(SyncedTabDelegate* modified_tab) override; | 102 void OnLocalTabModified(SyncedTabDelegate* modified_tab) override; |
103 void OnFaviconsChanged(const std::set<GURL>& page_urls, | 103 void OnFaviconsChanged(const std::set<GURL>& page_urls, |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 | 377 |
378 // Callback to inform sync that a sync data refresh is requested. | 378 // Callback to inform sync that a sync data refresh is requested. |
379 base::Closure datatype_refresh_callback_; | 379 base::Closure datatype_refresh_callback_; |
380 | 380 |
381 DISALLOW_COPY_AND_ASSIGN(SessionsSyncManager); | 381 DISALLOW_COPY_AND_ASSIGN(SessionsSyncManager); |
382 }; | 382 }; |
383 | 383 |
384 } // namespace sync_sessions | 384 } // namespace sync_sessions |
385 | 385 |
386 #endif // COMPONENTS_SYNC_SESSIONS_SESSIONS_SYNC_MANAGER_H_ | 386 #endif // COMPONENTS_SYNC_SESSIONS_SESSIONS_SYNC_MANAGER_H_ |
OLD | NEW |