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

Side by Side Diff: content/child/v8_value_converter_impl.h

Issue 2799093006: Remove base::BinaryValue (Closed)
Patch Set: Rebase Created 3 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
OLDNEW
1 // Copyright (c) 2012 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 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_CHILD_V8_VALUE_CONVERTER_IMPL_H_ 5 #ifndef CONTENT_CHILD_V8_VALUE_CONVERTER_IMPL_H_
6 #define CONTENT_CHILD_V8_VALUE_CONVERTER_IMPL_H_ 6 #define CONTENT_CHILD_V8_VALUE_CONVERTER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/public/child/v8_value_converter.h" 13 #include "content/public/child/v8_value_converter.h"
14 14
15 namespace base { 15 namespace base {
16 class DictionaryValue; 16 class DictionaryValue;
17 class ListValue; 17 class ListValue;
18 class Value; 18 class Value;
19 using BinaryValue = Value;
20 } 19 }
21 20
22 namespace content { 21 namespace content {
23 22
24 class CONTENT_EXPORT V8ValueConverterImpl : public V8ValueConverter { 23 class CONTENT_EXPORT V8ValueConverterImpl : public V8ValueConverter {
25 public: 24 public:
26 V8ValueConverterImpl(); 25 V8ValueConverterImpl();
27 26
28 // V8ValueConverter implementation. 27 // V8ValueConverter implementation.
29 void SetDateAllowed(bool val) override; 28 void SetDateAllowed(bool val) override;
(...skipping 19 matching lines...) Expand all
49 v8::Local<v8::Object> creation_context, 48 v8::Local<v8::Object> creation_context,
50 const base::Value* value) const; 49 const base::Value* value) const;
51 v8::Local<v8::Value> ToV8Array(v8::Isolate* isolate, 50 v8::Local<v8::Value> ToV8Array(v8::Isolate* isolate,
52 v8::Local<v8::Object> creation_context, 51 v8::Local<v8::Object> creation_context,
53 const base::ListValue* list) const; 52 const base::ListValue* list) const;
54 v8::Local<v8::Value> ToV8Object( 53 v8::Local<v8::Value> ToV8Object(
55 v8::Isolate* isolate, 54 v8::Isolate* isolate,
56 v8::Local<v8::Object> creation_context, 55 v8::Local<v8::Object> creation_context,
57 const base::DictionaryValue* dictionary) const; 56 const base::DictionaryValue* dictionary) const;
58 v8::Local<v8::Value> ToArrayBuffer(v8::Isolate* isolate, 57 v8::Local<v8::Value> ToArrayBuffer(v8::Isolate* isolate,
59 v8::Local<v8::Object> creation_context, 58 v8::Local<v8::Object> creation_context,
60 const base::BinaryValue* value) const; 59 const base::Value* value) const;
61 60
62 std::unique_ptr<base::Value> FromV8ValueImpl(FromV8ValueState* state, 61 std::unique_ptr<base::Value> FromV8ValueImpl(FromV8ValueState* state,
63 v8::Local<v8::Value> value, 62 v8::Local<v8::Value> value,
64 v8::Isolate* isolate) const; 63 v8::Isolate* isolate) const;
65 std::unique_ptr<base::Value> FromV8Array(v8::Local<v8::Array> array, 64 std::unique_ptr<base::Value> FromV8Array(v8::Local<v8::Array> array,
66 FromV8ValueState* state, 65 FromV8ValueState* state,
67 v8::Isolate* isolate) const; 66 v8::Isolate* isolate) const;
68 67
69 // This will convert objects of type ArrayBuffer or any of the 68 // This will convert objects of type ArrayBuffer or any of the
70 // ArrayBufferView subclasses. 69 // ArrayBufferView subclasses.
(...skipping 24 matching lines...) Expand all
95 94
96 // Strategy object that changes the converter's behavior. 95 // Strategy object that changes the converter's behavior.
97 Strategy* strategy_; 96 Strategy* strategy_;
98 97
99 DISALLOW_COPY_AND_ASSIGN(V8ValueConverterImpl); 98 DISALLOW_COPY_AND_ASSIGN(V8ValueConverterImpl);
100 }; 99 };
101 100
102 } // namespace content 101 } // namespace content
103 102
104 #endif // CONTENT_CHILD_V8_VALUE_CONVERTER_IMPL_H_ 103 #endif // CONTENT_CHILD_V8_VALUE_CONVERTER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_socket_utils.cc ('k') | content/child/v8_value_converter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698