| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // call this. | 99 // call this. |
| 100 void TakeNoAction(); | 100 void TakeNoAction(); |
| 101 | 101 |
| 102 int render_process_id() const { return render_process_id_; } | 102 int render_process_id() const { return render_process_id_; } |
| 103 int render_view_id() const { return render_view_id_; } | 103 int render_view_id() const { return render_view_id_; } |
| 104 | 104 |
| 105 protected: | 105 protected: |
| 106 friend class base::RefCountedThreadSafe<SSLErrorHandler>; | 106 friend class base::RefCountedThreadSafe<SSLErrorHandler>; |
| 107 | 107 |
| 108 // Construct on the IO thread. | 108 // Construct on the IO thread. |
| 109 SSLErrorHandler(base::WeakPtr<Delegate> delegate, | 109 SSLErrorHandler(const base::WeakPtr<Delegate>& delegate, |
| 110 const content::GlobalRequestID& id, | 110 const content::GlobalRequestID& id, |
| 111 ResourceType::Type resource_type, | 111 ResourceType::Type resource_type, |
| 112 const GURL& url, | 112 const GURL& url, |
| 113 int render_process_id, | 113 int render_process_id, |
| 114 int render_view_id); | 114 int render_view_id); |
| 115 | 115 |
| 116 virtual ~SSLErrorHandler(); | 116 virtual ~SSLErrorHandler(); |
| 117 | 117 |
| 118 // The following 2 methods are the methods subclasses should implement. | 118 // The following 2 methods are the methods subclasses should implement. |
| 119 virtual void OnDispatchFailed(); | 119 virtual void OnDispatchFailed(); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 const ResourceType::Type resource_type_; | 160 const ResourceType::Type resource_type_; |
| 161 | 161 |
| 162 // A flag to make sure we notify the net::URLRequest exactly once. | 162 // A flag to make sure we notify the net::URLRequest exactly once. |
| 163 // Should only be accessed on the IO thread | 163 // Should only be accessed on the IO thread |
| 164 bool request_has_been_notified_; | 164 bool request_has_been_notified_; |
| 165 | 165 |
| 166 DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler); | 166 DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler); |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 #endif // CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_ | 169 #endif // CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_ |
| OLD | NEW |