| OLD | NEW |
| 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 EXTENSIONS_RENDERER_ACTIVITY_LOG_CONVERTER_STRATEGY_H_ | 5 #ifndef EXTENSIONS_RENDERER_ACTIVITY_LOG_CONVERTER_STRATEGY_H_ |
| 6 #define EXTENSIONS_RENDERER_ACTIVITY_LOG_CONVERTER_STRATEGY_H_ | 6 #define EXTENSIONS_RENDERER_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 12 matching lines...) Expand all Loading... |
| 23 typedef content::V8ValueConverter::Strategy::FromV8ValueCallback | 23 typedef content::V8ValueConverter::Strategy::FromV8ValueCallback |
| 24 FromV8ValueCallback; | 24 FromV8ValueCallback; |
| 25 | 25 |
| 26 ActivityLogConverterStrategy(); | 26 ActivityLogConverterStrategy(); |
| 27 virtual ~ActivityLogConverterStrategy(); | 27 virtual ~ActivityLogConverterStrategy(); |
| 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 | 38 |
| 39 private: | 39 private: |
| 40 bool FromV8Internal(v8::Handle<v8::Object> value, | 40 bool FromV8Internal(v8::Handle<v8::Object> value, |
| 41 base::Value** out, | 41 base::Value** out, |
| 42 v8::Isolate* isolate, | 42 v8::Isolate* isolate, |
| 43 const FromV8ValueCallback& callback) const; | 43 const FromV8ValueCallback& callback) const; |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(ActivityLogConverterStrategy); | 45 DISALLOW_COPY_AND_ASSIGN(ActivityLogConverterStrategy); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace extensions | 48 } // namespace extensions |
| 49 | 49 |
| 50 #endif // EXTENSIONS_RENDERER_ACTIVITY_LOG_CONVERTER_STRATEGY_H_ | 50 #endif // EXTENSIONS_RENDERER_ACTIVITY_LOG_CONVERTER_STRATEGY_H_ |
| OLD | NEW |