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

Unified Diff: google_apis/gaia/fake_gaia.h

Issue 118733002: Added merge session request throttle for XHR requests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « chrome/chrome_browser_chromeos.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/fake_gaia.h
diff --git a/google_apis/gaia/fake_gaia.h b/google_apis/gaia/fake_gaia.h
index ae8c5448f63d7ca3b14f1fe54e409f7bcf20dc36..4cf12358f20c108be64d9f5864a91c57ba657381 100644
--- a/google_apis/gaia/fake_gaia.h
+++ b/google_apis/gaia/fake_gaia.h
@@ -73,7 +73,7 @@ class FakeGaia {
};
FakeGaia();
- ~FakeGaia();
+ virtual ~FakeGaia();
// Sets the initial value of tokens and cookies.
void SetMergeSessionParams(const MergeSessionParams& params);
@@ -105,6 +105,11 @@ class FakeGaia {
static bool GetQueryParameter(const std::string& query,
const std::string& key,
std::string* value);
+ protected:
+ // HTTP handler for /MergeSession.
+ virtual void HandleMergeSession(
+ const net::test_server::HttpRequest& request,
+ net::test_server::BasicHttpResponse* http_response);
private:
typedef std::multimap<std::string, AccessTokenInfo> AccessTokenInfoMap;
@@ -130,8 +135,6 @@ class FakeGaia {
net::test_server::BasicHttpResponse* http_response);
void HandleSSO(const net::test_server::HttpRequest& request,
net::test_server::BasicHttpResponse* http_response);
- void HandleMergeSession(const net::test_server::HttpRequest& request,
- net::test_server::BasicHttpResponse* http_response);
void HandleServiceLoginAuth(
const net::test_server::HttpRequest& request,
net::test_server::BasicHttpResponse* http_response);
« no previous file with comments | « chrome/chrome_browser_chromeos.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698