| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/pin_base_win.h" | 5 #include "media/video/capture/win/pin_base_win.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace media { | 9 namespace media { |
| 10 | 10 |
| 11 // Implement IEnumPins. | 11 // Implement IEnumPins. |
| 12 class TypeEnumerator FINAL | 12 class TypeEnumerator final |
| 13 : public IEnumMediaTypes, | 13 : public IEnumMediaTypes, |
| 14 public base::RefCounted<TypeEnumerator> { | 14 public base::RefCounted<TypeEnumerator> { |
| 15 public: | 15 public: |
| 16 explicit TypeEnumerator(PinBase* pin) | 16 explicit TypeEnumerator(PinBase* pin) |
| 17 : pin_(pin), | 17 : pin_(pin), |
| 18 index_(0) { | 18 index_(0) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 ~TypeEnumerator() { | 21 ~TypeEnumerator() { |
| 22 } | 22 } |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 base::RefCounted<PinBase>::AddRef(); | 281 base::RefCounted<PinBase>::AddRef(); |
| 282 return 1; | 282 return 1; |
| 283 } | 283 } |
| 284 | 284 |
| 285 STDMETHODIMP_(ULONG) PinBase::Release() { | 285 STDMETHODIMP_(ULONG) PinBase::Release() { |
| 286 base::RefCounted<PinBase>::Release(); | 286 base::RefCounted<PinBase>::Release(); |
| 287 return 1; | 287 return 1; |
| 288 } | 288 } |
| 289 | 289 |
| 290 } // namespace media | 290 } // namespace media |
| OLD | NEW |