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_COMMON_NET_GOOGLE_APIS_GOOGLE_API_KEYS_H_ | 5 #ifndef GOOGLE_APIS_GOOGLE_API_KEYS_H_ |
6 #define CHROME_COMMON_NET_GOOGLE_APIS_GOOGLE_API_KEYS_H_ | 6 #define GOOGLE_APIS_GOOGLE_API_KEYS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 // These functions enable you to retrieve keys to use for Google APIs | 10 // These functions enable you to retrieve keys to use for Google APIs |
11 // such as Translate and Safe Browsing. | 11 // such as Translate and Safe Browsing. |
12 // | 12 // |
13 // You can retrieve either an "API key" (sometimes called a developer | 13 // You can retrieve either an "API key" (sometimes called a developer |
14 // key) which identifies you (or the company you work for) as a | 14 // key) which identifies you (or the company you work for) as a |
15 // developer, or you can retrieve the "client ID" and "client secret" | 15 // developer, or you can retrieve the "client ID" and "client secret" |
16 // used by you (or the company you work for) to generate OAuth2 | 16 // used by you (or the company you work for) to generate OAuth2 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 // Retrieves the OAuth2 client secret for the specified client, or the | 80 // Retrieves the OAuth2 client secret for the specified client, or the |
81 // empty string if not set. | 81 // empty string if not set. |
82 // | 82 // |
83 // Note that the secret should be escaped for the context you use it | 83 // Note that the secret should be escaped for the context you use it |
84 // in, e.g. URL-escaped if you use it in a URL. | 84 // in, e.g. URL-escaped if you use it in a URL. |
85 std::string GetOAuth2ClientSecret(OAuth2Client client); | 85 std::string GetOAuth2ClientSecret(OAuth2Client client); |
86 | 86 |
87 } // namespace google_apis | 87 } // namespace google_apis |
88 | 88 |
89 #endif // CHROME_COMMON_NET_GOOGLE_APIS_GOOGLE_API_KEYS_H_ | 89 #endif // GOOGLE_APIS_GOOGLE_API_KEYS_H_ |
OLD | NEW |