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 #include "chrome/browser/media/tab_desktop_media_list.h" | 5 #include "chrome/browser/media/webrtc/tab_desktop_media_list.h" |
6 | 6 |
7 #include "base/hash.h" | 7 #include "base/hash.h" |
8 #include "base/threading/sequenced_worker_pool.h" | 8 #include "base/threading/sequenced_worker_pool.h" |
9 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/browser/ui/browser_list.h" | 11 #include "chrome/browser/ui/browser_list.h" |
12 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 12 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
13 #include "components/favicon/content/content_favicon_driver.h" | 13 #include "components/favicon/content/content_favicon_driver.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/render_frame_host.h" | 15 #include "content/public/browser/render_frame_host.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 150 |
151 // ScheduleNextRefresh() needs to be called after all calls for | 151 // ScheduleNextRefresh() needs to be called after all calls for |
152 // UpdateSourceThumbnail() have done. Therefore, a DoNothing task is posted | 152 // UpdateSourceThumbnail() have done. Therefore, a DoNothing task is posted |
153 // to the same sequenced task runner that CreateEnlargedFaviconImag() | 153 // to the same sequenced task runner that CreateEnlargedFaviconImag() |
154 // is posted. | 154 // is posted. |
155 thumbnail_task_runner_.get()->PostTaskAndReply( | 155 thumbnail_task_runner_.get()->PostTaskAndReply( |
156 FROM_HERE, base::Bind(&base::DoNothing), | 156 FROM_HERE, base::Bind(&base::DoNothing), |
157 base::Bind(&TabDesktopMediaList::ScheduleNextRefresh, | 157 base::Bind(&TabDesktopMediaList::ScheduleNextRefresh, |
158 weak_factory_.GetWeakPtr())); | 158 weak_factory_.GetWeakPtr())); |
159 } | 159 } |
OLD | NEW |