Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8StringUtil.cpp

Issue 2246233002: [DevTools] Move platform/v8_inspector classes under v8_inspector namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698