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

Side by Side Diff: ppapi/shared_impl/ppb_video_decoder_shared.h

Issue 1097393007: Update {virtual,override} to follow C++11 style in ppapi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split off one file into separate review. Created 5 years, 8 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 | « ppapi/shared_impl/ppb_instance_shared.h ('k') | ppapi/shared_impl/ppb_view_shared.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SHARED_IMPL_PPB_VIDEO_DECODER_SHARED_H_ 5 #ifndef PPAPI_SHARED_IMPL_PPB_VIDEO_DECODER_SHARED_H_
6 #define PPAPI_SHARED_IMPL_PPB_VIDEO_DECODER_SHARED_H_ 6 #define PPAPI_SHARED_IMPL_PPB_VIDEO_DECODER_SHARED_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 namespace ppapi { 24 namespace ppapi {
25 25
26 // Implements the logic to set and run callbacks for various video decoder 26 // Implements the logic to set and run callbacks for various video decoder
27 // events. Both the proxy and the renderer implementation share this code. 27 // events. Both the proxy and the renderer implementation share this code.
28 class PPAPI_SHARED_EXPORT PPB_VideoDecoder_Shared 28 class PPAPI_SHARED_EXPORT PPB_VideoDecoder_Shared
29 : public Resource, 29 : public Resource,
30 NON_EXPORTED_BASE(public thunk::PPB_VideoDecoder_Dev_API) { 30 NON_EXPORTED_BASE(public thunk::PPB_VideoDecoder_Dev_API) {
31 public: 31 public:
32 explicit PPB_VideoDecoder_Shared(PP_Instance instance); 32 explicit PPB_VideoDecoder_Shared(PP_Instance instance);
33 explicit PPB_VideoDecoder_Shared(const HostResource& host_resource); 33 explicit PPB_VideoDecoder_Shared(const HostResource& host_resource);
34 virtual ~PPB_VideoDecoder_Shared(); 34 ~PPB_VideoDecoder_Shared() override;
35 35
36 // Resource overrides. 36 // Resource overrides.
37 virtual thunk::PPB_VideoDecoder_Dev_API* AsPPB_VideoDecoder_Dev_API() 37 thunk::PPB_VideoDecoder_Dev_API* AsPPB_VideoDecoder_Dev_API() override;
38 override;
39 38
40 // PPB_VideoDecoder_Dev_API implementation. 39 // PPB_VideoDecoder_Dev_API implementation.
41 virtual void Destroy() override; 40 void Destroy() override;
42 41
43 protected: 42 protected:
44 bool SetFlushCallback(scoped_refptr<TrackedCallback> callback); 43 bool SetFlushCallback(scoped_refptr<TrackedCallback> callback);
45 bool SetResetCallback(scoped_refptr<TrackedCallback> callback); 44 bool SetResetCallback(scoped_refptr<TrackedCallback> callback);
46 bool SetBitstreamBufferCallback(int32 bitstream_buffer_id, 45 bool SetBitstreamBufferCallback(int32 bitstream_buffer_id,
47 scoped_refptr<TrackedCallback> callback); 46 scoped_refptr<TrackedCallback> callback);
48 47
49 void RunFlushCallback(int32 result); 48 void RunFlushCallback(int32 result);
50 void RunResetCallback(int32 result); 49 void RunResetCallback(int32 result);
51 void RunBitstreamBufferCallback(int32 bitstream_buffer_id, int32 result); 50 void RunBitstreamBufferCallback(int32 bitstream_buffer_id, int32 result);
(...skipping 23 matching lines...) Expand all
75 // In the out-of-process case, Graphics3D's gles2_impl() exists in the plugin 74 // In the out-of-process case, Graphics3D's gles2_impl() exists in the plugin
76 // process only, so gles2_impl_ is NULL in that case. 75 // process only, so gles2_impl_ is NULL in that case.
77 gpu::gles2::GLES2Implementation* gles2_impl_; 76 gpu::gles2::GLES2Implementation* gles2_impl_;
78 77
79 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Shared); 78 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Shared);
80 }; 79 };
81 80
82 } // namespace ppapi 81 } // namespace ppapi
83 82
84 #endif // PPAPI_SHARED_IMPL_PPB_VIDEO_DECODER_SHARED_H_ 83 #endif // PPAPI_SHARED_IMPL_PPB_VIDEO_DECODER_SHARED_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_instance_shared.h ('k') | ppapi/shared_impl/ppb_view_shared.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698