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

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

Issue 2578583002: Provide a mechanism for the GCM driver to send message receipts to GCM.
Patch Set: Added a callback entry point to GCMDriver, moved MessageReceiptCallback to gcm_message_status. Created 3 years, 10 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
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_DRIVER_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_
6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ 6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const std::vector<std::string>& sender_ids) override; 57 const std::vector<std::string>& sender_ids) override;
58 void UnregisterImpl(const std::string& app_id) override; 58 void UnregisterImpl(const std::string& app_id) override;
59 void SendImpl(const std::string& app_id, 59 void SendImpl(const std::string& app_id,
60 const std::string& receiver_id, 60 const std::string& receiver_id,
61 const OutgoingMessage& message) override; 61 const OutgoingMessage& message) override;
62 void RecordDecryptionFailure(const std::string& app_id, 62 void RecordDecryptionFailure(const std::string& app_id,
63 GCMEncryptionProvider::DecryptionResult result) 63 GCMEncryptionProvider::DecryptionResult result)
64 override; 64 override;
65 65
66 private: 66 private:
67 void DoSendMessageReceipt(const MessageReceiptCallback& callback,
Peter Beverloo 2017/02/08 17:09:08 // GCMDriver implementation:
harkness 2017/02/09 16:27:29 Done.
68 GCMMessageStatus status) override;
67 DISALLOW_COPY_AND_ASSIGN(FakeGCMDriver); 69 DISALLOW_COPY_AND_ASSIGN(FakeGCMDriver);
68 }; 70 };
69 71
70 } // namespace gcm 72 } // namespace gcm
71 73
72 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ 74 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698