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

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

Issue 1915443003: Replace scoped_ptr with std::unique_ptr in //media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptr-media-base
Patch Set: scopedptr-media: rebase Created 4 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_unittest.cc ('k') | media/midi/midi_manager_win.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 #ifndef MEDIA_MIDI_MIDI_MANAGER_WIN_H_ 5 #ifndef MEDIA_MIDI_MIDI_MANAGER_WIN_H_
6 #define MEDIA_MIDI_MIDI_MANAGER_WIN_H_ 6 #define MEDIA_MIDI_MIDI_MANAGER_WIN_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "media/midi/midi_manager.h" 16 #include "media/midi/midi_manager.h"
17 17
18 namespace media { 18 namespace media {
19 namespace midi { 19 namespace midi {
20 20
21 class MidiServiceWinDelegate { 21 class MidiServiceWinDelegate {
22 public: 22 public:
23 virtual ~MidiServiceWinDelegate() {} 23 virtual ~MidiServiceWinDelegate() {}
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void OnCompleteInitialization(Result result) final; 61 void OnCompleteInitialization(Result result) final;
62 void OnAddInputPort(MidiPortInfo info) final; 62 void OnAddInputPort(MidiPortInfo info) final;
63 void OnAddOutputPort(MidiPortInfo info) final; 63 void OnAddOutputPort(MidiPortInfo info) final;
64 void OnSetInputPortState(uint32_t port_index, MidiPortState state) final; 64 void OnSetInputPortState(uint32_t port_index, MidiPortState state) final;
65 void OnSetOutputPortState(uint32_t port_index, MidiPortState state) final; 65 void OnSetOutputPortState(uint32_t port_index, MidiPortState state) final;
66 void OnReceiveMidiData(uint32_t port_index, 66 void OnReceiveMidiData(uint32_t port_index,
67 const std::vector<uint8_t>& data, 67 const std::vector<uint8_t>& data,
68 base::TimeTicks time) final; 68 base::TimeTicks time) final;
69 69
70 private: 70 private:
71 scoped_ptr<MidiServiceWin> midi_service_; 71 std::unique_ptr<MidiServiceWin> midi_service_;
72 DISALLOW_COPY_AND_ASSIGN(MidiManagerWin); 72 DISALLOW_COPY_AND_ASSIGN(MidiManagerWin);
73 }; 73 };
74 74
75 } // namespace midi 75 } // namespace midi
76 } // namespace media 76 } // namespace media
77 77
78 #endif // MEDIA_MIDI_MIDI_MANAGER_WIN_H_ 78 #endif // MEDIA_MIDI_MIDI_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « media/midi/midi_manager_usb_unittest.cc ('k') | media/midi/midi_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698