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

Side by Side Diff: chrome/renderer/extensions/activity_log_converter_strategy.h

Issue 248903003: Extend V8ValueConverter::Strategy for the needs of Gin Java Bridge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 CHROME_RENDERER_EXTENSIONS_ACTIVITY_LOG_CONVERTER_STRATEGY_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_ACTIVITY_LOG_CONVERTER_STRATEGY_H_
6 #define CHROME_RENDERER_EXTENSIONS_ACTIVITY_LOG_CONVERTER_STRATEGY_H_ 6 #define CHROME_RENDERER_EXTENSIONS_ACTIVITY_LOG_CONVERTER_STRATEGY_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "content/public/renderer/v8_value_converter.h" 10 #include "content/public/renderer/v8_value_converter.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // content::V8ValueConverter::Strategy implementation. 29 // content::V8ValueConverter::Strategy implementation.
30 virtual bool FromV8Object(v8::Handle<v8::Object> value, 30 virtual bool FromV8Object(v8::Handle<v8::Object> value,
31 base::Value** out, 31 base::Value** out,
32 v8::Isolate* isolate, 32 v8::Isolate* isolate,
33 const FromV8ValueCallback& callback) const OVERRIDE; 33 const FromV8ValueCallback& callback) const OVERRIDE;
34 virtual bool FromV8Array(v8::Handle<v8::Array> value, 34 virtual bool FromV8Array(v8::Handle<v8::Array> value,
35 base::Value** out, 35 base::Value** out,
36 v8::Isolate* isolate, 36 v8::Isolate* isolate,
37 const FromV8ValueCallback& callback) const OVERRIDE; 37 const FromV8ValueCallback& callback) const OVERRIDE;
38 virtual bool FromV8ArrayBuffer(v8::Handle<v8::Object> value,
39 base::Value** out) const OVERRIDE;
40 virtual bool FromV8Number(v8::Handle<v8::Number> value,
41 base::Value** out) const OVERRIDE;
42 virtual bool FromV8Undefined(base::Value** out) const OVERRIDE;
38 43
39 void set_enable_detailed_parsing(bool enable_detailed_parsing) { 44 void set_enable_detailed_parsing(bool enable_detailed_parsing) {
40 enable_detailed_parsing_ = enable_detailed_parsing; 45 enable_detailed_parsing_ = enable_detailed_parsing;
41 } 46 }
42 47
43 private: 48 private:
44 bool FromV8Internal(v8::Handle<v8::Object> value, 49 bool FromV8Internal(v8::Handle<v8::Object> value,
45 base::Value** out, 50 base::Value** out,
46 v8::Isolate* isolate, 51 v8::Isolate* isolate,
47 const FromV8ValueCallback& callback) const; 52 const FromV8ValueCallback& callback) const;
48 53
49 // Whether or not to extract a detailed value from the passed in objects. We 54 // Whether or not to extract a detailed value from the passed in objects. We
50 // do this when we need more information about the arguments in order to 55 // do this when we need more information about the arguments in order to
51 // determine, e.g., if an ad was injected. 56 // determine, e.g., if an ad was injected.
52 bool enable_detailed_parsing_; 57 bool enable_detailed_parsing_;
53 58
54 DISALLOW_COPY_AND_ASSIGN(ActivityLogConverterStrategy); 59 DISALLOW_COPY_AND_ASSIGN(ActivityLogConverterStrategy);
55 }; 60 };
56 61
57 } // namespace extensions 62 } // namespace extensions
58 63
59 #endif // CHROME_RENDERER_EXTENSIONS_ACTIVITY_LOG_CONVERTER_STRATEGY_H_ 64 #endif // CHROME_RENDERER_EXTENSIONS_ACTIVITY_LOG_CONVERTER_STRATEGY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698