Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: chrome/browser/ssl/ssl_blocking_page.h

Issue 179028: Revert "Fix a ton of compiler warnings." (Closed)
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/spellchecker.cc ('k') | chrome/browser/ssl/ssl_policy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_BLOCKING_PAGE_H_ 5 #ifndef CHROME_BROWSER_SSL_BLOCKING_PAGE_H_
6 #define CHROME_BROWSER_SSL_BLOCKING_PAGE_H_ 6 #define CHROME_BROWSER_SSL_BLOCKING_PAGE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/ssl/ssl_error_info.h" 10 #include "chrome/browser/ssl/ssl_error_info.h"
11 #include "chrome/browser/tab_contents/interstitial_page.h" 11 #include "chrome/browser/tab_contents/interstitial_page.h"
(...skipping 12 matching lines...) Expand all
24 public: 24 public:
25 // Should return the information about the error that causes this blocking 25 // Should return the information about the error that causes this blocking
26 // page. 26 // page.
27 virtual SSLErrorInfo GetSSLErrorInfo(SSLCertErrorHandler* handler) = 0; 27 virtual SSLErrorInfo GetSSLErrorInfo(SSLCertErrorHandler* handler) = 0;
28 28
29 // Notification that the user chose to reject the certificate. 29 // Notification that the user chose to reject the certificate.
30 virtual void OnDenyCertificate(SSLCertErrorHandler* handler) = 0; 30 virtual void OnDenyCertificate(SSLCertErrorHandler* handler) = 0;
31 31
32 // Notification that the user chose to accept the certificate. 32 // Notification that the user chose to accept the certificate.
33 virtual void OnAllowCertificate(SSLCertErrorHandler* handler) = 0; 33 virtual void OnAllowCertificate(SSLCertErrorHandler* handler) = 0;
34
35 protected:
36 ~Delegate() {}
37 }; 34 };
38 35
39 SSLBlockingPage(SSLCertErrorHandler* handler, Delegate* delegate); 36 SSLBlockingPage(SSLCertErrorHandler* handler, Delegate* delegate);
40 virtual ~SSLBlockingPage(); 37 virtual ~SSLBlockingPage();
41 38
42 // A method that sets strings in the specified dictionary from the passed 39 // A method that sets strings in the specified dictionary from the passed
43 // vector so that they can be used to resource the ssl_roadblock.html/ 40 // vector so that they can be used to resource the ssl_roadblock.html/
44 // ssl_error.html files. 41 // ssl_error.html files.
45 // Note: there can be up to 5 strings in |extra_info|. 42 // Note: there can be up to 5 strings in |extra_info|.
46 static void SetExtraInfo(DictionaryValue* strings, 43 static void SetExtraInfo(DictionaryValue* strings,
(...skipping 20 matching lines...) Expand all
67 Delegate* delegate_; 64 Delegate* delegate_;
68 65
69 // A flag to indicate if we've notified |delegate_| of the user's decision. 66 // A flag to indicate if we've notified |delegate_| of the user's decision.
70 bool delegate_has_been_notified_; 67 bool delegate_has_been_notified_;
71 68
72 69
73 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); 70 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage);
74 }; 71 };
75 72
76 #endif // #ifndef CHROME_BROWSER_SSL_BLOCKING_PAGE_H_ 73 #endif // #ifndef CHROME_BROWSER_SSL_BLOCKING_PAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/spellchecker.cc ('k') | chrome/browser/ssl/ssl_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698