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

Side by Side Diff: media/midi/midi_scheduler.h

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_port_info.cc ('k') | media/midi/midi_scheduler.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef MEDIA_MIDI_MIDI_SCHEDULER_H_ 5 #ifndef MEDIA_MIDI_MIDI_SCHEDULER_H_
6 #define MEDIA_MIDI_MIDI_SCHEDULER_H_ 6 #define MEDIA_MIDI_MIDI_SCHEDULER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "base/threading/thread_checker.h" 14 #include "base/threading/thread_checker.h"
15 #include "media/midi/midi_export.h" 15 #include "media/midi/midi_export.h"
16 16
17 namespace media {
18 namespace midi { 17 namespace midi {
19 18
20 class MidiManager; 19 class MidiManager;
21 class MidiManagerClient; 20 class MidiManagerClient;
22 21
23 // TODO(crbug.com/467442): Make tasks cancelable per client. 22 // TODO(crbug.com/467442): Make tasks cancelable per client.
24 class MIDI_EXPORT MidiScheduler final { 23 class MIDI_EXPORT MidiScheduler final {
25 public: 24 public:
26 // Both constructor and destructor should be run on the same thread. The 25 // Both constructor and destructor should be run on the same thread. The
27 // instance is bound to the TaskRunner of the constructing thread, on which 26 // instance is bound to the TaskRunner of the constructing thread, on which
(...skipping 25 matching lines...) Expand all
53 // Ensures |weak_factory_| is destructed, and WeakPtrs are dereferenced on the 52 // Ensures |weak_factory_| is destructed, and WeakPtrs are dereferenced on the
54 // same thread. 53 // same thread.
55 base::ThreadChecker thread_checker_; 54 base::ThreadChecker thread_checker_;
56 55
57 base::WeakPtrFactory<MidiScheduler> weak_factory_; 56 base::WeakPtrFactory<MidiScheduler> weak_factory_;
58 57
59 DISALLOW_COPY_AND_ASSIGN(MidiScheduler); 58 DISALLOW_COPY_AND_ASSIGN(MidiScheduler);
60 }; 59 };
61 60
62 } // namespace midi 61 } // namespace midi
63 } // namespace media
64 62
65 #endif // MEDIA_MIDI_MIDI_SCHEDULER_H_ 63 #endif // MEDIA_MIDI_MIDI_SCHEDULER_H_
OLDNEW
« no previous file with comments | « media/midi/midi_port_info.cc ('k') | media/midi/midi_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698