| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/webrtc/desktop_media_list_ash.h" | 5 #include "chrome/browser/media/webrtc/desktop_media_list_ash.h" | 
| 6 | 6 | 
| 7 #include "ash/public/cpp/shell_window_ids.h" | 7 #include "ash/public/cpp/shell_window_ids.h" | 
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" | 
|  | 9 #include "base/threading/sequenced_worker_pool.h" | 
| 9 #include "chrome/grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" | 
| 10 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" | 
| 11 #include "media/base/video_util.h" | 12 #include "media/base/video_util.h" | 
| 12 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" | 
| 13 #include "ui/gfx/image/image.h" | 14 #include "ui/gfx/image/image.h" | 
| 14 #include "ui/snapshot/snapshot.h" | 15 #include "ui/snapshot/snapshot.h" | 
| 15 | 16 | 
| 16 using content::BrowserThread; | 17 using content::BrowserThread; | 
| 17 | 18 | 
| 18 namespace { | 19 namespace { | 
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 133 | 134 | 
| 134   --pending_window_capture_requests_; | 135   --pending_window_capture_requests_; | 
| 135   DCHECK_GE(pending_window_capture_requests_, 0); | 136   DCHECK_GE(pending_window_capture_requests_, 0); | 
| 136 | 137 | 
| 137   if (!pending_window_capture_requests_) { | 138   if (!pending_window_capture_requests_) { | 
| 138     // Once we've finished capturing all windows post a task for the next list | 139     // Once we've finished capturing all windows post a task for the next list | 
| 139     // update. | 140     // update. | 
| 140     ScheduleNextRefresh(); | 141     ScheduleNextRefresh(); | 
| 141   } | 142   } | 
| 142 } | 143 } | 
| OLD | NEW | 
|---|