| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSIONS_INSTALL_SIGNER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_INSTALL_SIGNER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_INSTALL_SIGNER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_INSTALL_SIGNER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // The time this signature was obtained from the server. Note that this | 41 // The time this signature was obtained from the server. Note that this |
| 42 // is computed locally and *not* signed by the server key. | 42 // is computed locally and *not* signed by the server key. |
| 43 base::Time timestamp; | 43 base::Time timestamp; |
| 44 | 44 |
| 45 // The set of ids that the server indicated were invalid (ie not signed). | 45 // The set of ids that the server indicated were invalid (ie not signed). |
| 46 // Note that this is computed locally and *not* signed by the signature. | 46 // Note that this is computed locally and *not* signed by the signature. |
| 47 ExtensionIdSet invalid_ids; | 47 ExtensionIdSet invalid_ids; |
| 48 | 48 |
| 49 InstallSignature(); | 49 InstallSignature(); |
| 50 InstallSignature(const InstallSignature& other); |
| 50 ~InstallSignature(); | 51 ~InstallSignature(); |
| 51 | 52 |
| 52 // Helper methods for serialization to/from a base::DictionaryValue. | 53 // Helper methods for serialization to/from a base::DictionaryValue. |
| 53 void ToValue(base::DictionaryValue* value) const; | 54 void ToValue(base::DictionaryValue* value) const; |
| 54 | 55 |
| 55 static scoped_ptr<InstallSignature> FromValue( | 56 static scoped_ptr<InstallSignature> FromValue( |
| 56 const base::DictionaryValue& value); | 57 const base::DictionaryValue& value); |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 // Objects of this class encapsulate an operation to get a signature proving | 60 // Objects of this class encapsulate an operation to get a signature proving |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 120 |
| 120 // The time the request to the server was started. | 121 // The time the request to the server was started. |
| 121 base::Time request_start_time_; | 122 base::Time request_start_time_; |
| 122 | 123 |
| 123 DISALLOW_COPY_AND_ASSIGN(InstallSigner); | 124 DISALLOW_COPY_AND_ASSIGN(InstallSigner); |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 } // namespace extensions | 127 } // namespace extensions |
| 127 | 128 |
| 128 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_SIGNER_H_ | 129 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_SIGNER_H_ |
| OLD | NEW |