| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SYNCED_TAB_DELEGATE_H__ | 5 #ifndef COMPONENTS_SYNC_SESSIONS_SYNCED_TAB_DELEGATE_H__ |
| 6 #define COMPONENTS_SYNC_SESSIONS_SYNCED_TAB_DELEGATE_H__ | 6 #define COMPONENTS_SYNC_SESSIONS_SYNCED_TAB_DELEGATE_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "components/sessions/core/serialized_navigation_entry.h" | 11 #include "components/sessions/core/serialized_navigation_entry.h" |
| 12 #include "components/sessions/core/session_id.h" | 12 #include "components/sessions/core/session_id.h" |
| 13 #include "ui/base/page_transition_types.h" | 13 #include "ui/base/page_transition_types.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 class Profile; | |
| 17 | |
| 18 namespace sync_sessions { | 16 namespace sync_sessions { |
| 19 class SyncSessionsClient; | 17 class SyncSessionsClient; |
| 20 } | 18 } |
| 21 | 19 |
| 22 namespace sync_sessions { | 20 namespace sync_sessions { |
| 23 | 21 |
| 24 // A SyncedTabDelegate is used to insulate the sync code from depending | 22 // A SyncedTabDelegate is used to insulate the sync code from depending |
| 25 // directly on WebContents, NavigationController, and the extensions TabHelper. | 23 // directly on WebContents, NavigationController, and the extensions TabHelper. |
| 26 class SyncedTabDelegate { | 24 class SyncedTabDelegate { |
| 27 public: | 25 public: |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // tab should be preserved. | 61 // tab should be preserved. |
| 64 virtual bool IsPlaceholderTab() const = 0; | 62 virtual bool IsPlaceholderTab() const = 0; |
| 65 | 63 |
| 66 protected: | 64 protected: |
| 67 SyncedTabDelegate(); | 65 SyncedTabDelegate(); |
| 68 }; | 66 }; |
| 69 | 67 |
| 70 } // namespace sync_sessions | 68 } // namespace sync_sessions |
| 71 | 69 |
| 72 #endif // COMPONENTS_SYNC_SESSIONS_SYNCED_TAB_DELEGATE_H__ | 70 #endif // COMPONENTS_SYNC_SESSIONS_SYNCED_TAB_DELEGATE_H__ |
| OLD | NEW |