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

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

Issue 1154613006: Update pepper to not assume that SharedMemoryHandle is an int. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another nits pass. Created 5 years, 6 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 (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 26 matching lines...) Expand all
37 // Resource overrides. 37 // Resource overrides.
38 ppapi::thunk::PPB_Audio_API* AsPPB_Audio_API() override; 38 ppapi::thunk::PPB_Audio_API* AsPPB_Audio_API() override;
39 39
40 // PPB_Audio_API implementation. 40 // PPB_Audio_API implementation.
41 PP_Resource GetCurrentConfig() override; 41 PP_Resource GetCurrentConfig() override;
42 PP_Bool StartPlayback() override; 42 PP_Bool StartPlayback() override;
43 PP_Bool StopPlayback() override; 43 PP_Bool StopPlayback() override;
44 int32_t Open(PP_Resource config_id, 44 int32_t Open(PP_Resource config_id,
45 scoped_refptr<ppapi::TrackedCallback> create_callback) override; 45 scoped_refptr<ppapi::TrackedCallback> create_callback) override;
46 int32_t GetSyncSocket(int* sync_socket) override; 46 int32_t GetSyncSocket(int* sync_socket) override;
47 int32_t GetSharedMemory(int* shm_handle, uint32_t* shm_size) override; 47 int32_t GetSharedMemory(base::SharedMemory** shm,
48 uint32_t* shm_size) override;
48 49
49 private: 50 private:
50 ~PPB_Audio_Impl() override; 51 ~PPB_Audio_Impl() override;
51 52
52 // AudioHelper implementation. 53 // AudioHelper implementation.
53 void OnSetStreamInfo(base::SharedMemoryHandle shared_memory_handle, 54 void OnSetStreamInfo(base::SharedMemoryHandle shared_memory_handle,
54 size_t shared_memory_size_, 55 size_t shared_memory_size_,
55 base::SyncSocket::Handle socket) override; 56 base::SyncSocket::Handle socket) override;
56 57
57 // PluginInstanceThrottler::Observer implementation. 58 // PluginInstanceThrottler::Observer implementation.
(...skipping 11 matching lines...) Expand all
69 70
70 // Stream is playing, but throttled due to Plugin Power Saver. 71 // Stream is playing, but throttled due to Plugin Power Saver.
71 bool playback_throttled_; 72 bool playback_throttled_;
72 73
73 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Impl); 74 DISALLOW_COPY_AND_ASSIGN(PPB_Audio_Impl);
74 }; 75 };
75 76
76 } // namespace content 77 } // namespace content
77 78
78 #endif // CONTENT_RENDERER_PEPPER_PPB_AUDIO_IMPL_H_ 79 #endif // CONTENT_RENDERER_PEPPER_PPB_AUDIO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698