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

Side by Side Diff: google_apis/gaia/gaia_auth_util.h

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 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
« no previous file with comments | « google_apis/gaia/gaia_auth_fetcher_unittest.cc ('k') | google_apis/gaia/gaia_auth_util.cc » ('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 (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_COMMON_NET_GAIA_GAIA_AUTH_UTIL_H_ 5 #ifndef GOOGLE_APIS_GAIA_GAIA_AUTH_UTIL_H_
6 #define CHROME_COMMON_NET_GAIA_GAIA_AUTH_UTIL_H_ 6 #define GOOGLE_APIS_GAIA_GAIA_AUTH_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace gaia { 10 namespace gaia {
11 11
12 // Perform basic canonicalization of |email_address|, taking into account that 12 // Perform basic canonicalization of |email_address|, taking into account that
13 // gmail does not consider '.' or caps inside a username to matter. It also 13 // gmail does not consider '.' or caps inside a username to matter. It also
14 // ignores everything after a '+'. For example, c.masone+abc@gmail.com == 14 // ignores everything after a '+'. For example, c.masone+abc@gmail.com ==
15 // cMaSone@gmail.com, per 15 // cMaSone@gmail.com, per
16 // http://mail.google.com/support/bin/answer.py?hl=en&ctx=mail&answer=10313# 16 // http://mail.google.com/support/bin/answer.py?hl=en&ctx=mail&answer=10313#
17 std::string CanonicalizeEmail(const std::string& email_address); 17 std::string CanonicalizeEmail(const std::string& email_address);
18 18
19 // Returns the canonical form of the given domain. 19 // Returns the canonical form of the given domain.
20 std::string CanonicalizeDomain(const std::string& domain); 20 std::string CanonicalizeDomain(const std::string& domain);
21 21
22 // Sanitize emails. Currently, it only ensures all emails have a domain by 22 // Sanitize emails. Currently, it only ensures all emails have a domain by
23 // adding gmail.com if no domain is present. 23 // adding gmail.com if no domain is present.
24 std::string SanitizeEmail(const std::string& email_address); 24 std::string SanitizeEmail(const std::string& email_address);
25 25
26 // Extract the domain part from the canonical form of the given email. 26 // Extract the domain part from the canonical form of the given email.
27 std::string ExtractDomainName(const std::string& email); 27 std::string ExtractDomainName(const std::string& email);
28 28
29 } // namespace gaia 29 } // namespace gaia
30 30
31 #endif // CHROME_COMMON_NET_GAIA_GAIA_AUTH_UTIL_H_ 31 #endif // GOOGLE_APIS_GAIA_GAIA_AUTH_UTIL_H_
OLDNEW
« no previous file with comments | « google_apis/gaia/gaia_auth_fetcher_unittest.cc ('k') | google_apis/gaia/gaia_auth_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698