OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/internal_auth.h" | 5 #include "chrome/browser/internal_auth.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
13 #include "base/string_split.h" | |
14 #include "base/string_util.h" | 13 #include "base/string_util.h" |
15 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_split.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
18 #include "base/time.h" | 18 #include "base/time.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "crypto/hmac.h" | 20 #include "crypto/hmac.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 typedef std::map<std::string, std::string> VarValueMap; | 24 typedef std::map<std::string, std::string> VarValueMap; |
25 | 25 |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 const std::string& domain, const VarValueMap& var_value_map) { | 468 const std::string& domain, const VarValueMap& var_value_map) { |
469 return g_generation_service.Get().GeneratePassport(domain, var_value_map, 0); | 469 return g_generation_service.Get().GeneratePassport(domain, var_value_map, 0); |
470 } | 470 } |
471 | 471 |
472 // static | 472 // static |
473 void InternalAuthGeneration::GenerateNewKey() { | 473 void InternalAuthGeneration::GenerateNewKey() { |
474 g_generation_service.Get().GenerateNewKey(); | 474 g_generation_service.Get().GenerateNewKey(); |
475 } | 475 } |
476 | 476 |
477 } // namespace chrome | 477 } // namespace chrome |
OLD | NEW |