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

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

Issue 378643002: [GCM] Check-in with signed in accounts associates device to user (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing compilation issue on android Created 6 years, 5 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual void CheckOut() OVERRIDE; 49 virtual void CheckOut() OVERRIDE;
50 virtual void Register(const std::string& app_id, 50 virtual void Register(const std::string& app_id,
51 const std::vector<std::string>& sender_ids) OVERRIDE; 51 const std::vector<std::string>& sender_ids) OVERRIDE;
52 virtual void Unregister(const std::string& app_id) OVERRIDE; 52 virtual void Unregister(const std::string& app_id) OVERRIDE;
53 virtual void Send(const std::string& app_id, 53 virtual void Send(const std::string& app_id,
54 const std::string& receiver_id, 54 const std::string& receiver_id,
55 const OutgoingMessage& message) OVERRIDE; 55 const OutgoingMessage& message) OVERRIDE;
56 virtual void SetRecording(bool recording) OVERRIDE; 56 virtual void SetRecording(bool recording) OVERRIDE;
57 virtual void ClearActivityLogs() OVERRIDE; 57 virtual void ClearActivityLogs() OVERRIDE;
58 virtual GCMStatistics GetStatistics() const OVERRIDE; 58 virtual GCMStatistics GetStatistics() const OVERRIDE;
59 virtual void SetAccountsForCheckin(
60 const std::map<std::string, std::string>& account_tokens,
61 bool account_removed) OVERRIDE;
59 62
60 // Initiate the loading that has been delayed. 63 // Initiate the loading that has been delayed.
61 // Called on UI thread. 64 // Called on UI thread.
62 void PerformDelayedLoading(); 65 void PerformDelayedLoading();
63 66
64 // Simulate receiving something from the server. 67 // Simulate receiving something from the server.
65 // Called on UI thread. 68 // Called on UI thread.
66 void ReceiveMessage(const std::string& app_id, 69 void ReceiveMessage(const std::string& app_id,
67 const IncomingMessage& message); 70 const IncomingMessage& message);
68 void DeleteMessages(const std::string& app_id); 71 void DeleteMessages(const std::string& app_id);
(...skipping 23 matching lines...) Expand all
92 scoped_refptr<base::SequencedTaskRunner> ui_thread_; 95 scoped_refptr<base::SequencedTaskRunner> ui_thread_;
93 scoped_refptr<base::SequencedTaskRunner> io_thread_; 96 scoped_refptr<base::SequencedTaskRunner> io_thread_;
94 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_; 97 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_;
95 98
96 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient); 99 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient);
97 }; 100 };
98 101
99 } // namespace gcm 102 } // namespace gcm
100 103
101 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ 104 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698