| 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_SSL_HELPER_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_SSL_HELPER_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_SSL_HELPER_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_SSL_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 | 14 |
| 15 class SSLAddCertHandler; | 15 class SSLAddCertHandler; |
| 16 class TabContentsWrapper; | 16 class TabContents; |
| 17 typedef TabContents TabContentsWrapper; |
| 17 | 18 |
| 18 namespace net { | 19 namespace net { |
| 19 class HttpNetworkSession; | 20 class HttpNetworkSession; |
| 20 class SSLCertRequestInfo; | 21 class SSLCertRequestInfo; |
| 21 class X509Certificate; | 22 class X509Certificate; |
| 22 } | 23 } |
| 23 | 24 |
| 24 class TabContentsSSLHelper { | 25 class TabContentsSSLHelper { |
| 25 public: | 26 public: |
| 26 explicit TabContentsSSLHelper(TabContentsWrapper* tab_contents); | 27 explicit TabContentsSSLHelper(TabContentsWrapper* tab_contents); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 65 |
| 65 class SSLAddCertData; | 66 class SSLAddCertData; |
| 66 std::map<int, linked_ptr<SSLAddCertData> > request_id_to_add_cert_data_; | 67 std::map<int, linked_ptr<SSLAddCertData> > request_id_to_add_cert_data_; |
| 67 | 68 |
| 68 SSLAddCertData* GetAddCertData(SSLAddCertHandler* handler); | 69 SSLAddCertData* GetAddCertData(SSLAddCertHandler* handler); |
| 69 | 70 |
| 70 DISALLOW_COPY_AND_ASSIGN(TabContentsSSLHelper); | 71 DISALLOW_COPY_AND_ASSIGN(TabContentsSSLHelper); |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_SSL_HELPER_H_ | 74 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_SSL_HELPER_H_ |
| OLD | NEW |