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

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

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 23 matching lines...) Expand all
34 // and passes all calls to GCMInvalidationBridge. All calls should be serialized 34 // and passes all calls to GCMInvalidationBridge. All calls should be serialized
35 // through GCMInvalidationBridge to avoid race conditions. 35 // through GCMInvalidationBridge to avoid race conditions.
36 class GCMInvalidationBridge::Core : public syncer::GCMNetworkChannelDelegate, 36 class GCMInvalidationBridge::Core : public syncer::GCMNetworkChannelDelegate,
37 public base::NonThreadSafe { 37 public base::NonThreadSafe {
38 public: 38 public:
39 Core(base::WeakPtr<GCMInvalidationBridge> bridge, 39 Core(base::WeakPtr<GCMInvalidationBridge> bridge,
40 scoped_refptr<base::SingleThreadTaskRunner> ui_thread_task_runner); 40 scoped_refptr<base::SingleThreadTaskRunner> ui_thread_task_runner);
41 virtual ~Core(); 41 virtual ~Core();
42 42
43 // syncer::GCMNetworkChannelDelegate implementation. 43 // syncer::GCMNetworkChannelDelegate implementation.
44 virtual void Initialize(ConnectionStateCallback callback) OVERRIDE; 44 virtual void Initialize(ConnectionStateCallback callback) override;
45 virtual void RequestToken(RequestTokenCallback callback) OVERRIDE; 45 virtual void RequestToken(RequestTokenCallback callback) override;
46 virtual void InvalidateToken(const std::string& token) OVERRIDE; 46 virtual void InvalidateToken(const std::string& token) override;
47 virtual void Register(RegisterCallback callback) OVERRIDE; 47 virtual void Register(RegisterCallback callback) override;
48 virtual void SetMessageReceiver(MessageCallback callback) OVERRIDE; 48 virtual void SetMessageReceiver(MessageCallback callback) override;
49 49
50 void RequestTokenFinished(RequestTokenCallback callback, 50 void RequestTokenFinished(RequestTokenCallback callback,
51 const GoogleServiceAuthError& error, 51 const GoogleServiceAuthError& error,
52 const std::string& token); 52 const std::string& token);
53 53
54 void RegisterFinished(RegisterCallback callback, 54 void RegisterFinished(RegisterCallback callback,
55 const std::string& registration_id, 55 const std::string& registration_id,
56 gcm::GCMClient::Result result); 56 gcm::GCMClient::Result result);
57 57
58 void OnIncomingMessage(const std::string& message, 58 void OnIncomingMessage(const std::string& message,
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 void GCMInvalidationBridge::OnDisconnected() { 352 void GCMInvalidationBridge::OnDisconnected() {
353 core_thread_task_runner_->PostTask( 353 core_thread_task_runner_->PostTask(
354 FROM_HERE, 354 FROM_HERE,
355 base::Bind(&GCMInvalidationBridge::Core::OnConnectionStateChanged, 355 base::Bind(&GCMInvalidationBridge::Core::OnConnectionStateChanged,
356 core_, 356 core_,
357 false)); 357 false));
358 } 358 }
359 359
360 360
361 } // namespace invalidation 361 } // namespace invalidation
OLDNEW
« no previous file with comments | « components/invalidation/gcm_invalidation_bridge.h ('k') | components/invalidation/gcm_network_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698