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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "components/gcm_driver/gcm_client.h" | 10 #include "components/gcm_driver/gcm_client.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 void CheckinFinished(); | 80 void CheckinFinished(); |
81 void RegisterFinished(const std::string& app_id, | 81 void RegisterFinished(const std::string& app_id, |
82 const std::string& registrion_id); | 82 const std::string& registrion_id); |
83 void UnregisterFinished(const std::string& app_id); | 83 void UnregisterFinished(const std::string& app_id); |
84 void SendFinished(const std::string& app_id, const OutgoingMessage& message); | 84 void SendFinished(const std::string& app_id, const OutgoingMessage& message); |
85 void MessageReceived(const std::string& app_id, | 85 void MessageReceived(const std::string& app_id, |
86 const IncomingMessage& message); | 86 const IncomingMessage& message); |
87 void MessagesDeleted(const std::string& app_id); | 87 void MessagesDeleted(const std::string& app_id); |
88 void MessageSendError(const std::string& app_id, | 88 void MessageSendError(const std::string& app_id, |
89 const SendErrorDetails& send_error_details); | 89 const SendErrorDetails& send_error_details); |
| 90 void SendAcknowledgement(const std::string& app_id, |
| 91 const std::string& message_id); |
90 | 92 |
91 Delegate* delegate_; | 93 Delegate* delegate_; |
92 Status status_; | 94 Status status_; |
93 StartMode start_mode_; | 95 StartMode start_mode_; |
94 scoped_refptr<base::SequencedTaskRunner> ui_thread_; | 96 scoped_refptr<base::SequencedTaskRunner> ui_thread_; |
95 scoped_refptr<base::SequencedTaskRunner> io_thread_; | 97 scoped_refptr<base::SequencedTaskRunner> io_thread_; |
96 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_; | 98 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_; |
97 | 99 |
98 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient); | 100 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient); |
99 }; | 101 }; |
100 | 102 |
101 } // namespace gcm | 103 } // namespace gcm |
102 | 104 |
103 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ | 105 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ |
OLD | NEW |