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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_view.h

Issue 10386080: Rename nacl::RefCounted to nacl::RefCountedThreadSafe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: License bump Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can 2 // Use of this source code is governed by a BSD-style license that can be
3 // be found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_VIEW_H_ 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_VIEW_H_
6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_VIEW_H_ 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_VIEW_H_
7 7
8 #include "native_client/src/include/nacl_macros.h" 8 #include "native_client/src/include/nacl_macros.h"
9 #include "native_client/src/shared/ppapi_proxy/view_data.h" 9 #include "native_client/src/shared/ppapi_proxy/view_data.h"
10 #include "native_client/src/shared/ppapi_proxy/plugin_resource.h" 10 #include "native_client/src/shared/ppapi_proxy/plugin_resource.h"
11 #include "ppapi/c/ppb_view.h" 11 #include "ppapi/c/ppb_view.h"
12 12
13 namespace ppapi_proxy { 13 namespace ppapi_proxy {
14 14
15 // Implements the untrusted side of the PPB_View interface. 15 // Implements the untrusted side of the PPB_View interface.
16 class PluginView : public PluginResource { 16 class PluginView : public PluginResource {
17 public: 17 public:
18 PluginView(); 18 PluginView();
19 void Init(const ViewData& view_data); 19 void Init(const ViewData& view_data);
20 virtual ~PluginView();
21 20
22 // PluginResource implementation. 21 // PluginResource implementation.
23 virtual bool InitFromBrowserResource(PP_Resource /*resource*/) { 22 virtual bool InitFromBrowserResource(PP_Resource /*resource*/) {
24 return true; 23 return true;
25 } 24 }
26 25
27 const ViewData& view_data() const { return view_data_; } 26 const ViewData& view_data() const { return view_data_; }
28 27
29 static const PPB_View* GetInterface(); 28 static const PPB_View* GetInterface();
30 29
31 private: 30 private:
31 virtual ~PluginView();
32
33 ViewData view_data_;
34
32 IMPLEMENT_RESOURCE(PluginView); 35 IMPLEMENT_RESOURCE(PluginView);
33 NACL_DISALLOW_COPY_AND_ASSIGN(PluginView); 36 NACL_DISALLOW_COPY_AND_ASSIGN(PluginView);
34
35 ViewData view_data_;
36 }; 37 };
37 38
38 } // namespace ppapi_proxy 39 } // namespace ppapi_proxy
39 40
40 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_VIEW_H_ 41 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_VIEW_H_
41 42
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698