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

Side by Side Diff: components/invalidation/gcm_invalidation_bridge.cc

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/invalidation/gcm_invalidation_bridge.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/location.h" 6 #include "base/location.h"
7 #include "base/single_thread_task_runner.h" 7 #include "base/single_thread_task_runner.h"
8 #include "base/thread_task_runner_handle.h" 8 #include "base/thread_task_runner_handle.h"
9 #include "components/gcm_driver/gcm_driver.h" 9 #include "components/gcm_driver/gcm_driver.h"
10 #include "components/invalidation/gcm_invalidation_bridge.h" 10 #include "components/invalidation/gcm_invalidation_bridge.h"
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // callback so this should be no-op in desktop version as well. 309 // callback so this should be no-op in desktop version as well.
310 } 310 }
311 311
312 void GCMInvalidationBridge::OnSendError( 312 void GCMInvalidationBridge::OnSendError(
313 const std::string& app_id, 313 const std::string& app_id,
314 const gcm::GCMClient::SendErrorDetails& send_error_details) { 314 const gcm::GCMClient::SendErrorDetails& send_error_details) {
315 // cacheinvalidation doesn't send messages over GCM. 315 // cacheinvalidation doesn't send messages over GCM.
316 NOTREACHED(); 316 NOTREACHED();
317 } 317 }
318 318
319 void GCMInvalidationBridge::OnConnected(const net::IPEndPoint& ip_endpoint) {
320 // TODO(pavely): update invalidator state.
321 }
322
323 void GCMInvalidationBridge::OnDisconnected() {
324 // TODO(pavely): update invalidator state.
325 }
326
327
319 } // namespace invalidation 328 } // namespace invalidation
OLDNEW
« no previous file with comments | « components/invalidation/gcm_invalidation_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698