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

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

Issue 1086073004: Web MIDI: namespace change from media to media::midi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@null
Patch Set: (rebase) 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_result.h ('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 "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "media/midi/midi_export.h" 10 #include "media/midi/midi_export.h"
11 11
12 namespace media { 12 namespace media {
13 namespace midi {
13 14
14 class MidiManager; 15 class MidiManager;
15 class MidiManagerClient; 16 class MidiManagerClient;
16 17
17 // TODO(crbug.com/467442): Make tasks cancelable per client. 18 // TODO(crbug.com/467442): Make tasks cancelable per client.
18 class MIDI_EXPORT MidiScheduler final { 19 class MIDI_EXPORT MidiScheduler final {
19 public: 20 public:
20 explicit MidiScheduler(MidiManager* manager); 21 explicit MidiScheduler(MidiManager* manager);
21 ~MidiScheduler(); 22 ~MidiScheduler();
22 23
(...skipping 10 matching lines...) Expand all
33 size_t length, 34 size_t length,
34 const base::Closure& closure); 35 const base::Closure& closure);
35 36
36 // MidiManager should own the MidiScheduler and be alive longer. 37 // MidiManager should own the MidiScheduler and be alive longer.
37 MidiManager* manager_; 38 MidiManager* manager_;
38 base::WeakPtrFactory<MidiScheduler> weak_factory_; 39 base::WeakPtrFactory<MidiScheduler> weak_factory_;
39 40
40 DISALLOW_COPY_AND_ASSIGN(MidiScheduler); 41 DISALLOW_COPY_AND_ASSIGN(MidiScheduler);
41 }; 42 };
42 43
44 } // namespace midi
43 } // namespace media 45 } // namespace media
44 46
45 #endif // MEDIA_MIDI_MIDI_SCHEDULER_H_ 47 #endif // MEDIA_MIDI_MIDI_SCHEDULER_H_
OLDNEW
« no previous file with comments | « media/midi/midi_result.h ('k') | media/midi/midi_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698