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

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

Issue 623263003: replace OVERRIDE and FINAL with override and final in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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/video_capture_device_mf_win.h" 5 #include "media/video/capture/win/video_capture_device_mf_win.h"
6 6
7 #include <mfapi.h> 7 #include <mfapi.h>
8 #include <mferror.h> 8 #include <mferror.h>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 type.Release(); 82 type.Release();
83 } 83 }
84 84
85 if (capabilities->empty() && (SUCCEEDED(hr) || hr == MF_E_NO_MORE_TYPES)) 85 if (capabilities->empty() && (SUCCEEDED(hr) || hr == MF_E_NO_MORE_TYPES))
86 hr = HRESULT_FROM_WIN32(ERROR_EMPTY); 86 hr = HRESULT_FROM_WIN32(ERROR_EMPTY);
87 87
88 return (hr == MF_E_NO_MORE_TYPES) ? S_OK : hr; 88 return (hr == MF_E_NO_MORE_TYPES) ? S_OK : hr;
89 } 89 }
90 90
91 91
92 class MFReaderCallback FINAL 92 class MFReaderCallback final
93 : public base::RefCountedThreadSafe<MFReaderCallback>, 93 : public base::RefCountedThreadSafe<MFReaderCallback>,
94 public IMFSourceReaderCallback { 94 public IMFSourceReaderCallback {
95 public: 95 public:
96 MFReaderCallback(VideoCaptureDeviceMFWin* observer) 96 MFReaderCallback(VideoCaptureDeviceMFWin* observer)
97 : observer_(observer), wait_event_(NULL) { 97 : observer_(observer), wait_event_(NULL) {
98 } 98 }
99 99
100 void SetSignalOnFlush(base::WaitableEvent* event) { 100 void SetSignalOnFlush(base::WaitableEvent* event) {
101 wait_event_ = event; 101 wait_event_ = event;
102 } 102 }
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 333
334 void VideoCaptureDeviceMFWin::OnError(HRESULT hr) { 334 void VideoCaptureDeviceMFWin::OnError(HRESULT hr) {
335 if (client_.get()) { 335 if (client_.get()) {
336 client_->OnError( 336 client_->OnError(
337 base::StringPrintf("VideoCaptureDeviceMFWin: %s", 337 base::StringPrintf("VideoCaptureDeviceMFWin: %s",
338 logging::SystemErrorCodeToString(hr).c_str())); 338 logging::SystemErrorCodeToString(hr).c_str()));
339 } 339 }
340 } 340 }
341 341
342 } // namespace media 342 } // namespace media
OLDNEW
« no previous file with comments | « media/video/capture/win/video_capture_device_mf_win.h ('k') | media/video/capture/win/video_capture_device_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698