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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebHTTPLoadInfo.cpp

Issue 2521483002: Remove ResourceLoaderInfo::encodedDataLength (Closed)
Patch Set: fix Created 4 years 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 WebString WebHTTPLoadInfo::httpStatusText() const { 68 WebString WebHTTPLoadInfo::httpStatusText() const {
69 ASSERT(!m_private.isNull()); 69 ASSERT(!m_private.isNull());
70 return m_private->httpStatusText; 70 return m_private->httpStatusText;
71 } 71 }
72 72
73 void WebHTTPLoadInfo::setHTTPStatusText(const WebString& statusText) { 73 void WebHTTPLoadInfo::setHTTPStatusText(const WebString& statusText) {
74 ASSERT(!m_private.isNull()); 74 ASSERT(!m_private.isNull());
75 m_private->httpStatusText = statusText; 75 m_private->httpStatusText = statusText;
76 } 76 }
77 77
78 long long WebHTTPLoadInfo::encodedDataLength() const {
79 ASSERT(!m_private.isNull());
80 return m_private->encodedDataLength;
81 }
82
83 void WebHTTPLoadInfo::setEncodedDataLength(long long encodedDataLength) {
84 ASSERT(!m_private.isNull());
85 m_private->encodedDataLength = encodedDataLength;
86 }
87
88 static void addHeader(HTTPHeaderMap* map, 78 static void addHeader(HTTPHeaderMap* map,
89 const WebString& name, 79 const WebString& name,
90 const WebString& value) { 80 const WebString& value) {
91 HTTPHeaderMap::AddResult result = map->add(name, value); 81 HTTPHeaderMap::AddResult result = map->add(name, value);
92 // It is important that values are separated by '\n', not comma, otherwise 82 // It is important that values are separated by '\n', not comma, otherwise
93 // Set-Cookie header is not parseable. 83 // Set-Cookie header is not parseable.
94 if (!result.isNewEntry) 84 if (!result.isNewEntry)
95 result.storedValue->value = 85 result.storedValue->value =
96 result.storedValue->value + "\n" + String(value); 86 result.storedValue->value + "\n" + String(value);
97 } 87 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 return m_private->npnNegotiatedProtocol; 123 return m_private->npnNegotiatedProtocol;
134 } 124 }
135 125
136 void WebHTTPLoadInfo::setNPNNegotiatedProtocol( 126 void WebHTTPLoadInfo::setNPNNegotiatedProtocol(
137 const WebString& npnNegotiatedProtocol) { 127 const WebString& npnNegotiatedProtocol) {
138 ASSERT(!m_private.isNull()); 128 ASSERT(!m_private.isNull());
139 m_private->npnNegotiatedProtocol = npnNegotiatedProtocol; 129 m_private->npnNegotiatedProtocol = npnNegotiatedProtocol;
140 } 130 }
141 131
142 } // namespace blink 132 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698