// 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 ImageHashesMap; void Refresh() override; ImageHashesMap favicon_hashes_; // Task runner used for the |worker_|. scoped_refptr thumbnail_task_runner_; base::WeakPtrFactory weak_factory_; DISALLOW_COPY_AND_ASSIGN(TabDesktopMediaList); }; #endif // CHROME_BROWSER_MEDIA_TAB_DESKTOP_MEDIA_LIST_H_