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

Unified Diff: components/gcm_driver/fake_gcm_app_handler.h

Issue 320993003: [GCM] Add app handler support for connection events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/gcm_driver/default_gcm_app_handler.cc ('k') | components/gcm_driver/fake_gcm_app_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/fake_gcm_app_handler.h
diff --git a/components/gcm_driver/fake_gcm_app_handler.h b/components/gcm_driver/fake_gcm_app_handler.h
index fb98957e308a6eedfd6df0f207dfdd5ca83cad0f..629a9cae1b63c8126e4684187d23a9ffff6a8a73 100644
--- a/components/gcm_driver/fake_gcm_app_handler.h
+++ b/components/gcm_driver/fake_gcm_app_handler.h
@@ -33,10 +33,11 @@ class FakeGCMAppHandler : public GCMAppHandler {
const GCMClient::SendErrorDetails& send_error_details() const {
return send_error_details_;
}
+ bool connected() const { return connected_; }
void WaitForNotification();
- // GCMAppHandler:
+ // GCMAppHandler implementation.
virtual void ShutdownHandler() OVERRIDE;
virtual void OnMessage(const std::string& app_id,
const GCMClient::IncomingMessage& message) OVERRIDE;
@@ -44,6 +45,8 @@ class FakeGCMAppHandler : public GCMAppHandler {
virtual void OnSendError(
const std::string& app_id,
const GCMClient::SendErrorDetails& send_error_details) OVERRIDE;
+ virtual void OnConnected(const net::IPEndPoint& ip_endpoint) OVERRIDE;
+ virtual void OnDisconnected() OVERRIDE;
private:
void ClearResults();
@@ -54,6 +57,7 @@ class FakeGCMAppHandler : public GCMAppHandler {
std::string app_id_;
GCMClient::IncomingMessage message_;
GCMClient::SendErrorDetails send_error_details_;
+ bool connected_;
DISALLOW_COPY_AND_ASSIGN(FakeGCMAppHandler);
};
« no previous file with comments | « components/gcm_driver/default_gcm_app_handler.cc ('k') | components/gcm_driver/fake_gcm_app_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698