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

Side by Side Diff: Source/core/platform/network/HTTPParsers.cpp

Issue 19762007: core/platform: Include wtf files using "wtf/foo.h" form. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 2 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
3 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 4 * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
5 * Copyright (C) 2009 Google Inc. All rights reserved. 5 * Copyright (C) 2009 Google Inc. All rights reserved.
6 * Copyright (C) 2011 Apple Inc. All Rights Reserved. 6 * Copyright (C) 2011 Apple Inc. All Rights Reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 16 matching lines...) Expand all
27 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 27 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
28 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */ 31 */
32 32
33 #include "config.h" 33 #include "config.h"
34 #include "core/platform/network/HTTPParsers.h" 34 #include "core/platform/network/HTTPParsers.h"
35 35
36 #include "core/page/ContentSecurityPolicy.h" 36 #include "core/page/ContentSecurityPolicy.h"
37 #include <wtf/DateMath.h> 37 #include "wtf/DateMath.h"
38 #include <wtf/text/CString.h> 38 #include "wtf/text/CString.h"
39 #include <wtf/text/StringBuilder.h> 39 #include "wtf/text/StringBuilder.h"
40 #include <wtf/text/WTFString.h> 40 #include "wtf/text/WTFString.h"
41 #include <wtf/unicode/CharacterNames.h> 41 #include "wtf/unicode/CharacterNames.h"
42 42
43 using namespace WTF; 43 using namespace WTF;
44 44
45 namespace WebCore { 45 namespace WebCore {
46 46
47 // true if there is more to parse, after incrementing pos past whitespace. 47 // true if there is more to parse, after incrementing pos past whitespace.
48 // Note: Might return pos == str.length() 48 // Note: Might return pos == str.length()
49 static inline bool skipWhiteSpace(const String& str, unsigned& pos, bool fromHtt pEquivMeta) 49 static inline bool skipWhiteSpace(const String& str, unsigned& pos, bool fromHtt pEquivMeta)
50 { 50 {
51 unsigned len = str.length(); 51 unsigned len = str.length();
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 678
679 size_t parseHTTPRequestBody(const char* data, size_t length, Vector<unsigned cha r>& body) 679 size_t parseHTTPRequestBody(const char* data, size_t length, Vector<unsigned cha r>& body)
680 { 680 {
681 body.clear(); 681 body.clear();
682 body.append(data, length); 682 body.append(data, length);
683 683
684 return length; 684 return length;
685 } 685 }
686 686
687 } 687 }
OLDNEW
« no previous file with comments | « Source/core/platform/network/HTTPParsers.h ('k') | Source/core/platform/network/HTTPRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698