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

Side by Side Diff: content/renderer/pepper/ppb_audio_impl.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
« no previous file with comments | « content/renderer/pepper/plugin_object.h ('k') | content/renderer/pepper/ppb_broker_impl.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 CONTENT_RENDERER_PEPPER_PPB_AUDIO_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_AUDIO_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PPB_AUDIO_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PPB_AUDIO_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 15 matching lines...) Expand all
26 // 26 //
27 // TODO(teravest): PPB_Audio is no longer supported in-process. Clean this up 27 // TODO(teravest): PPB_Audio is no longer supported in-process. Clean this up
28 // to look more like typical HostResource implementations. 28 // to look more like typical HostResource implementations.
29 class PPB_Audio_Impl : public ppapi::Resource, 29 class PPB_Audio_Impl : public ppapi::Resource,
30 public ppapi::PPB_Audio_Shared, 30 public ppapi::PPB_Audio_Shared,
31 public AudioHelper { 31 public AudioHelper {
32 public: 32 public:
33 explicit PPB_Audio_Impl(PP_Instance instance); 33 explicit PPB_Audio_Impl(PP_Instance instance);
34 34
35 // Resource overrides. 35 // Resource overrides.
36 virtual ppapi::thunk::PPB_Audio_API* AsPPB_Audio_API() OVERRIDE; 36 virtual ppapi::thunk::PPB_Audio_API* AsPPB_Audio_API() override;
37 37
38 // PPB_Audio_API implementation. 38 // PPB_Audio_API implementation.
39 virtual PP_Resource GetCurrentConfig() OVERRIDE; 39 virtual PP_Resource GetCurrentConfig() override;
40 virtual PP_Bool StartPlayback() OVERRIDE; 40 virtual PP_Bool StartPlayback() override;
41 virtual PP_Bool StopPlayback() OVERRIDE; 41 virtual PP_Bool StopPlayback() override;
42 virtual int32_t Open(PP_Resource config_id, 42 virtual int32_t Open(PP_Resource config_id,
43 scoped_refptr<ppapi::TrackedCallback> create_callback) 43 scoped_refptr<ppapi::TrackedCallback> create_callback)
44 OVERRIDE; 44 override;
45 virtual int32_t GetSyncSocket(int* sync_socket) OVERRIDE; 45 virtual int32_t GetSyncSocket(int* sync_socket) override;
46 virtual int32_t GetSharedMemory(int* shm_handle, uint32_t* shm_size) OVERRIDE; 46 virtual int32_t GetSharedMemory(int* shm_handle, uint32_t* shm_size) override;
47 47
48 private: 48 private:
49 virtual ~PPB_Audio_Impl(); 49 virtual ~PPB_Audio_Impl();
50 50
51 // AudioHelper implementation. 51 // AudioHelper implementation.
52 virtual void OnSetStreamInfo(base::SharedMemoryHandle shared_memory_handle, 52 virtual void OnSetStreamInfo(base::SharedMemoryHandle shared_memory_handle,
53 size_t shared_memory_size_, 53 size_t shared_memory_size_,
54 base::SyncSocket::Handle socket) OVERRIDE; 54 base::SyncSocket::Handle socket) override;
55 55
56 // AudioConfig used for creating this Audio object. We own a ref. 56 // AudioConfig used for creating this Audio object. We own a ref.
57 ppapi::ScopedPPResource config_; 57 ppapi::ScopedPPResource config_;
58 58
59 // PluginDelegate audio object that we delegate audio IPC through. We don't 59 // PluginDelegate audio object that we delegate audio IPC through. We don't
60 // own this pointer but are responsible for calling Shutdown on it. 60 // own this pointer but are responsible for calling Shutdown on it.
61 PepperPlatformAudioOutput* audio_; 61 PepperPlatformAudioOutput* audio_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Impl); 63 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Impl);
64 }; 64 };
65 65
66 } // namespace content 66 } // namespace content
67 67
68 #endif // CONTENT_RENDERER_PEPPER_PPB_AUDIO_IMPL_H_ 68 #endif // CONTENT_RENDERER_PEPPER_PPB_AUDIO_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/plugin_object.h ('k') | content/renderer/pepper/ppb_broker_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698