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

Side by Side Diff: chrome/browser/chromeos/policy/heartbeat_scheduler.h

Issue 2473813002: Notify GCMAppHandlers when the store is reset, so they clear cached IDs (Closed)
Patch Set: Update Cryptauth comment Created 4 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/heartbeat_scheduler.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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 CHROME_BROWSER_CHROMEOS_POLICY_HEARTBEAT_SCHEDULER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_HEARTBEAT_SCHEDULER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_HEARTBEAT_SCHEDULER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_HEARTBEAT_SCHEDULER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const scoped_refptr<base::SequencedTaskRunner>& task_runner); 51 const scoped_refptr<base::SequencedTaskRunner>& task_runner);
52 52
53 ~HeartbeatScheduler() override; 53 ~HeartbeatScheduler() override;
54 54
55 // Returns the time of the last heartbeat, or Time(0) if no heartbeat 55 // Returns the time of the last heartbeat, or Time(0) if no heartbeat
56 // has ever happened. 56 // has ever happened.
57 base::Time last_heartbeat() const { return last_heartbeat_; } 57 base::Time last_heartbeat() const { return last_heartbeat_; }
58 58
59 // GCMAppHandler overrides. 59 // GCMAppHandler overrides.
60 void ShutdownHandler() override; 60 void ShutdownHandler() override;
61 void OnStoreReset() override;
61 void OnMessage(const std::string& app_id, 62 void OnMessage(const std::string& app_id,
62 const gcm::IncomingMessage& message) override; 63 const gcm::IncomingMessage& message) override;
63 void OnMessagesDeleted(const std::string& app_id) override; 64 void OnMessagesDeleted(const std::string& app_id) override;
64 void OnSendError(const std::string& app_id, 65 void OnSendError(const std::string& app_id,
65 const gcm::GCMClient::SendErrorDetails& details) override; 66 const gcm::GCMClient::SendErrorDetails& details) override;
66 void OnSendAcknowledged(const std::string& app_id, 67 void OnSendAcknowledged(const std::string& app_id,
67 const std::string& message_id) override; 68 const std::string& message_id) override;
68 69
69 // GCMConnectionObserver overrides. 70 // GCMConnectionObserver overrides.
70 void OnConnected(const net::IPEndPoint&) override; 71 void OnConnected(const net::IPEndPoint&) override;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Note: This should remain the last member so it'll be destroyed and 155 // Note: This should remain the last member so it'll be destroyed and
155 // invalidate the weak pointers before any other members are destroyed. 156 // invalidate the weak pointers before any other members are destroyed.
156 base::WeakPtrFactory<HeartbeatScheduler> weak_factory_; 157 base::WeakPtrFactory<HeartbeatScheduler> weak_factory_;
157 158
158 DISALLOW_COPY_AND_ASSIGN(HeartbeatScheduler); 159 DISALLOW_COPY_AND_ASSIGN(HeartbeatScheduler);
159 }; 160 };
160 161
161 } // namespace policy 162 } // namespace policy
162 163
163 #endif // CHROME_BROWSER_CHROMEOS_POLICY_HEARTBEAT_SCHEDULER_H_ 164 #endif // CHROME_BROWSER_CHROMEOS_POLICY_HEARTBEAT_SCHEDULER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/heartbeat_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698