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

Side by Side Diff: content/renderer/java/gin_java_bridge_value_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_JAVA_GIN_JAVA_BRIDGE_VALUE_CONVERTER_H_ 5 #ifndef CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_VALUE_CONVERTER_H_
6 #define CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_VALUE_CONVERTER_H_ 6 #define CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_VALUE_CONVERTER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/renderer/v8_value_converter.h" 10 #include "content/public/renderer/v8_value_converter.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class GinJavaBridgeValueConverter : public content::V8ValueConverter::Strategy { 14 class GinJavaBridgeValueConverter : public content::V8ValueConverter::Strategy {
15 public: 15 public:
16 CONTENT_EXPORT GinJavaBridgeValueConverter(); 16 CONTENT_EXPORT GinJavaBridgeValueConverter();
17 CONTENT_EXPORT virtual ~GinJavaBridgeValueConverter(); 17 CONTENT_EXPORT virtual ~GinJavaBridgeValueConverter();
18 18
19 CONTENT_EXPORT v8::Handle<v8::Value> ToV8Value( 19 CONTENT_EXPORT v8::Handle<v8::Value> ToV8Value(
20 const base::Value* value, 20 const base::Value* value,
21 v8::Handle<v8::Context> context) const; 21 v8::Handle<v8::Context> context) const;
22 CONTENT_EXPORT scoped_ptr<base::Value> FromV8Value( 22 CONTENT_EXPORT scoped_ptr<base::Value> FromV8Value(
23 v8::Handle<v8::Value> value, 23 v8::Handle<v8::Value> value,
24 v8::Handle<v8::Context> context) const; 24 v8::Handle<v8::Context> context) const;
25 25
26 // content::V8ValueConverter::Strategy 26 // content::V8ValueConverter::Strategy
27 virtual bool FromV8Object(v8::Handle<v8::Object> value, 27 virtual bool FromV8Object(v8::Handle<v8::Object> value,
28 base::Value** out, 28 base::Value** out,
29 v8::Isolate* isolate, 29 v8::Isolate* isolate,
30 const FromV8ValueCallback& callback) const OVERRIDE; 30 const FromV8ValueCallback& callback) const override;
31 virtual bool FromV8ArrayBuffer(v8::Handle<v8::Object> value, 31 virtual bool FromV8ArrayBuffer(v8::Handle<v8::Object> value,
32 base::Value** out, 32 base::Value** out,
33 v8::Isolate* isolate) const OVERRIDE; 33 v8::Isolate* isolate) const override;
34 virtual bool FromV8Number(v8::Handle<v8::Number> value, 34 virtual bool FromV8Number(v8::Handle<v8::Number> value,
35 base::Value** out) const OVERRIDE; 35 base::Value** out) const override;
36 virtual bool FromV8Undefined(base::Value** out) const OVERRIDE; 36 virtual bool FromV8Undefined(base::Value** out) const override;
37 37
38 private: 38 private:
39 scoped_ptr<V8ValueConverter> converter_; 39 scoped_ptr<V8ValueConverter> converter_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(GinJavaBridgeValueConverter); 41 DISALLOW_COPY_AND_ASSIGN(GinJavaBridgeValueConverter);
42 }; 42 };
43 43
44 } // namespace content 44 } // namespace content
45 45
46 #endif // CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_VALUE_CONVERTER_H_ 46 #endif // CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_VALUE_CONVERTER_H_
OLDNEW
« no previous file with comments | « content/renderer/java/gin_java_bridge_object.h ('k') | content/renderer/java/gin_java_bridge_value_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698