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

Side by Side Diff: content/renderer/pepper/pepper_media_stream_track_host_base.h

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (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 CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_TRACK_HOST_BASE_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_TRACK_HOST_BASE_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_TRACK_HOST_BASE_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_TRACK_HOST_BASE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ppapi/host/resource_host.h" 10 #include "ppapi/host/resource_host.h"
(...skipping 30 matching lines...) Expand all
41 41
42 // Sends a set of buffer indices to the corresponding 42 // Sends a set of buffer indices to the corresponding
43 // MediaStreamTrackResourceBase via an IPC message. 43 // MediaStreamTrackResourceBase via an IPC message.
44 // The resource adds the buffer indices into its 44 // The resource adds the buffer indices into its
45 // |frame_buffer_| for reading or writing. Also see |MediaStreamFrameBuffer|. 45 // |frame_buffer_| for reading or writing. Also see |MediaStreamFrameBuffer|.
46 void SendEnqueueBuffersMessageToPlugin(const std::vector<int32_t>& indices); 46 void SendEnqueueBuffersMessageToPlugin(const std::vector<int32_t>& indices);
47 47
48 // ResourceMessageHandler overrides: 48 // ResourceMessageHandler overrides:
49 virtual int32_t OnResourceMessageReceived( 49 virtual int32_t OnResourceMessageReceived(
50 const IPC::Message& msg, 50 const IPC::Message& msg,
51 ppapi::host::HostMessageContext* context) OVERRIDE; 51 ppapi::host::HostMessageContext* context) override;
52 52
53 // Message handlers: 53 // Message handlers:
54 virtual int32_t OnHostMsgEnqueueBuffer( 54 virtual int32_t OnHostMsgEnqueueBuffer(
55 ppapi::host::HostMessageContext* context, int32_t index); 55 ppapi::host::HostMessageContext* context, int32_t index);
56 56
57 private: 57 private:
58 // Subclasses must implement this method to clean up when the track is closed. 58 // Subclasses must implement this method to clean up when the track is closed.
59 virtual void OnClose() = 0; 59 virtual void OnClose() = 0;
60 60
61 // Message handlers: 61 // Message handlers:
62 int32_t OnHostMsgClose(ppapi::host::HostMessageContext* context); 62 int32_t OnHostMsgClose(ppapi::host::HostMessageContext* context);
63 63
64 RendererPpapiHost* host_; 64 RendererPpapiHost* host_;
65 65
66 ppapi::MediaStreamBufferManager buffer_manager_; 66 ppapi::MediaStreamBufferManager buffer_manager_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamTrackHostBase); 68 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamTrackHostBase);
69 }; 69 };
70 70
71 } // namespace content 71 } // namespace content
72 72
73 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_TRACK_HOST_BASE_H_ 73 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_TRACK_HOST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698