| OLD | NEW |
| 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 #include "chrome/renderer/extensions/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/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/common/extensions/ad_injection_constants.h" | 9 #include "extensions/common/ad_injection_constants.h" |
| 10 #include "v8/include/v8.h" | 10 #include "v8/include/v8.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 typedef ActivityLogConverterStrategy::FromV8ValueCallback FromV8ValueCallback; | 16 typedef ActivityLogConverterStrategy::FromV8ValueCallback FromV8ValueCallback; |
| 17 | 17 |
| 18 namespace constants = ad_injection_constants; | 18 namespace constants = ad_injection_constants; |
| 19 namespace keys = constants::keys; | 19 namespace keys = constants::keys; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 if (enable_detailed_parsing_) | 180 if (enable_detailed_parsing_) |
| 181 parsed_value = ParseV8Object(isolate, *value, callback); | 181 parsed_value = ParseV8Object(isolate, *value, callback); |
| 182 if (!parsed_value.get()) | 182 if (!parsed_value.get()) |
| 183 parsed_value = SummarizeV8Value(isolate, value); | 183 parsed_value = SummarizeV8Value(isolate, value); |
| 184 *out = parsed_value.release(); | 184 *out = parsed_value.release(); |
| 185 | 185 |
| 186 return true; | 186 return true; |
| 187 } | 187 } |
| 188 | 188 |
| 189 } // namespace extensions | 189 } // namespace extensions |
| OLD | NEW |