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

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

Issue 2418493002: //media/midi: use top level namespace midi rather than media.midi (Closed)
Patch Set: TAG name change s/media_midi/midi/ Created 4 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
« no previous file with comments | « media/midi/midi_message_queue.h ('k') | media/midi/midi_message_queue_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 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_message_queue.h" 5 #include "media/midi/midi_message_queue.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "media/midi/midi_message_util.h" 10 #include "media/midi/midi_message_util.h"
11 11
12 namespace media {
13 namespace midi { 12 namespace midi {
14 namespace { 13 namespace {
15 14
16 const uint8_t kSysEx = 0xf0; 15 const uint8_t kSysEx = 0xf0;
17 const uint8_t kEndOfSysEx = 0xf7; 16 const uint8_t kEndOfSysEx = 0xf7;
18 17
19 bool IsDataByte(uint8_t data) { 18 bool IsDataByte(uint8_t data) {
20 return (data & 0x80) == 0; 19 return (data & 0x80) == 0;
21 } 20 }
22 21
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 continue; 116 continue;
118 } 117 }
119 118
120 // OK to consume this byte. 119 // OK to consume this byte.
121 next_message_.push_back(next); 120 next_message_.push_back(next);
122 queue_.pop_front(); 121 queue_.pop_front();
123 } 122 }
124 } 123 }
125 124
126 } // namespace midi 125 } // namespace midi
127 } // namespace media
OLDNEW
« no previous file with comments | « media/midi/midi_message_queue.h ('k') | media/midi/midi_message_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698