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

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

Issue 5648004: Add the "virtual" keyword on method overrides that are missing it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing file Created 10 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_AUDIO_IMPL_H_ 5 #ifndef PPAPI_SHARED_IMPL_AUDIO_IMPL_H_
6 #define PPAPI_SHARED_IMPL_AUDIO_IMPL_H_ 6 #define PPAPI_SHARED_IMPL_AUDIO_IMPL_H_
7 7
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/simple_thread.h" 9 #include "base/simple_thread.h"
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // playback if we're currently set to play. 45 // playback if we're currently set to play.
46 void SetStreamInfo(base::SharedMemoryHandle shared_memory_handle, 46 void SetStreamInfo(base::SharedMemoryHandle shared_memory_handle,
47 size_t shared_memory_size, 47 size_t shared_memory_size,
48 base::SyncSocket::Handle socket_handle); 48 base::SyncSocket::Handle socket_handle);
49 49
50 private: 50 private:
51 // Starts execution of the audio thread. 51 // Starts execution of the audio thread.
52 void StartThread(); 52 void StartThread();
53 53
54 // DelegateSimpleThread::Delegate implementation. Run on the audio thread. 54 // DelegateSimpleThread::Delegate implementation. Run on the audio thread.
55 void Run(); 55 virtual void Run();
56 56
57 // True if playing the stream. 57 // True if playing the stream.
58 bool playing_; 58 bool playing_;
59 59
60 // Socket used to notify us when audio is ready to accept new samples. This 60 // Socket used to notify us when audio is ready to accept new samples. This
61 // pointer is created in StreamCreated(). 61 // pointer is created in StreamCreated().
62 scoped_ptr<base::SyncSocket> socket_; 62 scoped_ptr<base::SyncSocket> socket_;
63 63
64 // Sample buffer in shared memory. This pointer is created in 64 // Sample buffer in shared memory. This pointer is created in
65 // StreamCreated(). The memory is only mapped when the audio thread is 65 // StreamCreated(). The memory is only mapped when the audio thread is
(...skipping 10 matching lines...) Expand all
76 PPB_Audio_Callback callback_; 76 PPB_Audio_Callback callback_;
77 77
78 // User data pointer passed verbatim to the callback function. 78 // User data pointer passed verbatim to the callback function.
79 void* user_data_; 79 void* user_data_;
80 }; 80 };
81 81
82 } // namespace shared_impl 82 } // namespace shared_impl
83 } // namespace pp 83 } // namespace pp
84 84
85 #endif // PPAPI_SHARED_IMPL_AUDIO_IMPL_H_ 85 #endif // PPAPI_SHARED_IMPL_AUDIO_IMPL_H_
OLDNEW
« no previous file with comments | « net/websockets/websocket_net_log_params.cc ('k') | remoting/client/plugin/pepper_input_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698