| 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 "config.h" | 5 #include "sky/engine/config.h" |
| 6 | 6 |
| 7 #include "platform/TracedValue.h" | 7 #include "sky/engine/platform/TracedValue.h" |
| 8 | 8 |
| 9 #include "platform/JSONValues.h" | 9 #include "sky/engine/platform/JSONValues.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 String threadSafeCopy(const String& string) | 15 String threadSafeCopy(const String& string) |
| 16 { | 16 { |
| 17 RefPtr<StringImpl> copy(string.impl()); | 17 RefPtr<StringImpl> copy(string.impl()); |
| 18 if (string.isSafeToSendToAnotherThread()) | 18 if (string.isSafeToSendToAnotherThread()) |
| 19 return string; | 19 return string; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 } | 133 } |
| 134 | 134 |
| 135 JSONArray* TracedValue::currentArray() const | 135 JSONArray* TracedValue::currentArray() const |
| 136 { | 136 { |
| 137 ASSERT(!m_stack.isEmpty()); | 137 ASSERT(!m_stack.isEmpty()); |
| 138 ASSERT(m_stack.last()->type() == JSONValue::TypeArray); | 138 ASSERT(m_stack.last()->type() == JSONValue::TypeArray); |
| 139 return static_cast<JSONArray*>(m_stack.last().get()); | 139 return static_cast<JSONArray*>(m_stack.last().get()); |
| 140 } | 140 } |
| 141 | 141 |
| 142 } | 142 } |
| OLD | NEW |