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

Unified Diff: net/http/url_security_manager.h

Issue 1151843002: DO NOT LAND Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More. Created 5 years, 7 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: net/http/url_security_manager.h
diff --git a/net/http/url_security_manager.h b/net/http/url_security_manager.h
index c0d93a23296cd0510dd839073b1ed2b028ab6b48..844fc14534769d07e0fb9d605b1e0461edbdae95 100644
--- a/net/http/url_security_manager.h
+++ b/net/http/url_security_manager.h
@@ -8,8 +8,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "net/base/net_export.h"
-
-class GURL;
+#include "url/origin.h"
namespace net {
@@ -46,11 +45,12 @@ class NET_EXPORT URLSecurityManager {
// Returns true if we can send the default credentials to the server at
// |auth_origin| for HTTP NTLM or Negotiate authentication.
- virtual bool CanUseDefaultCredentials(const GURL& auth_origin) const = 0;
+ virtual bool CanUseDefaultCredentials(
+ const url::Origin& auth_origin) const = 0;
// Returns true if Kerberos delegation is allowed for the server at
// |auth_origin| for HTTP Negotiate authentication.
- virtual bool CanDelegate(const GURL& auth_origin) const = 0;
+ virtual bool CanDelegate(const url::Origin& auth_origin) const = 0;
private:
DISALLOW_COPY_AND_ASSIGN(URLSecurityManager);
@@ -64,8 +64,8 @@ class URLSecurityManagerWhitelist : public URLSecurityManager {
~URLSecurityManagerWhitelist() override;
// URLSecurityManager methods.
- bool CanUseDefaultCredentials(const GURL& auth_origin) const override;
- bool CanDelegate(const GURL& auth_origin) const override;
+ bool CanUseDefaultCredentials(const url::Origin& auth_origin) const override;
+ bool CanDelegate(const url::Origin& auth_origin) const override;
private:
scoped_ptr<const HttpAuthFilter> whitelist_default_;

Powered by Google App Engine
This is Rietveld 408576698