OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_ | |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/basictypes.h" | |
11 | |
12 namespace PasswordManagerUtil { | |
Garrett Casto
2013/08/28 01:09:17
Namespace are lowercase (http://google-styleguide.
| |
13 | |
14 const std::string kMonitoredDomainName[] = { | |
Garrett Casto
2013/08/28 01:09:17
Use char* instead of std::string (http://google-st
| |
15 "google.com", | |
16 "yahoo.com", | |
17 "baidu.com", | |
18 "wikipedia.org", | |
19 "linkedin.com", | |
20 "twitter.com", | |
21 "live.com", | |
22 "amazon.com", | |
23 }; | |
24 | |
25 const size_t kMonitoredDomainNameLength = arraysize(kMonitoredDomainName); | |
26 | |
27 // Check wether the |url_host| is monitored or not. If yes, we put the | |
Garrett Casto
2013/08/28 01:09:17
"whether"
| |
28 // domain name into |domain_name| | |
29 bool IsDomainNameMonitored(const std::string& url_host, | |
Garrett Casto
2013/08/28 01:09:17
Should probably have some basic unit testing for t
| |
30 std::string& domain_name); | |
Garrett Casto
2013/08/28 01:09:17
It is very rare for functions in Chrome to use a r
| |
31 | |
32 } // namespace PasswordManagerUtil | |
33 | |
34 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_ | |
OLD | NEW |