| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "platform/v8_inspector/V8StringUtil.h" | 5 #include "platform/v8_inspector/V8StringUtil.h" |
| 6 | 6 |
| 7 #include "platform/v8_inspector/V8InspectorImpl.h" | 7 #include "platform/v8_inspector/V8InspectorImpl.h" |
| 8 #include "platform/v8_inspector/V8InspectorSessionImpl.h" | 8 #include "platform/v8_inspector/V8InspectorSessionImpl.h" |
| 9 #include "platform/v8_inspector/V8Regex.h" | 9 #include "platform/v8_inspector/V8Regex.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace v8_inspector { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 String16 findMagicComment(const String16& content, const String16& name, bool mu
ltiline) | 15 String16 findMagicComment(const String16& content, const String16& name, bool mu
ltiline) |
| 16 { | 16 { |
| 17 DCHECK(name.find("=") == String16::kNotFound); | 17 DCHECK(name.find("=") == String16::kNotFound); |
| 18 unsigned length = content.length(); | 18 unsigned length = content.length(); |
| 19 unsigned nameLength = name.length(); | 19 unsigned nameLength = name.length(); |
| 20 | 20 |
| 21 size_t pos = length; | 21 size_t pos = length; |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 if (!propertyValue) | 270 if (!propertyValue) |
| 271 return nullptr; | 271 return nullptr; |
| 272 jsonObject->setValue(toProtocolString(propertyName), std::move(prope
rtyValue)); | 272 jsonObject->setValue(toProtocolString(propertyName), std::move(prope
rtyValue)); |
| 273 } | 273 } |
| 274 return std::move(jsonObject); | 274 return std::move(jsonObject); |
| 275 } | 275 } |
| 276 NOTREACHED(); | 276 NOTREACHED(); |
| 277 return nullptr; | 277 return nullptr; |
| 278 } | 278 } |
| 279 | 279 |
| 280 } // namespace blink | 280 } // namespace v8_inspector |
| OLD | NEW |