OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_MEDIA_TAB_DESKTOP_MEDIA_LIST_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_TAB_DESKTOP_MEDIA_LIST_H_ |
6 #define CHROME_BROWSER_MEDIA_TAB_DESKTOP_MEDIA_LIST_H_ | 6 #define CHROME_BROWSER_MEDIA_TAB_DESKTOP_MEDIA_LIST_H_ |
7 | 7 |
8 #include "chrome/browser/media/desktop_media_list_base.h" | 8 #include "chrome/browser/media/desktop_media_list_base.h" |
9 | 9 |
10 // Implementation of DesktopMediaList that shows tab/WebContents. | 10 // Implementation of DesktopMediaList that shows tab/WebContents. |
11 class TabDesktopMediaList : public DesktopMediaListBase { | 11 class TabDesktopMediaList : public DesktopMediaListBase { |
12 public: | 12 public: |
13 TabDesktopMediaList(); | 13 TabDesktopMediaList(); |
14 ~TabDesktopMediaList() override; | 14 ~TabDesktopMediaList() override; |
15 | 15 |
16 private: | 16 private: |
17 typedef std::map<content::DesktopMediaID, uint32_t> ImageHashesMap; | 17 typedef std::map<DesktopMediaID, uint32_t> ImageHashesMap; |
18 | 18 |
19 void Refresh() override; | 19 void Refresh() override; |
20 | 20 |
21 ImageHashesMap favicon_hashes_; | 21 ImageHashesMap favicon_hashes_; |
22 | 22 |
23 // Task runner used for the |worker_|. | 23 // Task runner used for the |worker_|. |
24 scoped_refptr<base::SequencedTaskRunner> thumbnail_task_runner_; | 24 scoped_refptr<base::SequencedTaskRunner> thumbnail_task_runner_; |
25 | 25 |
26 base::WeakPtrFactory<TabDesktopMediaList> weak_factory_; | 26 base::WeakPtrFactory<TabDesktopMediaList> weak_factory_; |
27 | 27 |
28 DISALLOW_COPY_AND_ASSIGN(TabDesktopMediaList); | 28 DISALLOW_COPY_AND_ASSIGN(TabDesktopMediaList); |
29 }; | 29 }; |
30 | 30 |
31 #endif // CHROME_BROWSER_MEDIA_TAB_DESKTOP_MEDIA_LIST_H_ | 31 #endif // CHROME_BROWSER_MEDIA_TAB_DESKTOP_MEDIA_LIST_H_ |
OLD | NEW |