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_DRIVER_OPEN_TABS_UI_DELEGATE_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_OPEN_TABS_UI_DELEGATE_H_ |
6 #define COMPONENTS_SYNC_DRIVER_OPEN_TABS_UI_DELEGATE_H_ | 6 #define COMPONENTS_SYNC_DRIVER_OPEN_TABS_UI_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/ref_counted_memory.h" | 13 #include "base/memory/ref_counted_memory.h" |
14 #include "components/sessions/session_id.h" | 14 #include "components/sessions/core/session_id.h" |
15 #include "components/sessions/session_types.h" | 15 #include "components/sessions/core/session_types.h" |
16 #include "components/sync_driver/glue/synced_session.h" | 16 #include "components/sync_driver/glue/synced_session.h" |
17 | 17 |
18 namespace sync_driver { | 18 namespace sync_driver { |
19 | 19 |
20 class OpenTabsUIDelegate { | 20 class OpenTabsUIDelegate { |
21 public: | 21 public: |
22 // If a valid favicon for the page at |url| is found, fills |favicon_png| with | 22 // If a valid favicon for the page at |url| is found, fills |favicon_png| with |
23 // the png-encoded image and returns true. Else, returns false. | 23 // the png-encoded image and returns true. Else, returns false. |
24 virtual bool GetSyncedFaviconForPageURL( | 24 virtual bool GetSyncedFaviconForPageURL( |
25 const std::string& pageurl, | 25 const std::string& pageurl, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // local machine. | 61 // local machine. |
62 virtual bool GetLocalSession(const SyncedSession** local) = 0; | 62 virtual bool GetLocalSession(const SyncedSession** local) = 0; |
63 | 63 |
64 protected: | 64 protected: |
65 virtual ~OpenTabsUIDelegate(); | 65 virtual ~OpenTabsUIDelegate(); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace sync_driver | 68 } // namespace sync_driver |
69 | 69 |
70 #endif // COMPONENTS_SYNC_DRIVER_OPEN_TABS_UI_DELEGATE_H_ | 70 #endif // COMPONENTS_SYNC_DRIVER_OPEN_TABS_UI_DELEGATE_H_ |
OLD | NEW |