blob: e238123bcff6dc65181da5339c392999b6cf159a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_MEDIA_TAB_DESKTOP_MEDIA_LIST_H_
#define CHROME_BROWSER_MEDIA_TAB_DESKTOP_MEDIA_LIST_H_
#include "chrome/browser/media/desktop_media_list_base.h"
// Implementation of DesktopMediaList that shows tab/WebContents.
class TabDesktopMediaList : public DesktopMediaListBase {
public:
TabDesktopMediaList();
~TabDesktopMediaList() override;
private:
typedef std::map<content::DesktopMediaID, uint32_t> ImageHashesMap;
void Refresh() override;
ImageHashesMap favicon_hashes_;
// Task runner used for the |worker_|.
scoped_refptr<base::SequencedTaskRunner> thumbnail_task_runner_;
base::WeakPtrFactory<TabDesktopMediaList> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(TabDesktopMediaList);
};
#endif // CHROME_BROWSER_MEDIA_TAB_DESKTOP_MEDIA_LIST_H_
|