| Index: net/http/http_auth_scheme_set.cc
|
| diff --git a/net/http/http_auth_scheme_set.cc b/net/http/http_auth_scheme_set.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..587603b0a842448fb5ebbf899950d8d8f953490b
|
| --- /dev/null
|
| +++ b/net/http/http_auth_scheme_set.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "net/http/http_auth.h"
|
| +#include "net/http/http_auth_scheme_set.h"
|
| +#include "net/http/http_util.h"
|
| +
|
| +namespace net {
|
| +
|
| +HttpAuthSchemeSet::HttpAuthSchemeSet() {}
|
| +
|
| +HttpAuthSchemeSet::~HttpAuthSchemeSet() {}
|
| +
|
| +void HttpAuthSchemeSet::Add(const std::string& scheme) {
|
| + DCHECK(HttpAuth::IsValidNormalizedScheme(scheme));
|
| + schemes_.insert(scheme);
|
| +}
|
| +
|
| +bool HttpAuthSchemeSet::Contains(const std::string& scheme) const {
|
| + DCHECK(HttpAuth::IsValidNormalizedScheme(scheme));
|
| + auto iter = schemes_.find(scheme);
|
| + return iter != schemes_.end();
|
| +}
|
| +
|
| +} // namespace
|
|
|