| 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 #include "extensions/renderer/activity_log_converter_strategy.h" | 5 #include "extensions/renderer/activity_log_converter_strategy.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/values.h" | 9 #include "base/values.h" |
| 9 #include "v8/include/v8.h" | 10 #include "v8/include/v8.h" |
| 10 | 11 |
| 11 namespace extensions { | 12 namespace extensions { |
| 12 | 13 |
| 13 namespace { | 14 namespace { |
| 14 | 15 |
| 15 // Summarize a V8 value. This performs a shallow conversion in all cases, and | 16 // Summarize a V8 value. This performs a shallow conversion in all cases, and |
| 16 // returns only a string with a description of the value (e.g., | 17 // returns only a string with a description of the value (e.g., |
| 17 // "[HTMLElement]"). | 18 // "[HTMLElement]"). |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 v8::Isolate* isolate, | 74 v8::Isolate* isolate, |
| 74 const FromV8ValueCallback& callback) const { | 75 const FromV8ValueCallback& callback) const { |
| 75 scoped_ptr<base::Value> parsed_value; | 76 scoped_ptr<base::Value> parsed_value; |
| 76 parsed_value = SummarizeV8Value(isolate, value); | 77 parsed_value = SummarizeV8Value(isolate, value); |
| 77 *out = parsed_value.release(); | 78 *out = parsed_value.release(); |
| 78 | 79 |
| 79 return true; | 80 return true; |
| 80 } | 81 } |
| 81 | 82 |
| 82 } // namespace extensions | 83 } // namespace extensions |
| OLD | NEW |