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

Side by Side Diff: third_party/WebKit/Source/platform/json/JSONParser.cpp

Issue 2803603002: Rewrite references to "wtf/" to "platform/wtf/" in platform/json. (Closed)
Patch Set: Created 3 years, 8 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/json/JSONParser.h" 5 #include "platform/json/JSONParser.h"
6 6
7 #include "platform/Decimal.h" 7 #include "platform/Decimal.h"
8 #include "platform/json/JSONValues.h" 8 #include "platform/json/JSONValues.h"
9 #include "wtf/text/StringBuilder.h" 9 #include "platform/wtf/text/StringBuilder.h"
10 #include "wtf/text/StringToNumber.h" 10 #include "platform/wtf/text/StringToNumber.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 namespace { 14 namespace {
15 15
16 const int kMaxStackLimit = 1000; 16 const int kMaxStackLimit = 1000;
17 17
18 enum Token { 18 enum Token {
19 ObjectBegin, 19 ObjectBegin,
20 ObjectEnd, 20 ObjectEnd,
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 if (maxDepth < 0) 538 if (maxDepth < 0)
539 maxDepth = 0; 539 maxDepth = 0;
540 if (maxDepth > kMaxStackLimit) 540 if (maxDepth > kMaxStackLimit)
541 maxDepth = kMaxStackLimit; 541 maxDepth = kMaxStackLimit;
542 if (json.is8Bit()) 542 if (json.is8Bit())
543 return parseJSONInternal(json.characters8(), json.length(), maxDepth); 543 return parseJSONInternal(json.characters8(), json.length(), maxDepth);
544 return parseJSONInternal(json.characters16(), json.length(), maxDepth); 544 return parseJSONInternal(json.characters16(), json.length(), maxDepth);
545 } 545 }
546 546
547 } // namespace blink 547 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/json/JSONParser.h ('k') | third_party/WebKit/Source/platform/json/JSONParserFuzzer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698