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

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

Issue 225403021: Extract Profile-independent GCMService from GCMProfileService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed. 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
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_H_ 5 #ifndef SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_
6 #define SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_ 6 #define SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 27 matching lines...) Expand all
38 GCMNetworkChannel* parent_; 38 GCMNetworkChannel* parent_;
39 bool last_message_empty_echo_token_; 39 bool last_message_empty_echo_token_;
40 base::Time last_message_received_time_; 40 base::Time last_message_received_time_;
41 int last_post_response_code_; 41 int last_post_response_code_;
42 std::string registration_id_; 42 std::string registration_id_;
43 gcm::GCMClient::Result registration_result_; 43 gcm::GCMClient::Result registration_result_;
44 int sent_messages_count_; 44 int sent_messages_count_;
45 }; 45 };
46 46
47 // GCMNetworkChannel is an implementation of SyncNetworkChannel that routes 47 // GCMNetworkChannel is an implementation of SyncNetworkChannel that routes
48 // messages through GCMProfileService. 48 // messages through GCMService.
49 class SYNC_EXPORT_PRIVATE GCMNetworkChannel 49 class SYNC_EXPORT_PRIVATE GCMNetworkChannel
50 : public SyncNetworkChannel, 50 : public SyncNetworkChannel,
51 public net::URLFetcherDelegate, 51 public net::URLFetcherDelegate,
52 public net::NetworkChangeNotifier::NetworkChangeObserver, 52 public net::NetworkChangeNotifier::NetworkChangeObserver,
53 public base::NonThreadSafe { 53 public base::NonThreadSafe {
54 public: 54 public:
55 GCMNetworkChannel( 55 GCMNetworkChannel(
56 scoped_refptr<net::URLRequestContextGetter> request_context_getter, 56 scoped_refptr<net::URLRequestContextGetter> request_context_getter,
57 scoped_ptr<GCMNetworkChannelDelegate> delegate); 57 scoped_ptr<GCMNetworkChannelDelegate> delegate);
58 58
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 GCMNetworkChannelDiagnostic diagnostic_info_; 125 GCMNetworkChannelDiagnostic diagnostic_info_;
126 126
127 base::WeakPtrFactory<GCMNetworkChannel> weak_factory_; 127 base::WeakPtrFactory<GCMNetworkChannel> weak_factory_;
128 128
129 DISALLOW_COPY_AND_ASSIGN(GCMNetworkChannel); 129 DISALLOW_COPY_AND_ASSIGN(GCMNetworkChannel);
130 }; 130 };
131 131
132 } // namespace syncer 132 } // namespace syncer
133 133
134 #endif // SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_ 134 #endif // SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698