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

Unified Diff: third_party/WebKit/Source/modules/fetch/Headers.cpp

Issue 2591723003: [Fetch API] Remove Headers.prototype.getAll() (Closed)
Patch Set: Update get. 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/fetch/Headers.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Headers.cpp b/third_party/WebKit/Source/modules/fetch/Headers.cpp
index b8b6e61ab79bb9b484c61d15e1210ea3af77f9eb..8c3be952f1cb7a18b35277e31c130830ab09f4cf 100644
--- a/third_party/WebKit/Source/modules/fetch/Headers.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Headers.cpp
@@ -167,21 +167,6 @@ String Headers::get(const String& name, ExceptionState& exception_state) {
return result;
}
-Vector<String> Headers::getAll(const String& name,
- ExceptionState& exception_state) {
- // "The getAll(|name|) method, when invoked, must run these steps:"
- // "1. If |name| is not a name, throw a TypeError."
- if (!FetchHeaderList::IsValidHeaderName(name)) {
- exception_state.ThrowTypeError("Invalid name");
- return Vector<String>();
- }
- // "2. Return the values of all headers in header list whose name is |name|,
- // in list order, and the empty sequence otherwise."
- Vector<String> result;
- header_list_->GetAll(name, result);
- return result;
-}
-
bool Headers::has(const String& name, ExceptionState& exception_state) {
// "The has(|name|) method, when invoked, must run these steps:"
// "1. If |name| is not a name, throw a TypeError."
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Headers.h ('k') | third_party/WebKit/Source/modules/fetch/Headers.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698