| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |