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

Side by Side Diff: net/ssl/default_channel_id_store.cc

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 years, 2 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 | « net/ssl/default_channel_id_store.h ('k') | net/ssl/default_channel_id_store_unittest.cc » ('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 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 #include "net/ssl/default_channel_id_store.h" 5 #include "net/ssl/default_channel_id_store.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 36
37 // -------------------------------------------------------------------------- 37 // --------------------------------------------------------------------------
38 // GetChannelIDTask 38 // GetChannelIDTask
39 class DefaultChannelIDStore::GetChannelIDTask 39 class DefaultChannelIDStore::GetChannelIDTask
40 : public DefaultChannelIDStore::Task { 40 : public DefaultChannelIDStore::Task {
41 public: 41 public:
42 GetChannelIDTask(const std::string& server_identifier, 42 GetChannelIDTask(const std::string& server_identifier,
43 const GetChannelIDCallback& callback); 43 const GetChannelIDCallback& callback);
44 virtual ~GetChannelIDTask(); 44 virtual ~GetChannelIDTask();
45 virtual void Run(DefaultChannelIDStore* store) OVERRIDE; 45 virtual void Run(DefaultChannelIDStore* store) override;
46 46
47 private: 47 private:
48 std::string server_identifier_; 48 std::string server_identifier_;
49 GetChannelIDCallback callback_; 49 GetChannelIDCallback callback_;
50 }; 50 };
51 51
52 DefaultChannelIDStore::GetChannelIDTask::GetChannelIDTask( 52 DefaultChannelIDStore::GetChannelIDTask::GetChannelIDTask(
53 const std::string& server_identifier, 53 const std::string& server_identifier,
54 const GetChannelIDCallback& callback) 54 const GetChannelIDCallback& callback)
55 : server_identifier_(server_identifier), 55 : server_identifier_(server_identifier),
(...skipping 21 matching lines...) Expand all
77 // SetChannelIDTask 77 // SetChannelIDTask
78 class DefaultChannelIDStore::SetChannelIDTask 78 class DefaultChannelIDStore::SetChannelIDTask
79 : public DefaultChannelIDStore::Task { 79 : public DefaultChannelIDStore::Task {
80 public: 80 public:
81 SetChannelIDTask(const std::string& server_identifier, 81 SetChannelIDTask(const std::string& server_identifier,
82 base::Time creation_time, 82 base::Time creation_time,
83 base::Time expiration_time, 83 base::Time expiration_time,
84 const std::string& private_key, 84 const std::string& private_key,
85 const std::string& cert); 85 const std::string& cert);
86 virtual ~SetChannelIDTask(); 86 virtual ~SetChannelIDTask();
87 virtual void Run(DefaultChannelIDStore* store) OVERRIDE; 87 virtual void Run(DefaultChannelIDStore* store) override;
88 88
89 private: 89 private:
90 std::string server_identifier_; 90 std::string server_identifier_;
91 base::Time creation_time_; 91 base::Time creation_time_;
92 base::Time expiration_time_; 92 base::Time expiration_time_;
93 std::string private_key_; 93 std::string private_key_;
94 std::string cert_; 94 std::string cert_;
95 }; 95 };
96 96
97 DefaultChannelIDStore::SetChannelIDTask::SetChannelIDTask( 97 DefaultChannelIDStore::SetChannelIDTask::SetChannelIDTask(
(...skipping 19 matching lines...) Expand all
117 } 117 }
118 118
119 // -------------------------------------------------------------------------- 119 // --------------------------------------------------------------------------
120 // DeleteChannelIDTask 120 // DeleteChannelIDTask
121 class DefaultChannelIDStore::DeleteChannelIDTask 121 class DefaultChannelIDStore::DeleteChannelIDTask
122 : public DefaultChannelIDStore::Task { 122 : public DefaultChannelIDStore::Task {
123 public: 123 public:
124 DeleteChannelIDTask(const std::string& server_identifier, 124 DeleteChannelIDTask(const std::string& server_identifier,
125 const base::Closure& callback); 125 const base::Closure& callback);
126 virtual ~DeleteChannelIDTask(); 126 virtual ~DeleteChannelIDTask();
127 virtual void Run(DefaultChannelIDStore* store) OVERRIDE; 127 virtual void Run(DefaultChannelIDStore* store) override;
128 128
129 private: 129 private:
130 std::string server_identifier_; 130 std::string server_identifier_;
131 base::Closure callback_; 131 base::Closure callback_;
132 }; 132 };
133 133
134 DefaultChannelIDStore::DeleteChannelIDTask:: 134 DefaultChannelIDStore::DeleteChannelIDTask::
135 DeleteChannelIDTask( 135 DeleteChannelIDTask(
136 const std::string& server_identifier, 136 const std::string& server_identifier,
137 const base::Closure& callback) 137 const base::Closure& callback)
(...skipping 14 matching lines...) Expand all
152 152
153 // -------------------------------------------------------------------------- 153 // --------------------------------------------------------------------------
154 // DeleteAllCreatedBetweenTask 154 // DeleteAllCreatedBetweenTask
155 class DefaultChannelIDStore::DeleteAllCreatedBetweenTask 155 class DefaultChannelIDStore::DeleteAllCreatedBetweenTask
156 : public DefaultChannelIDStore::Task { 156 : public DefaultChannelIDStore::Task {
157 public: 157 public:
158 DeleteAllCreatedBetweenTask(base::Time delete_begin, 158 DeleteAllCreatedBetweenTask(base::Time delete_begin,
159 base::Time delete_end, 159 base::Time delete_end,
160 const base::Closure& callback); 160 const base::Closure& callback);
161 virtual ~DeleteAllCreatedBetweenTask(); 161 virtual ~DeleteAllCreatedBetweenTask();
162 virtual void Run(DefaultChannelIDStore* store) OVERRIDE; 162 virtual void Run(DefaultChannelIDStore* store) override;
163 163
164 private: 164 private:
165 base::Time delete_begin_; 165 base::Time delete_begin_;
166 base::Time delete_end_; 166 base::Time delete_end_;
167 base::Closure callback_; 167 base::Closure callback_;
168 }; 168 };
169 169
170 DefaultChannelIDStore::DeleteAllCreatedBetweenTask:: 170 DefaultChannelIDStore::DeleteAllCreatedBetweenTask::
171 DeleteAllCreatedBetweenTask( 171 DeleteAllCreatedBetweenTask(
172 base::Time delete_begin, 172 base::Time delete_begin,
(...skipping 15 matching lines...) Expand all
188 InvokeCallback(callback_); 188 InvokeCallback(callback_);
189 } 189 }
190 190
191 // -------------------------------------------------------------------------- 191 // --------------------------------------------------------------------------
192 // GetAllChannelIDsTask 192 // GetAllChannelIDsTask
193 class DefaultChannelIDStore::GetAllChannelIDsTask 193 class DefaultChannelIDStore::GetAllChannelIDsTask
194 : public DefaultChannelIDStore::Task { 194 : public DefaultChannelIDStore::Task {
195 public: 195 public:
196 explicit GetAllChannelIDsTask(const GetChannelIDListCallback& callback); 196 explicit GetAllChannelIDsTask(const GetChannelIDListCallback& callback);
197 virtual ~GetAllChannelIDsTask(); 197 virtual ~GetAllChannelIDsTask();
198 virtual void Run(DefaultChannelIDStore* store) OVERRIDE; 198 virtual void Run(DefaultChannelIDStore* store) override;
199 199
200 private: 200 private:
201 std::string server_identifier_; 201 std::string server_identifier_;
202 GetChannelIDListCallback callback_; 202 GetChannelIDListCallback callback_;
203 }; 203 };
204 204
205 DefaultChannelIDStore::GetAllChannelIDsTask:: 205 DefaultChannelIDStore::GetAllChannelIDsTask::
206 GetAllChannelIDsTask(const GetChannelIDListCallback& callback) 206 GetAllChannelIDsTask(const GetChannelIDListCallback& callback)
207 : callback_(callback) { 207 : callback_(callback) {
208 } 208 }
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 if (store_.get()) 462 if (store_.get())
463 store_->AddChannelID(*channel_id); 463 store_->AddChannelID(*channel_id);
464 channel_ids_[server_identifier] = channel_id; 464 channel_ids_[server_identifier] = channel_id;
465 } 465 }
466 466
467 DefaultChannelIDStore::PersistentStore::PersistentStore() {} 467 DefaultChannelIDStore::PersistentStore::PersistentStore() {}
468 468
469 DefaultChannelIDStore::PersistentStore::~PersistentStore() {} 469 DefaultChannelIDStore::PersistentStore::~PersistentStore() {}
470 470
471 } // namespace net 471 } // namespace net
OLDNEW
« no previous file with comments | « net/ssl/default_channel_id_store.h ('k') | net/ssl/default_channel_id_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698