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

Side by Side Diff: components/invalidation/p2p_invalidation_service.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 #include "base/callback_forward.h" 5 #include "base/callback_forward.h"
6 #include "base/memory/ref_counted.h" 6 #include "base/memory/ref_counted.h"
7 #include "base/threading/non_thread_safe.h" 7 #include "base/threading/non_thread_safe.h"
8 #include "components/invalidation/invalidation_service.h" 8 #include "components/invalidation/invalidation_service.h"
9 #include "components/invalidation/p2p_invalidator.h" 9 #include "components/invalidation/p2p_invalidator.h"
10 #include "components/keyed_service/core/keyed_service.h" 10 #include "components/keyed_service/core/keyed_service.h"
(...skipping 21 matching lines...) Expand all
32 public: 32 public:
33 P2PInvalidationService( 33 P2PInvalidationService(
34 scoped_ptr<IdentityProvider> identity_provider, 34 scoped_ptr<IdentityProvider> identity_provider,
35 const scoped_refptr<net::URLRequestContextGetter>& request_context, 35 const scoped_refptr<net::URLRequestContextGetter>& request_context,
36 syncer::P2PNotificationTarget notification_target); 36 syncer::P2PNotificationTarget notification_target);
37 virtual ~P2PInvalidationService(); 37 virtual ~P2PInvalidationService();
38 38
39 // InvalidationService implementation. 39 // InvalidationService implementation.
40 // It is an error to have registered handlers when the service is destroyed. 40 // It is an error to have registered handlers when the service is destroyed.
41 virtual void RegisterInvalidationHandler( 41 virtual void RegisterInvalidationHandler(
42 syncer::InvalidationHandler* handler) OVERRIDE; 42 syncer::InvalidationHandler* handler) override;
43 virtual void UpdateRegisteredInvalidationIds( 43 virtual void UpdateRegisteredInvalidationIds(
44 syncer::InvalidationHandler* handler, 44 syncer::InvalidationHandler* handler,
45 const syncer::ObjectIdSet& ids) OVERRIDE; 45 const syncer::ObjectIdSet& ids) override;
46 virtual void UnregisterInvalidationHandler( 46 virtual void UnregisterInvalidationHandler(
47 syncer::InvalidationHandler* handler) OVERRIDE; 47 syncer::InvalidationHandler* handler) override;
48 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; 48 virtual syncer::InvalidatorState GetInvalidatorState() const override;
49 virtual std::string GetInvalidatorClientId() const OVERRIDE; 49 virtual std::string GetInvalidatorClientId() const override;
50 virtual InvalidationLogger* GetInvalidationLogger() OVERRIDE; 50 virtual InvalidationLogger* GetInvalidationLogger() override;
51 virtual void RequestDetailedStatus( 51 virtual void RequestDetailedStatus(
52 base::Callback<void(const base::DictionaryValue&)> caller) const OVERRIDE; 52 base::Callback<void(const base::DictionaryValue&)> caller) const override;
53 virtual IdentityProvider* GetIdentityProvider() OVERRIDE; 53 virtual IdentityProvider* GetIdentityProvider() override;
54 54
55 void UpdateCredentials(const std::string& username, 55 void UpdateCredentials(const std::string& username,
56 const std::string& password); 56 const std::string& password);
57 57
58 void SendInvalidation(const syncer::ObjectIdSet& ids); 58 void SendInvalidation(const syncer::ObjectIdSet& ids);
59 59
60 private: 60 private:
61 scoped_ptr<IdentityProvider> identity_provider_; 61 scoped_ptr<IdentityProvider> identity_provider_;
62 scoped_ptr<syncer::P2PInvalidator> invalidator_; 62 scoped_ptr<syncer::P2PInvalidator> invalidator_;
63 std::string invalidator_id_; 63 std::string invalidator_id_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(P2PInvalidationService); 65 DISALLOW_COPY_AND_ASSIGN(P2PInvalidationService);
66 }; 66 };
67 67
68 } // namespace invalidation 68 } // namespace invalidation
69 69
70 #endif // COMPONENTS_INVALIDATION_P2P_INVALIDATION_SERVICE_H_ 70 #endif // COMPONENTS_INVALIDATION_P2P_INVALIDATION_SERVICE_H_
OLDNEW
« no previous file with comments | « components/invalidation/non_blocking_invalidator.cc ('k') | components/invalidation/p2p_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698