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

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

Issue 159773006: [invalidations] Added table with registered objectsIds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@about_invalidations_clean
Patch Set: Change constness of iterators for android clang Created 6 years, 10 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 (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_logger.h"
7 #include "chrome/browser/invalidation/invalidation_service.h" 6 #include "chrome/browser/invalidation/invalidation_service.h"
8 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 7 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
9 8
10 #ifndef CHROME_BROWSER_INVALIDATION_P2P_INVALIDATION_SERVICE_H_ 9 #ifndef CHROME_BROWSER_INVALIDATION_P2P_INVALIDATION_SERVICE_H_
11 #define CHROME_BROWSER_INVALIDATION_P2P_INVALIDATION_SERVICE_H_ 10 #define CHROME_BROWSER_INVALIDATION_P2P_INVALIDATION_SERVICE_H_
12 11
13 namespace syncer { 12 namespace syncer {
14 class P2PInvalidator; 13 class P2PInvalidator;
15 } 14 }
16 15
17 class Profile; 16 class Profile;
18 17
19 namespace invalidation { 18 namespace invalidation {
20 19
20 class InvalidationLogger;
21
21 // This service is a wrapper around P2PInvalidator. Unlike other 22 // This service is a wrapper around P2PInvalidator. Unlike other
22 // InvalidationServices, it can both send and receive invalidations. It is used 23 // InvalidationServices, it can both send and receive invalidations. It is used
23 // only in tests, where we're unable to connect to a real invalidations server. 24 // only in tests, where we're unable to connect to a real invalidations server.
24 class P2PInvalidationService 25 class P2PInvalidationService
25 : public base::NonThreadSafe, 26 : public base::NonThreadSafe,
26 public InvalidationService { 27 public InvalidationService {
27 public: 28 public:
28 explicit P2PInvalidationService(Profile* profile); 29 explicit P2PInvalidationService(Profile* profile);
29 virtual ~P2PInvalidationService(); 30 virtual ~P2PInvalidationService();
30 31
(...skipping 21 matching lines...) Expand all
52 private: 53 private:
53 scoped_ptr<syncer::P2PInvalidator> invalidator_; 54 scoped_ptr<syncer::P2PInvalidator> invalidator_;
54 std::string invalidator_id_; 55 std::string invalidator_id_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(P2PInvalidationService); 57 DISALLOW_COPY_AND_ASSIGN(P2PInvalidationService);
57 }; 58 };
58 59
59 } // namespace invalidation 60 } // namespace invalidation
60 61
61 #endif // CHROME_BROWSER_INVALIDATION_P2P_INVALIDATION_SERVICE_H_ 62 #endif // CHROME_BROWSER_INVALIDATION_P2P_INVALIDATION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/invalidation/invalidation_logger_unittest.cc ('k') | chrome/browser/invalidation/ticl_invalidation_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698