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

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

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 9 years, 4 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_PPB_VIDEO_LAYER_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_IMPL_H_
7 7
8 #include "ppapi/thunk/ppb_video_layer_api.h" 8 #include "ppapi/thunk/ppb_video_layer_api.h"
9 #include "webkit/plugins/ppapi/resource.h" 9 #include "webkit/plugins/ppapi/resource.h"
10 10
11 struct PP_Rect; 11 struct PP_Rect;
12 struct PP_Size; 12 struct PP_Size;
13 13
14 namespace webkit { 14 namespace webkit {
15 namespace ppapi { 15 namespace ppapi {
16 16
17 class PluginInstance; 17 class PluginInstance;
18 18
19 class PPB_VideoLayer_Impl : public Resource, 19 class PPB_VideoLayer_Impl : public Resource,
20 public ::ppapi::thunk::PPB_VideoLayer_API { 20 public ::ppapi::thunk::PPB_VideoLayer_API {
21 public: 21 public:
22 virtual ~PPB_VideoLayer_Impl(); 22 virtual ~PPB_VideoLayer_Impl();
23 23
24 static PP_Resource Create(PluginInstance* instance, 24 static PP_Resource Create(PluginInstance* instance,
25 PP_VideoLayerMode_Dev mode); 25 PP_VideoLayerMode_Dev mode);
26 26
27 // ResourceObjectBase override. 27 // Resource override.
28 virtual PPB_VideoLayer_API* AsPPB_VideoLayer_API() OVERRIDE; 28 virtual PPB_VideoLayer_API* AsPPB_VideoLayer_API() OVERRIDE;
29 29
30 // Derived classes must implement PPB_VideoLayer_API. 30 // Derived classes must implement PPB_VideoLayer_API.
31 31
32 protected: 32 protected:
33 explicit PPB_VideoLayer_Impl(PluginInstance* instance); 33 explicit PPB_VideoLayer_Impl(PluginInstance* instance);
34 34
35 private: 35 private:
36 DISALLOW_COPY_AND_ASSIGN(PPB_VideoLayer_Impl); 36 DISALLOW_COPY_AND_ASSIGN(PPB_VideoLayer_Impl);
37 }; 37 };
38 38
39 } // namespace ppapi 39 } // namespace ppapi
40 } // namespace webkit 40 } // namespace webkit
41 41
42 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_IMPL_H_ 42 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698