| 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 #ifndef CHROME_BROWSER_MEDIA_NATIVE_DESKTOP_MEDIA_LIST_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_NATIVE_DESKTOP_MEDIA_LIST_H_ |
| 6 #define CHROME_BROWSER_MEDIA_NATIVE_DESKTOP_MEDIA_LIST_H_ | 6 #define CHROME_BROWSER_MEDIA_NATIVE_DESKTOP_MEDIA_LIST_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/sequenced_task_runner.h" | 10 #include "base/sequenced_task_runner.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 #if defined(USE_AURA) | 59 #if defined(USE_AURA) |
| 60 // previous_aura_thumbnail_hashes_ holds thumbanil hash values of aura windows | 60 // previous_aura_thumbnail_hashes_ holds thumbanil hash values of aura windows |
| 61 // in the previous refresh. While new_aura_thumbnail_hashes_ has hash values | 61 // in the previous refresh. While new_aura_thumbnail_hashes_ has hash values |
| 62 // of the ongoing refresh. Those two maps are used to detect new thumbnails | 62 // of the ongoing refresh. Those two maps are used to detect new thumbnails |
| 63 // and changed thumbnails from the previous refresh. | 63 // and changed thumbnails from the previous refresh. |
| 64 ImageHashesMap previous_aura_thumbnail_hashes_; | 64 ImageHashesMap previous_aura_thumbnail_hashes_; |
| 65 ImageHashesMap new_aura_thumbnail_hashes_; | 65 ImageHashesMap new_aura_thumbnail_hashes_; |
| 66 | 66 |
| 67 int pending_aura_capture_requests_ = 0; | 67 int pending_aura_capture_requests_ = 0; |
| 68 bool pending_native_thumbnail_capture_ = true; | 68 bool pending_native_thumbnail_capture_ = false; |
| 69 #endif | 69 #endif |
| 70 | |
| 71 base::WeakPtrFactory<NativeDesktopMediaList> weak_factory_; | 70 base::WeakPtrFactory<NativeDesktopMediaList> weak_factory_; |
| 72 | 71 |
| 73 DISALLOW_COPY_AND_ASSIGN(NativeDesktopMediaList); | 72 DISALLOW_COPY_AND_ASSIGN(NativeDesktopMediaList); |
| 74 }; | 73 }; |
| 75 | 74 |
| 76 #endif // CHROME_BROWSER_MEDIA_NATIVE_DESKTOP_MEDIA_LIST_H_ | 75 #endif // CHROME_BROWSER_MEDIA_NATIVE_DESKTOP_MEDIA_LIST_H_ |
| OLD | NEW |