| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SSL_ERROR_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_ | 6 #define CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "content/public/browser/global_request_id.h" | 14 #include "content/public/browser/global_request_id.h" |
| 15 #include "content/public/common/resource_type.h" | 15 #include "content/public/common/resource_type.h" |
| 16 #include "net/ssl/ssl_info.h" | 16 #include "net/ssl/ssl_info.h" |
| 17 #include "url/gurl.h" | 17 #include "url/gurl.h" |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 class URLRequest; | 20 class URLRequest; |
| 21 } // namespace net | 21 } // namespace net |
| 22 | 22 |
| 23 namespace content { | 23 namespace content { |
| 24 | 24 |
| 25 class ResourceDispatcherHostImpl; | |
| 26 class SSLManager; | |
| 27 class WebContents; | 25 class WebContents; |
| 28 | 26 |
| 29 // SSLErrorHandler is the UI-thread class for handling SSL certificate | 27 // SSLErrorHandler is the UI-thread class for handling SSL certificate |
| 30 // errors. Users of this class can call CancelRequest(), | 28 // errors. Users of this class can call CancelRequest(), |
| 31 // ContinueRequest(), or DenyRequest() when a decision about how to | 29 // ContinueRequest(), or DenyRequest() when a decision about how to |
| 32 // handle the error has been made. Users of this class must | 30 // handle the error has been made. Users of this class must |
| 33 // call exactly one of those methods exactly once. | 31 // call exactly one of those methods exactly once. |
| 34 class SSLErrorHandler { | 32 class SSLErrorHandler { |
| 35 public: | 33 public: |
| 36 // SSLErrorHandler's delegate lives on the IO thread, and thus these | 34 // SSLErrorHandler's delegate lives on the IO thread, and thus these |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 106 |
| 109 // The WebContents associated with the request that generated the error. | 107 // The WebContents associated with the request that generated the error. |
| 110 WebContents* web_contents_; | 108 WebContents* web_contents_; |
| 111 | 109 |
| 112 DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler); | 110 DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler); |
| 113 }; | 111 }; |
| 114 | 112 |
| 115 } // namespace content | 113 } // namespace content |
| 116 | 114 |
| 117 #endif // CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_ | 115 #endif // CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_ |
| OLD | NEW |