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

Unified Diff: net/http/http_auth_filter.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « net/http/http_auth_controller_unittest.cc ('k') | net/http/http_auth_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_filter.h
diff --git a/net/http/http_auth_filter.h b/net/http/http_auth_filter.h
deleted file mode 100644
index 260da47c16d1832189e498e7f98ee0c7c57ff84a..0000000000000000000000000000000000000000
--- a/net/http/http_auth_filter.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2011 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.
-
-#ifndef NET_HTTP_HTTP_AUTH_FILTER_H_
-#define NET_HTTP_HTTP_AUTH_FILTER_H_
-
-#include <list>
-#include <string>
-
-#include "net/base/net_export.h"
-#include "net/http/http_auth.h"
-#include "net/proxy/proxy_bypass_rules.h"
-
-class GURL;
-
-namespace net {
-
-// |HttpAuthFilter|s determine whether an authentication scheme should be
-// allowed for a particular peer.
-class NET_EXPORT_PRIVATE HttpAuthFilter {
- public:
- virtual ~HttpAuthFilter() {}
-
- // Checks if (|url|, |target|) is supported by the authentication scheme.
- // Only the host of |url| is examined.
- virtual bool IsValid(const GURL& url, HttpAuth::Target target) const = 0;
-};
-
-// Whitelist HTTP authentication filter.
-// Explicit whitelists of domains are set via SetWhitelist().
-//
-// Uses the ProxyBypassRules class to do whitelisting for servers.
-// All proxies are allowed.
-class NET_EXPORT HttpAuthFilterWhitelist : public HttpAuthFilter {
- public:
- explicit HttpAuthFilterWhitelist(const std::string& server_whitelist);
- ~HttpAuthFilterWhitelist() override;
-
- // Adds an individual URL |filter| to the list, of the specified |target|.
- bool AddFilter(const std::string& filter, HttpAuth::Target target);
-
- // Adds a rule that bypasses all "local" hostnames.
- void AddRuleToBypassLocal();
-
- const ProxyBypassRules& rules() const { return rules_; }
-
- // HttpAuthFilter methods:
- bool IsValid(const GURL& url, HttpAuth::Target target) const override;
-
- private:
- // Installs the whitelist.
- // |server_whitelist| is parsed by ProxyBypassRules.
- void SetWhitelist(const std::string& server_whitelist);
-
- // We are using ProxyBypassRules because they have the functionality that we
- // want, but we are not using it for proxy bypass.
- ProxyBypassRules rules_;
-
- DISALLOW_COPY_AND_ASSIGN(HttpAuthFilterWhitelist);
-};
-
-} // namespace net
-
-#endif // NET_HTTP_HTTP_AUTH_FILTER_H_
« no previous file with comments | « net/http/http_auth_controller_unittest.cc ('k') | net/http/http_auth_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698