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

Side by Side Diff: components/invalidation/impl/gcm_network_channel_delegate.h

Issue 1191393008: Introduce a layering in the invalidation component as public and impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly forbid content to prevent future additions Created 5 years, 5 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 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 COMPONENTS_INVALIDATION_GCM_NETWORK_CHANNEL_DELEGATE_H_ 5 #ifndef COMPONENTS_INVALIDATION_IMPL_GCM_NETWORK_CHANNEL_DELEGATE_H_
6 #define COMPONENTS_INVALIDATION_GCM_NETWORK_CHANNEL_DELEGATE_H_ 6 #define COMPONENTS_INVALIDATION_IMPL_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"
11 #include "components/gcm_driver/gcm_client.h" 11 #include "components/gcm_driver/gcm_client.h"
12 12
13 class GoogleServiceAuthError; 13 class GoogleServiceAuthError;
14 14
15 namespace syncer { 15 namespace syncer {
16 16
(...skipping 25 matching lines...) Expand all
42 virtual void InvalidateToken(const std::string& token) = 0; 42 virtual void InvalidateToken(const std::string& token) = 0;
43 43
44 // Request registration_id from GCMService. Callback should be called with 44 // Request registration_id from GCMService. Callback should be called with
45 // either registration id or error code. 45 // either registration id or error code.
46 virtual void Register(RegisterCallback callback) = 0; 46 virtual void Register(RegisterCallback callback) = 0;
47 // Provide callback for incoming messages from GCM. 47 // Provide callback for incoming messages from GCM.
48 virtual void SetMessageReceiver(MessageCallback callback) = 0; 48 virtual void SetMessageReceiver(MessageCallback callback) = 0;
49 }; 49 };
50 } // namespace syncer 50 } // namespace syncer
51 51
52 #endif // COMPONENTS_INVALIDATION_GCM_NETWORK_CHANNEL_DELEGATE_H_ 52 #endif // COMPONENTS_INVALIDATION_IMPL_GCM_NETWORK_CHANNEL_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/invalidation/impl/gcm_network_channel.cc ('k') | components/invalidation/impl/gcm_network_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698