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

Side by Side Diff: components/invalidation/push_client_channel.h

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 #ifndef COMPONENTS_INVALIDATION_PUSH_CLIENT_CHANNEL_H_ 5 #ifndef COMPONENTS_INVALIDATION_PUSH_CLIENT_CHANNEL_H_
6 #define COMPONENTS_INVALIDATION_PUSH_CLIENT_CHANNEL_H_ 6 #define COMPONENTS_INVALIDATION_PUSH_CLIENT_CHANNEL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 15 matching lines...) Expand all
26 : public SyncNetworkChannel, 26 : public SyncNetworkChannel,
27 public NON_EXPORTED_BASE(notifier::PushClientObserver) { 27 public NON_EXPORTED_BASE(notifier::PushClientObserver) {
28 public: 28 public:
29 // |push_client| is guaranteed to be destroyed only when this object 29 // |push_client| is guaranteed to be destroyed only when this object
30 // is destroyed. 30 // is destroyed.
31 explicit PushClientChannel(scoped_ptr<notifier::PushClient> push_client); 31 explicit PushClientChannel(scoped_ptr<notifier::PushClient> push_client);
32 32
33 virtual ~PushClientChannel(); 33 virtual ~PushClientChannel();
34 34
35 // invalidation::NetworkChannel implementation. 35 // invalidation::NetworkChannel implementation.
36 virtual void SendMessage(const std::string& message) OVERRIDE; 36 virtual void SendMessage(const std::string& message) override;
37 virtual void RequestDetailedStatus( 37 virtual void RequestDetailedStatus(
38 base::Callback<void(const base::DictionaryValue&)> callback) OVERRIDE; 38 base::Callback<void(const base::DictionaryValue&)> callback) override;
39 39
40 // SyncNetworkChannel implementation. 40 // SyncNetworkChannel implementation.
41 // If not connected, connects with the given credentials. If 41 // If not connected, connects with the given credentials. If
42 // already connected, the next connection attempt will use the given 42 // already connected, the next connection attempt will use the given
43 // credentials. 43 // credentials.
44 virtual void UpdateCredentials(const std::string& email, 44 virtual void UpdateCredentials(const std::string& email,
45 const std::string& token) OVERRIDE; 45 const std::string& token) override;
46 virtual int GetInvalidationClientType() OVERRIDE; 46 virtual int GetInvalidationClientType() override;
47 47
48 // notifier::PushClient::Observer implementation. 48 // notifier::PushClient::Observer implementation.
49 virtual void OnNotificationsEnabled() OVERRIDE; 49 virtual void OnNotificationsEnabled() override;
50 virtual void OnNotificationsDisabled( 50 virtual void OnNotificationsDisabled(
51 notifier::NotificationsDisabledReason reason) OVERRIDE; 51 notifier::NotificationsDisabledReason reason) override;
52 virtual void OnIncomingNotification( 52 virtual void OnIncomingNotification(
53 const notifier::Notification& notification) OVERRIDE; 53 const notifier::Notification& notification) override;
54 54
55 const std::string& GetServiceContextForTest() const; 55 const std::string& GetServiceContextForTest() const;
56 56
57 int64 GetSchedulingHashForTest() const; 57 int64 GetSchedulingHashForTest() const;
58 58
59 static std::string EncodeMessageForTest(const std::string& message, 59 static std::string EncodeMessageForTest(const std::string& message,
60 const std::string& service_context, 60 const std::string& service_context,
61 int64 scheduling_hash); 61 int64 scheduling_hash);
62 62
63 static bool DecodeMessageForTest(const std::string& notification, 63 static bool DecodeMessageForTest(const std::string& notification,
(...skipping 18 matching lines...) Expand all
82 82
83 // This count is saved for displaying statatistics. 83 // This count is saved for displaying statatistics.
84 int sent_messages_count_; 84 int sent_messages_count_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(PushClientChannel); 86 DISALLOW_COPY_AND_ASSIGN(PushClientChannel);
87 }; 87 };
88 88
89 } // namespace syncer 89 } // namespace syncer
90 90
91 #endif // COMPONENTS_INVALIDATION_PUSH_CLIENT_CHANNEL_H_ 91 #endif // COMPONENTS_INVALIDATION_PUSH_CLIENT_CHANNEL_H_
OLDNEW
« no previous file with comments | « components/invalidation/profile_invalidation_provider.h ('k') | components/invalidation/push_client_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698