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

Unified Diff: google_apis/gaia/gaia_auth_util.h

Issue 2575603002: Add data usage tracking for GAIA auth api (Closed)
Patch Set: rebased Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: google_apis/gaia/gaia_auth_util.h
diff --git a/google_apis/gaia/gaia_auth_util.h b/google_apis/gaia/gaia_auth_util.h
index d9fbf04a7083dd2634fd58fb053d26ce7c4797fe..f71ad99ebd9480e2a94724139a8c6376d212fe2d 100644
--- a/google_apis/gaia/gaia_auth_util.h
+++ b/google_apis/gaia/gaia_auth_util.h
@@ -11,6 +11,11 @@
class GURL;
+namespace net {
+class URLRequest;
+class URLFetcher;
+};
+
namespace gaia {
struct ListedAccount {
@@ -59,6 +64,12 @@ bool ParseListAccountsData(const std::string& data,
std::vector<ListedAccount>* accounts,
std::vector<ListedAccount>* signed_out_accounts);
+// Returns true if the URL request originated from GAIA.
+bool RequestOriginatedFromGaia(const net::URLRequest& request);
+
+// Marks the URL request as a Gaia request.
+void MarkURLFetcherAsGaia(net::URLFetcher* request);
+
} // namespace gaia
#endif // GOOGLE_APIS_GAIA_GAIA_AUTH_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698