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

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

Issue 11225045: Move a bunch of content\common code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/v8_value_converter_impl.cc » ('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 (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_RENDERER_V8_VALUE_CONVERTER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_V8_VALUE_CONVERTER_IMPL_H_
6 #define CONTENT_RENDERER_V8_VALUE_CONVERTER_IMPL_H_ 6 #define CONTENT_RENDERER_V8_VALUE_CONVERTER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/public/renderer/v8_value_converter.h" 12 #include "content/public/renderer/v8_value_converter.h"
13 13
14 namespace base { 14 namespace base {
15 class BinaryValue; 15 class BinaryValue;
16 class DictionaryValue; 16 class DictionaryValue;
17 class ListValue; 17 class ListValue;
18 class Value; 18 class Value;
19 } 19 }
20 20
21 class CONTENT_EXPORT V8ValueConverterImpl : public content::V8ValueConverter { 21 namespace content {
22
23 class CONTENT_EXPORT V8ValueConverterImpl : public V8ValueConverter {
22 public: 24 public:
23 V8ValueConverterImpl(); 25 V8ValueConverterImpl();
24 26
25 // V8ValueConverter implementation. 27 // V8ValueConverter implementation.
26 virtual void SetDateAllowed(bool val) OVERRIDE; 28 virtual void SetDateAllowed(bool val) OVERRIDE;
27 virtual void SetRegExpAllowed(bool val) OVERRIDE; 29 virtual void SetRegExpAllowed(bool val) OVERRIDE;
28 virtual void SetFunctionAllowed(bool val) OVERRIDE; 30 virtual void SetFunctionAllowed(bool val) OVERRIDE;
29 virtual void SetStripNullFromObjects(bool val) OVERRIDE; 31 virtual void SetStripNullFromObjects(bool val) OVERRIDE;
30 virtual v8::Handle<v8::Value> ToV8Value( 32 virtual v8::Handle<v8::Value> ToV8Value(
31 const base::Value* value, 33 const base::Value* value,
(...skipping 29 matching lines...) Expand all
61 bool reg_exp_allowed_; 63 bool reg_exp_allowed_;
62 64
63 // If true, we will convert Function JavaScript objects to dictionaries. 65 // If true, we will convert Function JavaScript objects to dictionaries.
64 bool function_allowed_; 66 bool function_allowed_;
65 67
66 // If true, undefined and null values are ignored when converting v8 objects 68 // If true, undefined and null values are ignored when converting v8 objects
67 // into Values. 69 // into Values.
68 bool strip_null_from_objects_; 70 bool strip_null_from_objects_;
69 }; 71 };
70 72
73 } // namespace content
74
71 #endif // CONTENT_RENDERER_V8_VALUE_CONVERTER_IMPL_H_ 75 #endif // CONTENT_RENDERER_V8_VALUE_CONVERTER_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/v8_value_converter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698