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

Side by Side Diff: google_apis/google_api_keys.h

Issue 131743018: Add a function for determining if official Google Chrome API key is used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | google_apis/google_api_keys.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 GOOGLE_APIS_GOOGLE_API_KEYS_H_ 5 #ifndef GOOGLE_APIS_GOOGLE_API_KEYS_H_
6 #define GOOGLE_APIS_GOOGLE_API_KEYS_H_ 6 #define GOOGLE_APIS_GOOGLE_API_KEYS_H_
7 7
8 // If you add more includes to this file, you also need to add them to 8 // If you add more includes to this file, you also need to add them to
9 // google_api_keys_unittest.cc. 9 // google_api_keys_unittest.cc.
10 #include <string> 10 #include <string>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // e.g. URL-escaped if you use it in a URL. 83 // e.g. URL-escaped if you use it in a URL.
84 std::string GetOAuth2ClientID(OAuth2Client client); 84 std::string GetOAuth2ClientID(OAuth2Client client);
85 85
86 // Retrieves the OAuth2 client secret for the specified client, or the 86 // Retrieves the OAuth2 client secret for the specified client, or the
87 // empty string if not set. 87 // empty string if not set.
88 // 88 //
89 // Note that the secret should be escaped for the context you use it 89 // Note that the secret should be escaped for the context you use it
90 // in, e.g. URL-escaped if you use it in a URL. 90 // in, e.g. URL-escaped if you use it in a URL.
91 std::string GetOAuth2ClientSecret(OAuth2Client client); 91 std::string GetOAuth2ClientSecret(OAuth2Client client);
92 92
93 // Returns if the API key using in the current build is the one for official
94 // Google Chrome.
95 bool IsGoogleChromeAPIKeyUsed();
96
93 } // namespace google_apis 97 } // namespace google_apis
94 98
95 #endif // GOOGLE_APIS_GOOGLE_API_KEYS_H_ 99 #endif // GOOGLE_APIS_GOOGLE_API_KEYS_H_
OLDNEW
« no previous file with comments | « no previous file | google_apis/google_api_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698