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

Side by Side Diff: media/midi/midi_manager_winrt.cc

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 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
« no previous file with comments | « media/midi/midi_manager_win.cc ('k') | media/mojo/clients/mojo_audio_decoder_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/midi/midi_manager_winrt.h" 5 #include "media/midi/midi_manager_winrt.h"
6 6
7 #pragma warning(disable : 4467) 7 #pragma warning(disable : 4467)
8 8
9 #include <initguid.h> // Required by <devpkey.h> 9 #include <initguid.h> // Required by <devpkey.h>
10 10
11 #include <cfgmgr32.h> 11 #include <cfgmgr32.h>
12 #include <comdef.h> 12 #include <comdef.h>
13 #include <devpkey.h> 13 #include <devpkey.h>
14 #include <objbase.h> 14 #include <objbase.h>
15 #include <robuffer.h> 15 #include <robuffer.h>
16 #include <windows.devices.enumeration.h> 16 #include <windows.devices.enumeration.h>
17 #include <windows.devices.midi.h> 17 #include <windows.devices.midi.h>
18 #include <wrl/event.h> 18 #include <wrl/event.h>
19 19
20 #include <iomanip> 20 #include <iomanip>
21 #include <unordered_map> 21 #include <unordered_map>
22 #include <unordered_set> 22 #include <unordered_set>
23 23
24 #include "base/bind.h" 24 #include "base/bind.h"
25 #include "base/scoped_generic.h" 25 #include "base/scoped_generic.h"
26 #include "base/single_thread_task_runner.h"
26 #include "base/strings/string_util.h" 27 #include "base/strings/string_util.h"
27 #include "base/strings/utf_string_conversions.h" 28 #include "base/strings/utf_string_conversions.h"
28 #include "base/threading/thread_checker.h" 29 #include "base/threading/thread_checker.h"
29 #include "base/threading/thread_task_runner_handle.h" 30 #include "base/threading/thread_task_runner_handle.h"
30 #include "base/timer/timer.h" 31 #include "base/timer/timer.h"
31 #include "base/win/scoped_comptr.h" 32 #include "base/win/scoped_comptr.h"
32 #include "media/midi/midi_scheduler.h" 33 #include "media/midi/midi_scheduler.h"
33 34
34 namespace midi { 35 namespace midi {
35 namespace { 36 namespace {
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 1043
1043 void MidiManagerWinrt::OnPortManagerReady() { 1044 void MidiManagerWinrt::OnPortManagerReady() {
1044 DCHECK(com_thread_checker_->CalledOnValidThread()); 1045 DCHECK(com_thread_checker_->CalledOnValidThread());
1045 DCHECK(port_manager_ready_count_ < 2); 1046 DCHECK(port_manager_ready_count_ < 2);
1046 1047
1047 if (++port_manager_ready_count_ == 2) 1048 if (++port_manager_ready_count_ == 2)
1048 CompleteInitialization(Result::OK); 1049 CompleteInitialization(Result::OK);
1049 } 1050 }
1050 1051
1051 } // namespace midi 1052 } // namespace midi
OLDNEW
« no previous file with comments | « media/midi/midi_manager_win.cc ('k') | media/mojo/clients/mojo_audio_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698