| 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 #ifndef CHROME_BROWSER_INTERNAL_AUTH_H_ | 5 #ifndef CHROME_BROWSER_INTERNAL_AUTH_H_ |
| 6 #define CHROME_BROWSER_INTERNAL_AUTH_H_ | 6 #define CHROME_BROWSER_INTERNAL_AUTH_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/macros.h" |
| 13 | 13 |
| 14 namespace chrome { | 14 namespace chrome { |
| 15 | 15 |
| 16 // Call InternalAuthVerification methods on any thread. | 16 // Call InternalAuthVerification methods on any thread. |
| 17 class InternalAuthVerification { | 17 class InternalAuthVerification { |
| 18 public: | 18 public: |
| 19 // Used by consumer of passport in order to verify credentials. | 19 // Used by consumer of passport in order to verify credentials. |
| 20 static bool VerifyPassport( | 20 static bool VerifyPassport( |
| 21 const std::string& passport, | 21 const std::string& passport, |
| 22 const std::string& domain, | 22 const std::string& domain, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 const std::string& domain, | 62 const std::string& domain, |
| 63 const std::map<std::string, std::string>& var_value_map); | 63 const std::map<std::string, std::string>& var_value_map); |
| 64 | 64 |
| 65 // Used only by tests. | 65 // Used only by tests. |
| 66 static void GenerateNewKey(); | 66 static void GenerateNewKey(); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace chrome | 69 } // namespace chrome |
| 70 | 70 |
| 71 #endif // CHROME_BROWSER_INTERNAL_AUTH_H_ | 71 #endif // CHROME_BROWSER_INTERNAL_AUTH_H_ |
| OLD | NEW |