Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: chrome/browser/media/webrtc/tab_desktop_media_list.cc

Issue 2307083002: Cleanup: move WebRTC related files from chrome/browser/media to chrome/browser/media/webrtc/ (Closed)
Patch Set: Removed file wrongly resuscitated during rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/media/webrtc/tab_desktop_media_list.h ('k') | chrome/browser/media/webrtc/tab_desktop_media_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698