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

Side by Side Diff: chrome/browser/internal_auth.cc

Issue 11740018: Cleanup: Remove more unneeded browser_thread.h includes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
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_number_conversions.h" 13 #include "base/string_number_conversions.h"
14 #include "base/string_split.h" 14 #include "base/string_split.h"
15 #include "base/string_util.h" 15 #include "base/string_util.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 "content/public/browser/browser_thread.h"
21 #include "crypto/hmac.h" 20 #include "crypto/hmac.h"
22 21
23 namespace { 22 namespace {
24 23
25 typedef std::map<std::string, std::string> VarValueMap; 24 typedef std::map<std::string, std::string> VarValueMap;
26 25
27 // Size of a tick in microseconds. This determines upper bound for average 26 // Size of a tick in microseconds. This determines upper bound for average
28 // number of passports generated per time unit. This bound equals to 27 // number of passports generated per time unit. This bound equals to
29 // (kMicrosecondsPerSecond / TickUs) calls per second. 28 // (kMicrosecondsPerSecond / TickUs) calls per second.
30 const int64 kTickUs = 10000; 29 const int64 kTickUs = 10000;
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 const std::string& domain, const VarValueMap& var_value_map) { 468 const std::string& domain, const VarValueMap& var_value_map) {
470 return g_generation_service.Get().GeneratePassport(domain, var_value_map, 0); 469 return g_generation_service.Get().GeneratePassport(domain, var_value_map, 0);
471 } 470 }
472 471
473 // static 472 // static
474 void InternalAuthGeneration::GenerateNewKey() { 473 void InternalAuthGeneration::GenerateNewKey() {
475 g_generation_service.Get().GenerateNewKey(); 474 g_generation_service.Get().GenerateNewKey();
476 } 475 }
477 476
478 } // namespace chrome 477 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/history/url_index_private_data.cc ('k') | chrome/browser/internal_auth_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698