OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 NET_SSL_DEFAULT_CHANNEL_ID_STORE_H_ | 5 #ifndef NET_SSL_DEFAULT_CHANNEL_ID_STORE_H_ |
6 #define NET_SSL_DEFAULT_CHANNEL_ID_STORE_H_ | 6 #define NET_SSL_DEFAULT_CHANNEL_ID_STORE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 explicit DefaultChannelIDStore(PersistentStore* store); | 42 explicit DefaultChannelIDStore(PersistentStore* store); |
43 | 43 |
44 virtual ~DefaultChannelIDStore(); | 44 virtual ~DefaultChannelIDStore(); |
45 | 45 |
46 // ChannelIDStore implementation. | 46 // ChannelIDStore implementation. |
47 virtual int GetChannelID( | 47 virtual int GetChannelID( |
48 const std::string& server_identifier, | 48 const std::string& server_identifier, |
49 base::Time* expiration_time, | 49 base::Time* expiration_time, |
50 std::string* private_key_result, | 50 std::string* private_key_result, |
51 std::string* cert_result, | 51 std::string* cert_result, |
52 const GetChannelIDCallback& callback) OVERRIDE; | 52 const GetChannelIDCallback& callback) override; |
53 virtual void SetChannelID( | 53 virtual void SetChannelID( |
54 const std::string& server_identifier, | 54 const std::string& server_identifier, |
55 base::Time creation_time, | 55 base::Time creation_time, |
56 base::Time expiration_time, | 56 base::Time expiration_time, |
57 const std::string& private_key, | 57 const std::string& private_key, |
58 const std::string& cert) OVERRIDE; | 58 const std::string& cert) override; |
59 virtual void DeleteChannelID( | 59 virtual void DeleteChannelID( |
60 const std::string& server_identifier, | 60 const std::string& server_identifier, |
61 const base::Closure& callback) OVERRIDE; | 61 const base::Closure& callback) override; |
62 virtual void DeleteAllCreatedBetween( | 62 virtual void DeleteAllCreatedBetween( |
63 base::Time delete_begin, | 63 base::Time delete_begin, |
64 base::Time delete_end, | 64 base::Time delete_end, |
65 const base::Closure& callback) OVERRIDE; | 65 const base::Closure& callback) override; |
66 virtual void DeleteAll(const base::Closure& callback) OVERRIDE; | 66 virtual void DeleteAll(const base::Closure& callback) override; |
67 virtual void GetAllChannelIDs( | 67 virtual void GetAllChannelIDs( |
68 const GetChannelIDListCallback& callback) OVERRIDE; | 68 const GetChannelIDListCallback& callback) override; |
69 virtual int GetChannelIDCount() OVERRIDE; | 69 virtual int GetChannelIDCount() override; |
70 virtual void SetForceKeepSessionState() OVERRIDE; | 70 virtual void SetForceKeepSessionState() override; |
71 | 71 |
72 private: | 72 private: |
73 class Task; | 73 class Task; |
74 class GetChannelIDTask; | 74 class GetChannelIDTask; |
75 class SetChannelIDTask; | 75 class SetChannelIDTask; |
76 class DeleteChannelIDTask; | 76 class DeleteChannelIDTask; |
77 class DeleteAllCreatedBetweenTask; | 77 class DeleteAllCreatedBetweenTask; |
78 class GetAllChannelIDsTask; | 78 class GetAllChannelIDsTask; |
79 | 79 |
80 // Deletes all of the certs. Does not delete them from |store_|. | 80 // Deletes all of the certs. Does not delete them from |store_|. |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 PersistentStore(); | 183 PersistentStore(); |
184 virtual ~PersistentStore(); | 184 virtual ~PersistentStore(); |
185 | 185 |
186 private: | 186 private: |
187 DISALLOW_COPY_AND_ASSIGN(PersistentStore); | 187 DISALLOW_COPY_AND_ASSIGN(PersistentStore); |
188 }; | 188 }; |
189 | 189 |
190 } // namespace net | 190 } // namespace net |
191 | 191 |
192 #endif // NET_SSL_DEFAULT_CHANNEL_ID_STORE_H_ | 192 #endif // NET_SSL_DEFAULT_CHANNEL_ID_STORE_H_ |
OLD | NEW |