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

Side by Side Diff: webkit/glue/plugins/pepper_plugin_delegate.h

Issue 5202002: changes for proxy audio (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 protected: 123 protected:
124 virtual ~Client() {} 124 virtual ~Client() {}
125 125
126 public: 126 public:
127 // Called when the stream is created. 127 // Called when the stream is created.
128 virtual void StreamCreated(base::SharedMemoryHandle shared_memory_handle, 128 virtual void StreamCreated(base::SharedMemoryHandle shared_memory_handle,
129 size_t shared_memory_size, 129 size_t shared_memory_size,
130 base::SyncSocket::Handle socket) = 0; 130 base::SyncSocket::Handle socket) = 0;
131 }; 131 };
132 132
133 virtual ~PlatformAudio() {}
134
135 // Starts the playback. Returns false on error or if called before the 133 // Starts the playback. Returns false on error or if called before the
136 // stream is created or after the stream is closed. 134 // stream is created or after the stream is closed.
137 virtual bool StartPlayback() = 0; 135 virtual bool StartPlayback() = 0;
138 136
139 // Stops the playback. Returns false on error or if called before the stream 137 // Stops the playback. Returns false on error or if called before the stream
140 // is created or after the stream is closed. 138 // is created or after the stream is closed.
141 virtual bool StopPlayback() = 0; 139 virtual bool StopPlayback() = 0;
142 140
143 // Closes the stream. Make sure to call this before the object is 141 // Closes the stream. Make sure to call this before the object is
144 // destructed. 142 // destructed.
145 virtual void ShutDown() = 0; 143 virtual void ShutDown() = 0;
darin (slow to review) 2010/11/19 17:45:39 nit: add a new line above the protected label
144 protected:
145 virtual ~PlatformAudio() {}
146 }; 146 };
147 147
148 class PlatformVideoDecoder { 148 class PlatformVideoDecoder {
149 public: 149 public:
150 virtual ~PlatformVideoDecoder() {} 150 virtual ~PlatformVideoDecoder() {}
151 151
152 // Returns false on failure. 152 // Returns false on failure.
153 virtual bool Decode(PP_VideoCompressedDataBuffer_Dev& input_buffer) = 0; 153 virtual bool Decode(PP_VideoCompressedDataBuffer_Dev& input_buffer) = 0;
154 virtual int32_t Flush(PP_CompletionCallback& callback) = 0; 154 virtual int32_t Flush(PP_CompletionCallback& callback) = 0;
155 virtual bool ReturnUncompressedDataBuffer( 155 virtual bool ReturnUncompressedDataBuffer(
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 virtual void DidStartLoading() = 0; 272 virtual void DidStartLoading() = 0;
273 virtual void DidStopLoading() = 0; 273 virtual void DidStopLoading() = 0;
274 274
275 // Sets restrictions on how the content can be used (i.e. no print/copy). 275 // Sets restrictions on how the content can be used (i.e. no print/copy).
276 virtual void SetContentRestriction(int restrictions) = 0; 276 virtual void SetContentRestriction(int restrictions) = 0;
277 }; 277 };
278 278
279 } // namespace pepper 279 } // namespace pepper
280 280
281 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_ 281 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_
OLDNEW
« webkit/glue/plugins/pepper_audio.cc ('K') | « webkit/glue/plugins/pepper_audio.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698