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 "remoting/host/token_validator_base.h" | 5 #include "remoting/host/token_validator_base.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/base64.h" | 9 #include "base/base64.h" |
8 #include "base/bind.h" | 10 #include "base/bind.h" |
9 #include "base/callback.h" | 11 #include "base/callback.h" |
10 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
12 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
13 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
14 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
15 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "build/build_config.h" |
16 #include "net/base/escape.h" | 19 #include "net/base/escape.h" |
17 #include "net/base/io_buffer.h" | 20 #include "net/base/io_buffer.h" |
18 #include "net/base/request_priority.h" | 21 #include "net/base/request_priority.h" |
19 #include "net/base/upload_bytes_element_reader.h" | 22 #include "net/base/upload_bytes_element_reader.h" |
20 #include "net/base/upload_data_stream.h" | 23 #include "net/base/upload_data_stream.h" |
21 #include "net/ssl/client_cert_store.h" | 24 #include "net/ssl/client_cert_store.h" |
22 #if defined(USE_NSS_CERTS) | 25 #if defined(USE_NSS_CERTS) |
23 #include "net/ssl/client_cert_store_nss.h" | 26 #include "net/ssl/client_cert_store_nss.h" |
24 #elif defined(OS_WIN) | 27 #elif defined(OS_WIN) |
25 #include "net/ssl/client_cert_store_win.h" | 28 #include "net/ssl/client_cert_store_win.h" |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 return std::string(); | 224 return std::string(); |
222 } | 225 } |
223 | 226 |
224 std::string shared_secret; | 227 std::string shared_secret; |
225 // Everything is valid, so return the shared secret to the caller. | 228 // Everything is valid, so return the shared secret to the caller. |
226 dict->GetStringWithoutPathExpansion("access_token", &shared_secret); | 229 dict->GetStringWithoutPathExpansion("access_token", &shared_secret); |
227 return shared_secret; | 230 return shared_secret; |
228 } | 231 } |
229 | 232 |
230 } // namespace remoting | 233 } // namespace remoting |
OLD | NEW |