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

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/FetchUtils.h

Issue 2797983002: Rewrite references to "wtf/" to "platform/wtf/" in platform/loader. (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 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 #ifndef FetchUtils_h 5 #ifndef FetchUtils_h
6 #define FetchUtils_h 6 #define FetchUtils_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "wtf/Allocator.h" 9 #include "platform/wtf/Allocator.h"
10 #include "wtf/Forward.h" 10 #include "platform/wtf/Forward.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class HTTPHeaderMap; 14 class HTTPHeaderMap;
15 15
16 class PLATFORM_EXPORT FetchUtils { 16 class PLATFORM_EXPORT FetchUtils {
17 STATIC_ONLY(FetchUtils); 17 STATIC_ONLY(FetchUtils);
18 18
19 public: 19 public:
20 static bool isSimpleMethod(const String& method); 20 static bool isSimpleMethod(const String& method);
(...skipping 14 matching lines...) Expand all
35 35
36 // https://fetch.spec.whatwg.org/#ok-status aka a successful 2xx status 36 // https://fetch.spec.whatwg.org/#ok-status aka a successful 2xx status
37 // code, https://tools.ietf.org/html/rfc7231#section-6.3 . We opt to use 37 // code, https://tools.ietf.org/html/rfc7231#section-6.3 . We opt to use
38 // the Fetch term in naming the predicate. 38 // the Fetch term in naming the predicate.
39 static bool isOkStatus(int status) { return status >= 200 && status < 300; } 39 static bool isOkStatus(int status) { return status >= 200 && status < 300; }
40 }; 40 };
41 41
42 } // namespace blink 42 } // namespace blink
43 43
44 #endif 44 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698