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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <deque> | 11 #include <deque> |
12 #include <limits> | 12 #include <limits> |
13 | 13 |
14 #include "base/base64.h" | 14 #include "base/base64.h" |
15 #include "base/lazy_instance.h" | 15 #include "base/lazy_instance.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/scoped_ptr.h" |
17 #include "base/rand_util.h" | 18 #include "base/rand_util.h" |
18 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
19 #include "base/strings/string_split.h" | 20 #include "base/strings/string_split.h" |
20 #include "base/strings/string_util.h" | 21 #include "base/strings/string_util.h" |
21 #include "base/synchronization/lock.h" | 22 #include "base/synchronization/lock.h" |
22 #include "base/threading/thread_checker.h" | 23 #include "base/threading/thread_checker.h" |
23 #include "base/time/time.h" | 24 #include "base/time/time.h" |
24 #include "base/values.h" | 25 #include "base/values.h" |
25 #include "crypto/hmac.h" | 26 #include "crypto/hmac.h" |
26 | 27 |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 const std::string& domain, const VarValueMap& var_value_map) { | 470 const std::string& domain, const VarValueMap& var_value_map) { |
470 return g_generation_service.Get().GeneratePassport(domain, var_value_map, 0); | 471 return g_generation_service.Get().GeneratePassport(domain, var_value_map, 0); |
471 } | 472 } |
472 | 473 |
473 // static | 474 // static |
474 void InternalAuthGeneration::GenerateNewKey() { | 475 void InternalAuthGeneration::GenerateNewKey() { |
475 g_generation_service.Get().GenerateNewKey(); | 476 g_generation_service.Get().GenerateNewKey(); |
476 } | 477 } |
477 | 478 |
478 } // namespace chrome | 479 } // namespace chrome |
OLD | NEW |