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 #include "net/ssl/default_channel_id_store.h" | 5 #include "net/ssl/default_channel_id_store.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 return ERR_FILE_NOT_FOUND; | 242 return ERR_FILE_NOT_FOUND; |
243 | 243 |
244 ChannelID* channel_id = it->second; | 244 ChannelID* channel_id = it->second; |
245 key_result->reset(channel_id->key()->Copy()); | 245 key_result->reset(channel_id->key()->Copy()); |
246 | 246 |
247 return OK; | 247 return OK; |
248 } | 248 } |
249 | 249 |
250 void DefaultChannelIDStore::SetChannelID( | 250 void DefaultChannelIDStore::SetChannelID( |
251 std::unique_ptr<ChannelID> channel_id) { | 251 std::unique_ptr<ChannelID> channel_id) { |
252 auto task = new SetChannelIDTask(std::move(channel_id)); | 252 auto* task = new SetChannelIDTask(std::move(channel_id)); |
253 RunOrEnqueueTask(std::unique_ptr<Task>(task)); | 253 RunOrEnqueueTask(std::unique_ptr<Task>(task)); |
254 } | 254 } |
255 | 255 |
256 void DefaultChannelIDStore::DeleteChannelID( | 256 void DefaultChannelIDStore::DeleteChannelID( |
257 const std::string& server_identifier, | 257 const std::string& server_identifier, |
258 const base::Closure& callback) { | 258 const base::Closure& callback) { |
259 RunOrEnqueueTask(std::unique_ptr<Task>( | 259 RunOrEnqueueTask(std::unique_ptr<Task>( |
260 new DeleteChannelIDTask(server_identifier, callback))); | 260 new DeleteChannelIDTask(server_identifier, callback))); |
261 } | 261 } |
262 | 262 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 447 |
448 bool DefaultChannelIDStore::IsEphemeral() { | 448 bool DefaultChannelIDStore::IsEphemeral() { |
449 return store_.get() == nullptr; | 449 return store_.get() == nullptr; |
450 } | 450 } |
451 | 451 |
452 DefaultChannelIDStore::PersistentStore::PersistentStore() {} | 452 DefaultChannelIDStore::PersistentStore::PersistentStore() {} |
453 | 453 |
454 DefaultChannelIDStore::PersistentStore::~PersistentStore() {} | 454 DefaultChannelIDStore::PersistentStore::~PersistentStore() {} |
455 | 455 |
456 } // namespace net | 456 } // namespace net |
OLD | NEW |