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

Side by Side Diff: ppapi/proxy/plugin_resource_var.h

Issue 1097393007: Update {virtual,override} to follow C++11 style in ppapi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split off one file into separate review. Created 5 years, 8 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
« no previous file with comments | « ppapi/proxy/plugin_resource_tracker.h ('k') | ppapi/proxy/plugin_var_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PROXY_PLUGIN_RESOURCE_VAR_H_ 5 #ifndef PPAPI_PROXY_PLUGIN_RESOURCE_VAR_H_
6 #define PPAPI_PROXY_PLUGIN_RESOURCE_VAR_H_ 6 #define PPAPI_PROXY_PLUGIN_RESOURCE_VAR_H_
7 7
8 #include "ppapi/c/pp_resource.h" 8 #include "ppapi/c/pp_resource.h"
9 #include "ppapi/proxy/ppapi_proxy_export.h" 9 #include "ppapi/proxy/ppapi_proxy_export.h"
10 #include "ppapi/shared_impl/resource.h" 10 #include "ppapi/shared_impl/resource.h"
11 #include "ppapi/shared_impl/resource_var.h" 11 #include "ppapi/shared_impl/resource_var.h"
12 #include "ppapi/shared_impl/var.h" 12 #include "ppapi/shared_impl/var.h"
13 13
14 // Represents a resource Var, usable on the plugin side. 14 // Represents a resource Var, usable on the plugin side.
15 class PPAPI_PROXY_EXPORT PluginResourceVar : public ppapi::ResourceVar { 15 class PPAPI_PROXY_EXPORT PluginResourceVar : public ppapi::ResourceVar {
16 public: 16 public:
17 // Makes a null resource var. 17 // Makes a null resource var.
18 PluginResourceVar(); 18 PluginResourceVar();
19 19
20 // Makes a resource var with an existing resource. 20 // Makes a resource var with an existing resource.
21 // Takes one reference to the given resource. 21 // Takes one reference to the given resource.
22 explicit PluginResourceVar(ppapi::Resource* resource); 22 explicit PluginResourceVar(ppapi::Resource* resource);
23 23
24 // ResourceVar override. 24 // ResourceVar override.
25 virtual PP_Resource GetPPResource() const override; 25 PP_Resource GetPPResource() const override;
26 virtual bool IsPending() const override; 26 bool IsPending() const override;
27 27
28 scoped_refptr<ppapi::Resource> resource() const { return resource_; } 28 scoped_refptr<ppapi::Resource> resource() const { return resource_; }
29 29
30 protected: 30 protected:
31 virtual ~PluginResourceVar(); 31 ~PluginResourceVar() override;
32 32
33 private: 33 private:
34 // If NULL, this represents the PP_Resource 0. 34 // If NULL, this represents the PP_Resource 0.
35 scoped_refptr<ppapi::Resource> resource_; 35 scoped_refptr<ppapi::Resource> resource_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(PluginResourceVar); 37 DISALLOW_COPY_AND_ASSIGN(PluginResourceVar);
38 }; 38 };
39 39
40 #endif 40 #endif
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_resource_tracker.h ('k') | ppapi/proxy/plugin_var_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698