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

Side by Side Diff: content/renderer/pepper/resource_converter.h

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 CONTENT_RENDERER_PEPPER_RESOURCE_CONVERTER_H 5 #ifndef CONTENT_RENDERER_PEPPER_RESOURCE_CONVERTER_H
6 #define CONTENT_RENDERER_PEPPER_RESOURCE_CONVERTER_H 6 #define CONTENT_RENDERER_PEPPER_RESOURCE_CONVERTER_H
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 v8::Handle<v8::Context> context, 62 v8::Handle<v8::Context> context,
63 v8::Handle<v8::Value>* result) = 0; 63 v8::Handle<v8::Value>* result) = 0;
64 }; 64 };
65 65
66 class ResourceConverterImpl : public ResourceConverter { 66 class ResourceConverterImpl : public ResourceConverter {
67 public: 67 public:
68 ResourceConverterImpl(PP_Instance instance, RendererPpapiHost* host); 68 ResourceConverterImpl(PP_Instance instance, RendererPpapiHost* host);
69 virtual ~ResourceConverterImpl(); 69 virtual ~ResourceConverterImpl();
70 70
71 // ResourceConverter overrides. 71 // ResourceConverter overrides.
72 virtual void Reset() OVERRIDE; 72 virtual void Reset() override;
73 virtual bool NeedsFlush() OVERRIDE; 73 virtual bool NeedsFlush() override;
74 virtual void Flush(const base::Callback<void(bool)>& callback) OVERRIDE; 74 virtual void Flush(const base::Callback<void(bool)>& callback) override;
75 virtual bool FromV8Value(v8::Handle<v8::Object> val, 75 virtual bool FromV8Value(v8::Handle<v8::Object> val,
76 v8::Handle<v8::Context> context, 76 v8::Handle<v8::Context> context,
77 PP_Var* result, 77 PP_Var* result,
78 bool* was_resource) OVERRIDE; 78 bool* was_resource) override;
79 virtual bool ToV8Value(const PP_Var& var, 79 virtual bool ToV8Value(const PP_Var& var,
80 v8::Handle<v8::Context> context, 80 v8::Handle<v8::Context> context,
81 v8::Handle<v8::Value>* result) OVERRIDE; 81 v8::Handle<v8::Value>* result) override;
82 82
83 private: 83 private:
84 // Creates a resource var with the given |pending_renderer_id| and 84 // Creates a resource var with the given |pending_renderer_id| and
85 // |create_message| to be sent to the plugin. 85 // |create_message| to be sent to the plugin.
86 scoped_refptr<HostResourceVar> CreateResourceVar( 86 scoped_refptr<HostResourceVar> CreateResourceVar(
87 int pending_renderer_id, 87 int pending_renderer_id,
88 const IPC::Message& create_message); 88 const IPC::Message& create_message);
89 // Creates a resource var with the given |pending_renderer_id| and 89 // Creates a resource var with the given |pending_renderer_id| and
90 // |create_message| to be sent to the plugin. Also sends 90 // |create_message| to be sent to the plugin. Also sends
91 // |browser_host_create_message| to the browser, and asynchronously stores the 91 // |browser_host_create_message| to the browser, and asynchronously stores the
(...skipping 13 matching lines...) Expand all
105 // conveniently passed to |CreateBrowserResourceHosts|. 105 // conveniently passed to |CreateBrowserResourceHosts|.
106 std::vector<IPC::Message> browser_host_create_messages_; 106 std::vector<IPC::Message> browser_host_create_messages_;
107 // A list of the resource vars associated with browser hosts. 107 // A list of the resource vars associated with browser hosts.
108 std::vector<scoped_refptr<HostResourceVar> > browser_vars_; 108 std::vector<scoped_refptr<HostResourceVar> > browser_vars_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(ResourceConverterImpl); 110 DISALLOW_COPY_AND_ASSIGN(ResourceConverterImpl);
111 }; 111 };
112 112
113 } // namespace content 113 } // namespace content
114 #endif // CONTENT_RENDERER_PEPPER_RESOURCE_CONVERTER_H 114 #endif // CONTENT_RENDERER_PEPPER_RESOURCE_CONVERTER_H
OLDNEW
« no previous file with comments | « content/renderer/pepper/renderer_ppapi_host_impl.h ('k') | content/renderer/pepper/resource_creation_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698