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

Unified Diff: google_apis/gcm/engine/account_info.h

Issue 443573002: [GCM] Adding status to AccountMapping structure (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing status from the serialized form of account mapping per CR Created 6 years, 4 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 | « google_apis/gcm/BUILD.gn ('k') | google_apis/gcm/engine/account_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/engine/account_info.h
diff --git a/google_apis/gcm/engine/account_info.h b/google_apis/gcm/engine/account_info.h
deleted file mode 100644
index 94fe6d4e1762db2815dc6bc00cc55296c46b1e27..0000000000000000000000000000000000000000
--- a/google_apis/gcm/engine/account_info.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// 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 GOOGLE_APIS_GCM_ENGINE_ACCOUNT_INFO_H_
-#define GOOGLE_APIS_GCM_ENGINE_ACCOUNT_INFO_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/time/time.h"
-#include "google_apis/gcm/base/gcm_export.h"
-
-namespace gcm {
-
-// Stores information about Account and a last message sent with the information
-// about that account.
-struct GCM_EXPORT AccountInfo {
- // Indicates whether a message, if sent, was adding or removing account
- // mapping.
- enum MessageType {
- MSG_NONE, // No message has been sent.
- MSG_ADD, // Account was mapped to device by the message.
- MSG_REMOVE, // Account mapping to device was removed by the message.
- };
-
- AccountInfo();
- ~AccountInfo();
-
- // Serializes account info to string without |account_id|.
- std::string SerializeAsString() const;
- // Parses account info from store, without |account_id|.
- bool ParseFromString(const std::string& value);
-
- // Gaia ID of the account.
- std::string account_id;
- // Email address of the tracked account.
- std::string email;
- // Type of the last mapping message sent to GCM.
- MessageType last_message_type;
- // ID of the last mapping message sent to GCM.
- std::string last_message_id;
- // Timestamp of when the last mapping message was sent to GCM.
- base::Time last_message_timestamp;
-};
-
-} // namespace gcm
-
-#endif // GOOGLE_APIS_GCM_ENGINE_ACCOUNT_INFO_H_
« no previous file with comments | « google_apis/gcm/BUILD.gn ('k') | google_apis/gcm/engine/account_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698