| Index: components/gcm_driver/gcm_message_status.h | 
| diff --git a/components/gcm_driver/gcm_message_status.h b/components/gcm_driver/gcm_message_status.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..1543d670769c266a764fab18089321450ddb99d5 | 
| --- /dev/null | 
| +++ b/components/gcm_driver/gcm_message_status.h | 
| @@ -0,0 +1,29 @@ | 
| +// Copyright 2014 The Chromium Authors. All rights reserved. | 
| +// Use of this source code is governed by a BSD-style license that can be | 
| +// found in the LICENSE file. | 
| + | 
| +#ifndef COMPONENTS_GCM_DRIVER_GCM_MESSAGE_STATUS_H_ | 
| +#define COMPONENTS_GCM_DRIVER_GCM_MESSAGE_STATUS_H_ | 
| + | 
| +namespace gcm { | 
| + | 
| +// Enumeration to be used for describing the status of a GCM message. | 
| +enum class GCMMessageStatus { | 
| +  // 0 reserved for unresolved. | 
| +  GCM_UNRESOLVED = 0, | 
| +  // 1 reserved for success. | 
| +  GCM_SUCCESS = 1, | 
| + | 
| +  // 2 - 99 reserved for the GCM communication error types. | 
| +  GCM_INVALID_SUBTYPE = 2, | 
| +  GCM_ENCRYPTION_FAILURE = 3, | 
| +  GCM_UNKNOWN_MESSAGE_TYPE = 4, | 
| +  GCM_NO_APP_HANDLER = 5, | 
| +  GCM_INVALID_MESSAGE_TAG = 6, | 
| +}; | 
| + | 
| +using MessageReceiptCallback = base::Callback<void(GCMMessageStatus)>; | 
| + | 
| +}  // namespace gcm | 
| + | 
| +#endif  // COMPONENTS_GCM_DRIVER_GCM_MESSAGE_STATUS_H_ | 
|  |