| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "media/video/capture/win/filter_base_win.h" | 5 #include "media/video/capture/win/filter_base_win.h" |
| 6 | 6 |
| 7 #pragma comment(lib, "strmiids.lib") | 7 #pragma comment(lib, "strmiids.lib") |
| 8 | 8 |
| 9 namespace media { | 9 namespace media { |
| 10 | 10 |
| 11 // Implement IEnumPins. | 11 // Implement IEnumPins. |
| 12 class PinEnumerator FINAL | 12 class PinEnumerator final |
| 13 : public IEnumPins, | 13 : public IEnumPins, |
| 14 public base::RefCounted<PinEnumerator> { | 14 public base::RefCounted<PinEnumerator> { |
| 15 public: | 15 public: |
| 16 explicit PinEnumerator(FilterBase* filter) | 16 explicit PinEnumerator(FilterBase* filter) |
| 17 : filter_(filter), | 17 : filter_(filter), |
| 18 index_(0) { | 18 index_(0) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 ~PinEnumerator() { | 21 ~PinEnumerator() { |
| 22 } | 22 } |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 base::RefCounted<FilterBase>::AddRef(); | 168 base::RefCounted<FilterBase>::AddRef(); |
| 169 return 1; | 169 return 1; |
| 170 } | 170 } |
| 171 | 171 |
| 172 ULONG STDMETHODCALLTYPE FilterBase::Release() { | 172 ULONG STDMETHODCALLTYPE FilterBase::Release() { |
| 173 base::RefCounted<FilterBase>::Release(); | 173 base::RefCounted<FilterBase>::Release(); |
| 174 return 1; | 174 return 1; |
| 175 } | 175 } |
| 176 | 176 |
| 177 } // namespace media | 177 } // namespace media |
| OLD | NEW |