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

Side by Side Diff: sync/notifier/gcm_network_channel_delegate.h

Issue 225403021: Extract Profile-independent GCMService from GCMProfileService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore real IO thread in unit tests. Remove sources of flakiness by waiting instead of pumping whe… Created 6 years, 8 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
« no previous file with comments | « sync/notifier/gcm_network_channel.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_DELEGATE_H_ 5 #ifndef SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_DELEGATE_H_
6 #define SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_DELEGATE_H_ 6 #define SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 22 matching lines...) Expand all
33 33
34 virtual ~GCMNetworkChannelDelegate() {} 34 virtual ~GCMNetworkChannelDelegate() {}
35 35
36 virtual void Initialize() = 0; 36 virtual void Initialize() = 0;
37 // Request access token. Callback should be called either with access token or 37 // Request access token. Callback should be called either with access token or
38 // error code. 38 // error code.
39 virtual void RequestToken(RequestTokenCallback callback) = 0; 39 virtual void RequestToken(RequestTokenCallback callback) = 0;
40 // Invalidate access token that was rejected by server. 40 // Invalidate access token that was rejected by server.
41 virtual void InvalidateToken(const std::string& token) = 0; 41 virtual void InvalidateToken(const std::string& token) = 0;
42 42
43 // Request registration_id from GCMProfileService. Callback should be called 43 // Request registration_id from GCMService. Callback should be called with
44 // with either registration id or error code. 44 // either registration id or error code.
45 virtual void Register(RegisterCallback callback) = 0; 45 virtual void Register(RegisterCallback callback) = 0;
46 // Provide callback for incoming messages from GCM. 46 // Provide callback for incoming messages from GCM.
47 virtual void SetMessageReceiver(MessageCallback callback) = 0; 47 virtual void SetMessageReceiver(MessageCallback callback) = 0;
48 }; 48 };
49 } // namespace syncer 49 } // namespace syncer
50 50
51 #endif // SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_DELEGATE_H_ 51 #endif // SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_DELEGATE_H_
OLDNEW
« no previous file with comments | « sync/notifier/gcm_network_channel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698