Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SSL_SSL_ERROR_CLASSIFICATION_H_ | |
| 6 #define CHROME_BROWSER_SSL_SSL_ERROR_CLASSIFICATION_H_ | |
| 7 #endif | |
| 8 | |
| 9 #include "base/time/time.h" | |
| 10 #include "net/cert/x509_certificate.h" | |
| 11 | |
| 12 // This class describes the functions which will be useful in calculating the | |
| 13 // severity score when the SSL Error is Date Invalid. | |
|
felt
2014/07/09 19:00:45
this class doesn't have to be specific to Date Inv
radhikabhar
2014/07/10 17:14:47
Done.
| |
| 14 class SSLErrorClassification { | |
| 15 public : | |
|
felt
2014/07/09 19:00:45
the spacing should be
public: // one space
fl
| |
| 16 // A function which calcualtes the weight of the client characteristics in | |
| 17 // contributing towards the SSL error. | |
| 18 float ClientCharacteristics(); | |
| 19 | |
| 20 // A function which calculates the weight of the server characteristics in | |
| 21 // contributing towards the SSL error. | |
| 22 float ServerCharacteristics(); | |
| 23 | |
| 24 static bool IsUserClockInThePast(bool overridable, base::Time time_now); | |
| 25 static bool IsUserClockInTheFuture(bool overridable, base::Time time_now); | |
| 26 | |
| 27 SSLErrorClassification(base::Time current_time, | |
| 28 net::X509Certificate* cert); | |
| 29 ~SSLErrorClassification(); | |
|
felt
2014/07/09 19:00:45
I don't think these methods are in the right order
radhikabhar
2014/07/10 17:14:47
Done.
| |
| 30 | |
| 31 private: | |
| 32 | |
|
felt
2014/07/09 19:00:45
nit: no enter here
radhikabhar
2014/07/10 17:14:47
Done.
| |
| 33 float TimePassedSinceExpiry(); | |
| 34 | |
| 35 // This stores the current time. | |
| 36 base::Time current_time_; | |
| 37 | |
| 38 // This stores the certificate. | |
| 39 net::X509Certificate* cert_ ; | |
| 40 }; | |
| OLD | NEW |