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

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

Issue 56113003: Implement new invalidations ack tracking system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modify drive TODO comment + rebase Created 7 years 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 #ifndef CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_
6 #define CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_ 6 #define CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/threading/non_thread_safe.h" 9 #include "base/threading/non_thread_safe.h"
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // InvalidationService implementation. 48 // InvalidationService implementation.
49 // It is an error to have registered handlers when Shutdown() is called. 49 // It is an error to have registered handlers when Shutdown() is called.
50 virtual void RegisterInvalidationHandler( 50 virtual void RegisterInvalidationHandler(
51 syncer::InvalidationHandler* handler) OVERRIDE; 51 syncer::InvalidationHandler* handler) OVERRIDE;
52 virtual void UpdateRegisteredInvalidationIds( 52 virtual void UpdateRegisteredInvalidationIds(
53 syncer::InvalidationHandler* handler, 53 syncer::InvalidationHandler* handler,
54 const syncer::ObjectIdSet& ids) OVERRIDE; 54 const syncer::ObjectIdSet& ids) OVERRIDE;
55 virtual void UnregisterInvalidationHandler( 55 virtual void UnregisterInvalidationHandler(
56 syncer::InvalidationHandler* handler) OVERRIDE; 56 syncer::InvalidationHandler* handler) OVERRIDE;
57 virtual void AcknowledgeInvalidation(
58 const invalidation::ObjectId& id,
59 const syncer::AckHandle& ack_handle) OVERRIDE;
60 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; 57 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE;
61 virtual std::string GetInvalidatorClientId() const OVERRIDE; 58 virtual std::string GetInvalidatorClientId() const OVERRIDE;
62 59
63 // content::NotificationObserver implementation. 60 // content::NotificationObserver implementation.
64 virtual void Observe(int type, 61 virtual void Observe(int type,
65 const content::NotificationSource& source, 62 const content::NotificationSource& source,
66 const content::NotificationDetails& details) OVERRIDE; 63 const content::NotificationDetails& details) OVERRIDE;
67 64
68 void RequestAccessToken(); 65 void RequestAccessToken();
69 66
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 scoped_ptr<OAuth2TokenService::Request> access_token_request_; 120 scoped_ptr<OAuth2TokenService::Request> access_token_request_;
124 base::OneShotTimer<TiclInvalidationService> request_access_token_retry_timer_; 121 base::OneShotTimer<TiclInvalidationService> request_access_token_retry_timer_;
125 net::BackoffEntry request_access_token_backoff_; 122 net::BackoffEntry request_access_token_backoff_;
126 123
127 DISALLOW_COPY_AND_ASSIGN(TiclInvalidationService); 124 DISALLOW_COPY_AND_ASSIGN(TiclInvalidationService);
128 }; 125 };
129 126
130 } // namespace invalidation 127 } // namespace invalidation
131 128
132 #endif // CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_ 129 #endif // CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/invalidation/p2p_invalidation_service.cc ('k') | chrome/browser/invalidation/ticl_invalidation_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698