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

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

Issue 2101863004: net: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 <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
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
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
OLDNEW
« no previous file with comments | « net/ssl/client_key_store.cc ('k') | net/tools/cert_verify_tool/verify_using_cert_verify_proc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698