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

Unified Diff: components/pairing/proto_decoder.h

Issue 2901653002: Bootstrapping: Reboot on enrollment failure (Closed)
Patch Set: Fixed comments. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/pairing/pairing_api.proto ('k') | components/pairing/proto_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/pairing/proto_decoder.h
diff --git a/components/pairing/proto_decoder.h b/components/pairing/proto_decoder.h
index ab82377ff1c6ac79fa6a3d5687f56413a42c54ef..6a8e774980b75120e4c24b22ab3e786779e0ac02 100644
--- a/components/pairing/proto_decoder.h
+++ b/components/pairing/proto_decoder.h
@@ -25,6 +25,7 @@ class ConfigureHost;
class Error;
class HostStatus;
class PairDevices;
+class Reboot;
} // namespace pairing_api
namespace pairing_chromeos {
@@ -51,6 +52,7 @@ class ProtoDecoder {
const pairing_api::Error& message) = 0;
virtual void OnAddNetworkMessage(
const pairing_api::AddNetwork& message) = 0;
+ virtual void OnRebootMessage(const pairing_api::Reboot& message) = 0;
protected:
Observer() {}
@@ -78,6 +80,8 @@ class ProtoDecoder {
static IOBufferRefPtr SendCompleteSetup(
const pairing_api::CompleteSetup& message, int* size);
static IOBufferRefPtr SendError(const pairing_api::Error& message, int* size);
+ static IOBufferRefPtr SendRebootHost(const pairing_api::Reboot& message,
+ int* size);
private:
static IOBufferRefPtr SendMessage(uint8_t message_type,
« no previous file with comments | « components/pairing/pairing_api.proto ('k') | components/pairing/proto_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698