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

Side by Side Diff: components/gcm_driver/fake_gcm_client.h

Issue 2111973002: Add support for GCM subtypes to desktop Instance ID implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid9push
Patch Set: Remove channel from product_category_for_subtypes, and address nits Created 4 years, 4 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
« no previous file with comments | « components/gcm_driver/DEPS ('k') | components/gcm_driver/fake_gcm_client.cc » ('j') | 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 COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_
6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ 6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void SendFinished(const std::string& app_id, const OutgoingMessage& message); 106 void SendFinished(const std::string& app_id, const OutgoingMessage& message);
107 void MessageReceived(const std::string& app_id, 107 void MessageReceived(const std::string& app_id,
108 const IncomingMessage& message); 108 const IncomingMessage& message);
109 void MessagesDeleted(const std::string& app_id); 109 void MessagesDeleted(const std::string& app_id);
110 void MessageSendError(const std::string& app_id, 110 void MessageSendError(const std::string& app_id,
111 const SendErrorDetails& send_error_details); 111 const SendErrorDetails& send_error_details);
112 void SendAcknowledgement(const std::string& app_id, 112 void SendAcknowledgement(const std::string& app_id,
113 const std::string& message_id); 113 const std::string& message_id);
114 114
115 Delegate* delegate_; 115 Delegate* delegate_;
116 std::string product_category_for_subtypes_;
116 bool started_; 117 bool started_;
117 StartMode start_mode_; 118 StartMode start_mode_;
118 StartModeOverridding start_mode_overridding_; 119 StartModeOverridding start_mode_overridding_;
119 scoped_refptr<base::SequencedTaskRunner> ui_thread_; 120 scoped_refptr<base::SequencedTaskRunner> ui_thread_;
120 scoped_refptr<base::SequencedTaskRunner> io_thread_; 121 scoped_refptr<base::SequencedTaskRunner> io_thread_;
121 std::map<std::string, std::pair<std::string, std::string>> instance_id_data_; 122 std::map<std::string, std::pair<std::string, std::string>> instance_id_data_;
122 GCMStatsRecorderImpl recorder_; 123 GCMStatsRecorderImpl recorder_;
123 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_; 124 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_;
124 125
125 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient); 126 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient);
126 }; 127 };
127 128
128 } // namespace gcm 129 } // namespace gcm
129 130
130 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ 131 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/DEPS ('k') | components/gcm_driver/fake_gcm_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698