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

Side by Side Diff: ppapi/proxy/media_stream_audio_track_resource.h

Issue 631733002: Replacing the OVERRIDE with override and FINAL with final in ppapi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 PPAPI_PROXY_MEDIA_STREAM_AUDIO_TRACK_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_MEDIA_STREAM_AUDIO_TRACK_RESOURCE_H_
6 #define PPAPI_PROXY_MEDIA_STREAM_AUDIO_TRACK_RESOURCE_H_ 6 #define PPAPI_PROXY_MEDIA_STREAM_AUDIO_TRACK_RESOURCE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 MediaStreamAudioTrackResource(Connection connection, 25 MediaStreamAudioTrackResource(Connection connection,
26 PP_Instance instance, 26 PP_Instance instance,
27 int pending_renderer_id, 27 int pending_renderer_id,
28 const std::string& id); 28 const std::string& id);
29 29
30 virtual ~MediaStreamAudioTrackResource(); 30 virtual ~MediaStreamAudioTrackResource();
31 31
32 // Resource overrides: 32 // Resource overrides:
33 virtual thunk::PPB_MediaStreamAudioTrack_API* 33 virtual thunk::PPB_MediaStreamAudioTrack_API*
34 AsPPB_MediaStreamAudioTrack_API() OVERRIDE; 34 AsPPB_MediaStreamAudioTrack_API() override;
35 35
36 // PPB_MediaStreamAudioTrack_API overrides: 36 // PPB_MediaStreamAudioTrack_API overrides:
37 virtual PP_Var GetId() OVERRIDE; 37 virtual PP_Var GetId() override;
38 virtual PP_Bool HasEnded() OVERRIDE; 38 virtual PP_Bool HasEnded() override;
39 virtual int32_t Configure(const int32_t attrib_list[], 39 virtual int32_t Configure(const int32_t attrib_list[],
40 scoped_refptr<TrackedCallback> callback) OVERRIDE; 40 scoped_refptr<TrackedCallback> callback) override;
41 virtual int32_t GetAttrib(PP_MediaStreamAudioTrack_Attrib attrib, 41 virtual int32_t GetAttrib(PP_MediaStreamAudioTrack_Attrib attrib,
42 int32_t* value) OVERRIDE; 42 int32_t* value) override;
43 virtual int32_t GetBuffer( 43 virtual int32_t GetBuffer(
44 PP_Resource* buffer, 44 PP_Resource* buffer,
45 scoped_refptr<TrackedCallback> callback) OVERRIDE; 45 scoped_refptr<TrackedCallback> callback) override;
46 virtual int32_t RecycleBuffer(PP_Resource buffer) OVERRIDE; 46 virtual int32_t RecycleBuffer(PP_Resource buffer) override;
47 virtual void Close() OVERRIDE; 47 virtual void Close() override;
48 48
49 // MediaStreamBufferManager::Delegate overrides: 49 // MediaStreamBufferManager::Delegate overrides:
50 virtual void OnNewBufferEnqueued() OVERRIDE; 50 virtual void OnNewBufferEnqueued() override;
51 51
52 private: 52 private:
53 PP_Resource GetAudioBuffer(); 53 PP_Resource GetAudioBuffer();
54 54
55 void ReleaseBuffers(); 55 void ReleaseBuffers();
56 56
57 // IPC message handlers. 57 // IPC message handlers.
58 void OnPluginMsgConfigureReply(const ResourceMessageReplyParams& params); 58 void OnPluginMsgConfigureReply(const ResourceMessageReplyParams& params);
59 59
60 // Allocated buffer resources by |GetBuffer()|. 60 // Allocated buffer resources by |GetBuffer()|.
61 typedef std::map<PP_Resource, scoped_refptr<AudioBufferResource> > BufferMap; 61 typedef std::map<PP_Resource, scoped_refptr<AudioBufferResource> > BufferMap;
62 BufferMap buffers_; 62 BufferMap buffers_;
63 63
64 PP_Resource* get_buffer_output_; 64 PP_Resource* get_buffer_output_;
65 65
66 scoped_refptr<TrackedCallback> configure_callback_; 66 scoped_refptr<TrackedCallback> configure_callback_;
67 67
68 scoped_refptr<TrackedCallback> get_buffer_callback_; 68 scoped_refptr<TrackedCallback> get_buffer_callback_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioTrackResource); 70 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioTrackResource);
71 }; 71 };
72 72
73 } // namespace proxy 73 } // namespace proxy
74 } // namespace ppapi 74 } // namespace ppapi
75 75
76 #endif // PPAPI_PROXY_MEDIA_STREAM_AUDIO_TRACK_RESOURCE_H_ 76 #endif // PPAPI_PROXY_MEDIA_STREAM_AUDIO_TRACK_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698