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

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

Issue 179843002: Make invalidations work for Chrome OS Kiosk Apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_INVALIDATION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_INVALIDATION_INVALIDATION_SERVICE_H_
6 #define CHROME_BROWSER_INVALIDATION_INVALIDATION_SERVICE_H_ 6 #define CHROME_BROWSER_INVALIDATION_INVALIDATION_SERVICE_H_
7 7
8 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 8 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
9 #include "sync/notifier/invalidation_util.h" 9 #include "sync/notifier/invalidation_util.h"
10 #include "sync/notifier/invalidator_state.h" 10 #include "sync/notifier/invalidator_state.h"
11 11
12 namespace syncer { 12 namespace syncer {
13 class InvalidationHandler; 13 class InvalidationHandler;
14 } // namespace syncer 14 } // namespace syncer
15 15
16 namespace invalidation { 16 namespace invalidation {
17 class InvalidationAuthProvider;
17 class InvalidationLogger; 18 class InvalidationLogger;
18 19
19 // Interface for classes that handle invalidation registrations and send out 20 // Interface for classes that handle invalidation registrations and send out
20 // invalidations to register handlers. 21 // invalidations to register handlers.
21 // 22 //
22 // Invalidation clients should follow the pattern below: 23 // Invalidation clients should follow the pattern below:
23 // 24 //
24 // When starting the client: 25 // When starting the client:
25 // 26 //
26 // frontend->RegisterInvalidationHandler(client_handler); 27 // frontend->RegisterInvalidationHandler(client_handler);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // the updated state. 97 // the updated state.
97 virtual syncer::InvalidatorState GetInvalidatorState() const = 0; 98 virtual syncer::InvalidatorState GetInvalidatorState() const = 0;
98 99
99 // Returns the ID belonging to this invalidation client. Can be used to 100 // Returns the ID belonging to this invalidation client. Can be used to
100 // prevent the receipt of notifications of our own changes. 101 // prevent the receipt of notifications of our own changes.
101 virtual std::string GetInvalidatorClientId() const = 0; 102 virtual std::string GetInvalidatorClientId() const = 0;
102 103
103 // Return the logger used to debug invalidations 104 // Return the logger used to debug invalidations
104 virtual InvalidationLogger* GetInvalidationLogger() = 0; 105 virtual InvalidationLogger* GetInvalidationLogger() = 0;
105 106
107 // Returns the authentication provider.
108 virtual InvalidationAuthProvider* GetInvalidationAuthProvider() = 0;
109
106 protected: 110 protected:
107 virtual ~InvalidationService() { } 111 virtual ~InvalidationService() { }
108 }; 112 };
109 113
110 } // namespace invalidation 114 } // namespace invalidation
111 115
112 #endif // CHROME_BROWSER_INVALIDATION_INVALIDATION_SERVICE_H_ 116 #endif // CHROME_BROWSER_INVALIDATION_INVALIDATION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698