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

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

Issue 1133363002: Getting rid of duplicate includes from media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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_usb.cc ('k') | media/midi/usb_midi_device_android.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_win.h" 5 #include "media/midi/midi_manager_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <ks.h> 8 #include <ks.h>
9 #include <ksmedia.h> 9 #include <ksmedia.h>
10 #include <mmreg.h> 10 #include <mmreg.h>
11 // Prevent unnecessary functions from being included from <mmsystem.h> 11 // Prevent unnecessary functions from being included from <mmsystem.h>
12 #define MMNODRV 12 #define MMNODRV
13 #define MMNOSOUND 13 #define MMNOSOUND
14 #define MMNOWAVE 14 #define MMNOWAVE
15 #define MMNOAUX 15 #define MMNOAUX
16 #define MMNOMIXER 16 #define MMNOMIXER
17 #define MMNOTIMER 17 #define MMNOTIMER
18 #define MMNOJOY 18 #define MMNOJOY
19 #define MMNOMCI 19 #define MMNOMCI
20 #define MMNOMMIO 20 #define MMNOMMIO
21 #include <mmsystem.h> 21 #include <mmsystem.h>
22 22
23 #include <algorithm> 23 #include <algorithm>
24 #include <functional> 24 #include <functional>
25 #include <queue> 25 #include <queue>
26 #include <string> 26 #include <string>
27 27
28 #include "base/basictypes.h"
29 #include "base/bind.h" 28 #include "base/bind.h"
30 #include "base/containers/hash_tables.h" 29 #include "base/containers/hash_tables.h"
31 #include "base/memory/scoped_ptr.h"
32 #include "base/message_loop/message_loop.h" 30 #include "base/message_loop/message_loop.h"
33 #include "base/strings/string16.h" 31 #include "base/strings/string16.h"
34 #include "base/strings/string_number_conversions.h" 32 #include "base/strings/string_number_conversions.h"
35 #include "base/strings/string_piece.h" 33 #include "base/strings/string_piece.h"
36 #include "base/strings/stringprintf.h" 34 #include "base/strings/stringprintf.h"
37 #include "base/strings/utf_string_conversions.h" 35 #include "base/strings/utf_string_conversions.h"
38 #include "base/system_monitor/system_monitor.h" 36 #include "base/system_monitor/system_monitor.h"
39 #include "base/threading/thread.h"
40 #include "base/threading/thread_checker.h" 37 #include "base/threading/thread_checker.h"
41 #include "base/timer/timer.h" 38 #include "base/timer/timer.h"
42 #include "base/win/message_window.h" 39 #include "base/win/message_window.h"
43 #include "device/usb/usb_ids.h" 40 #include "device/usb/usb_ids.h"
44 #include "media/midi/midi_manager.h"
45 #include "media/midi/midi_message_queue.h" 41 #include "media/midi/midi_message_queue.h"
46 #include "media/midi/midi_message_util.h" 42 #include "media/midi/midi_message_util.h"
47 #include "media/midi/midi_port_info.h" 43 #include "media/midi/midi_port_info.h"
48 44
49 namespace media { 45 namespace media {
50 namespace midi { 46 namespace midi {
51 namespace { 47 namespace {
52 48
53 static const size_t kBufferLength = 32 * 1024; 49 static const size_t kBufferLength = 32 * 1024;
54 50
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 base::TimeTicks time) { 1158 base::TimeTicks time) {
1163 ReceiveMidiData(port_index, &data[0], data.size(), time); 1159 ReceiveMidiData(port_index, &data[0], data.size(), time);
1164 } 1160 }
1165 1161
1166 MidiManager* MidiManager::Create() { 1162 MidiManager* MidiManager::Create() {
1167 return new MidiManagerWin(); 1163 return new MidiManagerWin();
1168 } 1164 }
1169 1165
1170 } // namespace midi 1166 } // namespace midi
1171 } // namespace media 1167 } // namespace media
OLDNEW
« no previous file with comments | « media/midi/midi_manager_usb.cc ('k') | media/midi/usb_midi_device_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698