| 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 CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ | 5 #ifndef CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ |
| 6 #define CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ | 6 #define CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 // A method that sets strings in the specified dictionary from the passed | 33 // A method that sets strings in the specified dictionary from the passed |
| 34 // vector so that they can be used to resource the ssl_roadblock.html/ | 34 // vector so that they can be used to resource the ssl_roadblock.html/ |
| 35 // ssl_error.html files. | 35 // ssl_error.html files. |
| 36 // Note: there can be up to 5 strings in |extra_info|. | 36 // Note: there can be up to 5 strings in |extra_info|. |
| 37 static void SetExtraInfo(base::DictionaryValue* strings, | 37 static void SetExtraInfo(base::DictionaryValue* strings, |
| 38 const std::vector<string16>& extra_info); | 38 const std::vector<string16>& extra_info); |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 // ChromeInterstitialPage implementation. | 41 // ChromeInterstitialPage implementation. |
| 42 virtual std::string GetHTMLContents(); | 42 virtual std::string GetHTMLContents() OVERRIDE; |
| 43 virtual void CommandReceived(const std::string& command); | 43 virtual void CommandReceived(const std::string& command) OVERRIDE; |
| 44 virtual void UpdateEntry(NavigationEntry* entry); | 44 virtual void UpdateEntry(NavigationEntry* entry) OVERRIDE; |
| 45 virtual void Proceed(); | 45 virtual void Proceed() OVERRIDE; |
| 46 virtual void DontProceed(); | 46 virtual void DontProceed() OVERRIDE; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 void NotifyDenyCertificate(); | 49 void NotifyDenyCertificate(); |
| 50 void NotifyAllowCertificate(); | 50 void NotifyAllowCertificate(); |
| 51 | 51 |
| 52 // The error we represent. We will either call CancelRequest() or | 52 // The error we represent. We will either call CancelRequest() or |
| 53 // ContinueRequest() on this object. | 53 // ContinueRequest() on this object. |
| 54 scoped_refptr<SSLCertErrorHandler> handler_; | 54 scoped_refptr<SSLCertErrorHandler> handler_; |
| 55 | 55 |
| 56 base::Callback<void(SSLCertErrorHandler*, bool)> callback_; | 56 base::Callback<void(SSLCertErrorHandler*, bool)> callback_; |
| 57 | 57 |
| 58 // Is the certificate error overridable or fatal? | 58 // Is the certificate error overridable or fatal? |
| 59 bool overridable_; | 59 bool overridable_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); | 61 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ | 64 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ |
| OLD | NEW |