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

Side by Side Diff: media/video/capture/win/pin_base_win.cc

Issue 410833002: media/win: Make TypeEnumerator FINAL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698