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: remoting/host/token_validator_base.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « remoting/host/token_validator_base.h ('k') | remoting/host/token_validator_factory_impl.h » ('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 "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
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
OLDNEW
« no previous file with comments | « remoting/host/token_validator_base.h ('k') | remoting/host/token_validator_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698