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

Side by Side Diff: chrome/browser/invalidation/p2p_invalidation_service.h

Issue 23441042: Refactor common invalidation framework types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move DEPS rule Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/threading/non_thread_safe.h" 5 #include "base/threading/non_thread_safe.h"
6 #include "chrome/browser/invalidation/invalidation_service.h" 6 #include "chrome/browser/invalidation/invalidation_service.h"
7 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 7 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
8 #include "sync/notifier/object_id_invalidation_map.h" 8 #include "sync/notifier/object_id_invalidation_map.h"
9 9
10 #ifndef CHROME_BROWSER_INVALIDATION_P2P_INVALIDATION_SERVICE_H_ 10 #ifndef CHROME_BROWSER_INVALIDATION_P2P_INVALIDATION_SERVICE_H_
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 syncer::InvalidationHandler* handler) OVERRIDE; 42 syncer::InvalidationHandler* handler) OVERRIDE;
43 virtual void AcknowledgeInvalidation( 43 virtual void AcknowledgeInvalidation(
44 const invalidation::ObjectId& id, 44 const invalidation::ObjectId& id,
45 const syncer::AckHandle& ack_handle) OVERRIDE; 45 const syncer::AckHandle& ack_handle) OVERRIDE;
46 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; 46 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE;
47 virtual std::string GetInvalidatorClientId() const OVERRIDE; 47 virtual std::string GetInvalidatorClientId() const OVERRIDE;
48 48
49 void UpdateCredentials(const std::string& username, 49 void UpdateCredentials(const std::string& username,
50 const std::string& password); 50 const std::string& password);
51 51
52 void SendInvalidation( 52 void SendInvalidation(const syncer::ObjectIdSet& ids);
53 const syncer::ObjectIdInvalidationMap& invalidation_map);
54 53
55 private: 54 private:
56 scoped_ptr<syncer::P2PInvalidator> invalidator_; 55 scoped_ptr<syncer::P2PInvalidator> invalidator_;
57 std::string invalidator_id_; 56 std::string invalidator_id_;
58 57
59 DISALLOW_COPY_AND_ASSIGN(P2PInvalidationService); 58 DISALLOW_COPY_AND_ASSIGN(P2PInvalidationService);
60 }; 59 };
61 60
62 } // namespace invalidation 61 } // namespace invalidation
63 62
64 #endif // CHROME_BROWSER_INVALIDATION_P2P_INVALIDATION_SERVICE_H_ 63 #endif // CHROME_BROWSER_INVALIDATION_P2P_INVALIDATION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/invalidation/invalidator_storage_unittest.cc ('k') | chrome/browser/invalidation/p2p_invalidation_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698