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

Side by Side Diff: google_apis/gcm/gcm_client.h

Issue 179043005: [GCM] Remove the requirement for manifest key (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 GOOGLE_APIS_GCM_GCM_CLIENT_H_ 5 #ifndef GOOGLE_APIS_GCM_GCM_CLIENT_H_
6 #define GOOGLE_APIS_GCM_GCM_CLIENT_H_ 6 #define GOOGLE_APIS_GCM_GCM_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 22 matching lines...) Expand all
33 // Messaging server. This interface is not supposed to be thread-safe. 33 // Messaging server. This interface is not supposed to be thread-safe.
34 class GCM_EXPORT GCMClient { 34 class GCM_EXPORT GCMClient {
35 public: 35 public:
36 enum Result { 36 enum Result {
37 // Successful operation. 37 // Successful operation.
38 SUCCESS, 38 SUCCESS,
39 // Invalid parameter. 39 // Invalid parameter.
40 INVALID_PARAMETER, 40 INVALID_PARAMETER,
41 // Profile not signed in. 41 // Profile not signed in.
42 NOT_SIGNED_IN, 42 NOT_SIGNED_IN,
43 // Certificate was missing. Certain operation, like register, requires it.
44 CERTIFICATE_MISSING,
45 // Previous asynchronous operation is still pending to finish. Certain 43 // Previous asynchronous operation is still pending to finish. Certain
46 // operation, like register, is only allowed one at a time. 44 // operation, like register, is only allowed one at a time.
47 ASYNC_OPERATION_PENDING, 45 ASYNC_OPERATION_PENDING,
48 // Network socket error. 46 // Network socket error.
49 NETWORK_ERROR, 47 NETWORK_ERROR,
50 // Problem at the server. 48 // Problem at the server.
51 SERVER_ERROR, 49 SERVER_ERROR,
52 // Exceeded the specified TTL during message sending. 50 // Exceeded the specified TTL during message sending.
53 TTL_EXCEEDED, 51 TTL_EXCEEDED,
54 // Other errors. 52 // Other errors.
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // |receiver_id|: registration ID of the receiver party. 179 // |receiver_id|: registration ID of the receiver party.
182 // |message|: message to be sent. 180 // |message|: message to be sent.
183 virtual void Send(const std::string& app_id, 181 virtual void Send(const std::string& app_id,
184 const std::string& receiver_id, 182 const std::string& receiver_id,
185 const OutgoingMessage& message) = 0; 183 const OutgoingMessage& message) = 0;
186 }; 184 };
187 185
188 } // namespace gcm 186 } // namespace gcm
189 187
190 #endif // GOOGLE_APIS_GCM_GCM_CLIENT_H_ 188 #endif // GOOGLE_APIS_GCM_GCM_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698