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

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 7361010: Enable fire-and-forget Destroy of HW video decoder, and misc other improvements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: vrk CR responses. Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_old.h" 10 #include "base/callback_old.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // destructed. 209 // destructed.
210 virtual void ShutDown() = 0; 210 virtual void ShutDown() = 0;
211 211
212 protected: 212 protected:
213 virtual ~PlatformAudio() {} 213 virtual ~PlatformAudio() {}
214 }; 214 };
215 215
216 // Interface for PlatformVideoDecoder is directly inherited from general media 216 // Interface for PlatformVideoDecoder is directly inherited from general media
217 // VideoDecodeAccelerator interface. 217 // VideoDecodeAccelerator interface.
218 class PlatformVideoDecoder : public media::VideoDecodeAccelerator { 218 class PlatformVideoDecoder : public media::VideoDecodeAccelerator {
219 public: 219 protected:
220 virtual ~PlatformVideoDecoder() {} 220 virtual ~PlatformVideoDecoder() {}
221 }; 221 };
222 222
223 // Provides access to the ppapi broker. 223 // Provides access to the ppapi broker.
224 class PpapiBroker { 224 class PpapiBroker {
225 public: 225 public:
226 virtual void Connect(webkit::ppapi::PPB_Broker_Impl* client) = 0; 226 virtual void Connect(webkit::ppapi::PPB_Broker_Impl* client) = 0;
227 227
228 // Decrements the references to the broker. 228 // Decrements the references to the broker.
229 // When there are no more references, this renderer's dispatcher is 229 // When there are no more references, this renderer's dispatcher is
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; 414 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0;
415 415
416 // Returns the current preferences. 416 // Returns the current preferences.
417 virtual ::ppapi::Preferences GetPreferences() = 0; 417 virtual ::ppapi::Preferences GetPreferences() = 0;
418 }; 418 };
419 419
420 } // namespace ppapi 420 } // namespace ppapi
421 } // namespace webkit 421 } // namespace webkit
422 422
423 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 423 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698