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

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

Issue 1969043002: Fix include path for moved thread_task_runner_handle.h header in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/threaded_ssl_private_key.h" 5 #include "net/ssl/threaded_ssl_private_key.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/task_runner.h" 12 #include "base/task_runner.h"
13 #include "base/task_runner_util.h" 13 #include "base/task_runner_util.h"
14 #include "base/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
15 15
16 namespace net { 16 namespace net {
17 17
18 namespace { 18 namespace {
19 19
20 void DoCallback(const base::WeakPtr<ThreadedSSLPrivateKey>& key, 20 void DoCallback(const base::WeakPtr<ThreadedSSLPrivateKey>& key,
21 const ThreadedSSLPrivateKey::SignCallback& callback, 21 const ThreadedSSLPrivateKey::SignCallback& callback,
22 std::vector<uint8_t>* signature, 22 std::vector<uint8_t>* signature,
23 Error error) { 23 Error error) {
24 if (!key) 24 if (!key)
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 task_runner_.get(), FROM_HERE, 76 task_runner_.get(), FROM_HERE,
77 base::Bind(&ThreadedSSLPrivateKey::Core::SignDigest, core_, hash, 77 base::Bind(&ThreadedSSLPrivateKey::Core::SignDigest, core_, hash,
78 input.as_string(), base::Unretained(signature)), 78 input.as_string(), base::Unretained(signature)),
79 base::Bind(&DoCallback, weak_factory_.GetWeakPtr(), callback, 79 base::Bind(&DoCallback, weak_factory_.GetWeakPtr(), callback,
80 base::Owned(signature))); 80 base::Owned(signature)));
81 } 81 }
82 82
83 ThreadedSSLPrivateKey::~ThreadedSSLPrivateKey() {} 83 ThreadedSSLPrivateKey::~ThreadedSSLPrivateKey() {}
84 84
85 } // namespace net 85 } // namespace net
OLDNEW
« no previous file with comments | « net/ssl/default_channel_id_store_unittest.cc ('k') | net/test/embedded_test_server/default_handlers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698