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

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

Issue 442123003: [GCM] Adding the OnSendAcknowledgement event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing code review comments. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « components/gcm_driver/fake_gcm_app_handler.cc ('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 "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
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_
OLDNEW
« no previous file with comments | « components/gcm_driver/fake_gcm_app_handler.cc ('k') | components/gcm_driver/fake_gcm_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698