OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_HTTP_URL_SECURITY_MANAGER_H_ | 5 #ifndef NET_HTTP_URL_SECURITY_MANAGER_H_ |
6 #define NET_HTTP_URL_SECURITY_MANAGER_H_ | 6 #define NET_HTTP_URL_SECURITY_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "net/base/net_api.h" | 11 #include "net/base/net_export.h" |
12 | 12 |
13 class GURL; | 13 class GURL; |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 class HttpAuthFilter; | 17 class HttpAuthFilter; |
18 | 18 |
19 // The URL security manager controls the policies (allow, deny, prompt user) | 19 // The URL security manager controls the policies (allow, deny, prompt user) |
20 // regarding URL actions (e.g., sending the default credentials to a server). | 20 // regarding URL actions (e.g., sending the default credentials to a server). |
21 class NET_API URLSecurityManager { | 21 class NET_EXPORT URLSecurityManager { |
22 public: | 22 public: |
23 URLSecurityManager() {} | 23 URLSecurityManager() {} |
24 virtual ~URLSecurityManager() {} | 24 virtual ~URLSecurityManager() {} |
25 | 25 |
26 // Creates a platform-dependent instance of URLSecurityManager. | 26 // Creates a platform-dependent instance of URLSecurityManager. |
27 // | 27 // |
28 // |whitelist_default| is the whitelist of servers that default credentials | 28 // |whitelist_default| is the whitelist of servers that default credentials |
29 // can be used with during NTLM or Negotiate authentication. If | 29 // can be used with during NTLM or Negotiate authentication. If |
30 // |whitelist_default| is NULL and the platform is Windows, it indicates | 30 // |whitelist_default| is NULL and the platform is Windows, it indicates |
31 // that security zone mapping should be used to determine whether default | 31 // that security zone mapping should be used to determine whether default |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 private: | 71 private: |
72 scoped_ptr<const HttpAuthFilter> whitelist_default_; | 72 scoped_ptr<const HttpAuthFilter> whitelist_default_; |
73 scoped_ptr<const HttpAuthFilter> whitelist_delegate_; | 73 scoped_ptr<const HttpAuthFilter> whitelist_delegate_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(URLSecurityManagerWhitelist); | 75 DISALLOW_COPY_AND_ASSIGN(URLSecurityManagerWhitelist); |
76 }; | 76 }; |
77 | 77 |
78 } // namespace net | 78 } // namespace net |
79 | 79 |
80 #endif // NET_HTTP_URL_SECURITY_MANAGER_H_ | 80 #endif // NET_HTTP_URL_SECURITY_MANAGER_H_ |
OLD | NEW |