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 CHROME_BROWSER_SYNC_OPEN_TABS_UI_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_OPEN_TABS_UI_DELEGATE_H_ |
6 #define CHROME_BROWSER_SYNC_OPEN_TABS_UI_DELEGATE_H_ | 6 #define CHROME_BROWSER_SYNC_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 "chrome/browser/sessions/session_id.h" | |
15 #include "chrome/browser/sessions/session_types.h" | 14 #include "chrome/browser/sessions/session_types.h" |
16 #include "chrome/browser/sync/glue/synced_session.h" | 15 #include "chrome/browser/sync/glue/synced_session.h" |
| 16 #include "components/sessions/session_id.h" |
17 | 17 |
18 namespace browser_sync { | 18 namespace browser_sync { |
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, |
26 scoped_refptr<base::RefCountedMemory>* favicon_png) const = 0; | 26 scoped_refptr<base::RefCountedMemory>* favicon_png) const = 0; |
(...skipping 25 matching lines...) Expand all Loading... |
52 // local machine. | 52 // local machine. |
53 virtual bool GetLocalSession(const SyncedSession** local) = 0; | 53 virtual bool GetLocalSession(const SyncedSession** local) = 0; |
54 | 54 |
55 protected: | 55 protected: |
56 virtual ~OpenTabsUIDelegate(); | 56 virtual ~OpenTabsUIDelegate(); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace browser_sync | 59 } // namespace browser_sync |
60 | 60 |
61 #endif // CHROME_BROWSER_SYNC_OPEN_TABS_UI_DELEGATE_H_ | 61 #endif // CHROME_BROWSER_SYNC_OPEN_TABS_UI_DELEGATE_H_ |
OLD | NEW |