OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_BROWSER_SSL_HOST_STATE_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ |
6 #define CONTENT_BROWSER_SSL_HOST_STATE_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "net/cert/x509_certificate.h" | 11 #include "net/cert/x509_certificate.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 // SSLHostStateDelegate may be implemented by the embedder to provide a storage | 15 // SSLHostStateDelegate may be implemented by the embedder to provide a storage |
16 // strategy for certificate decisions. | 16 // strategy for certificate decisions. |
(...skipping 25 matching lines...) Expand all Loading... |
42 // Returns true if any decisions has been recorded for |host|, otherwise | 42 // Returns true if any decisions has been recorded for |host|, otherwise |
43 // false. | 43 // false. |
44 virtual bool HasAllowedOrDeniedCert(const std::string& host) = 0; | 44 virtual bool HasAllowedOrDeniedCert(const std::string& host) = 0; |
45 | 45 |
46 protected: | 46 protected: |
47 virtual ~SSLHostStateDelegate() {} | 47 virtual ~SSLHostStateDelegate() {} |
48 }; | 48 }; |
49 | 49 |
50 } // namespace content | 50 } // namespace content |
51 | 51 |
52 #endif // CONTENT_BROWSER_SSL_HOST_STATE_DELEGATE_H_ | 52 #endif // CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ |
OLD | NEW |