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

Side by Side Diff: content/public/common/push_messaging_status.cc

Issue 758403003: Push API: Store push registration IDs for GetRegistration etc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@endpoint
Patch Set: Rebase Created 6 years 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 | « content/public/common/push_messaging_status.h ('k') | tools/metrics/histograms/histograms.xml » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/public/common/push_messaging_status.h" 5 #include "content/public/common/push_messaging_status.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 12 matching lines...) Expand all
23 return "Registration failed - registration limit has been reached"; 23 return "Registration failed - registration limit has been reached";
24 24
25 case PUSH_REGISTRATION_STATUS_PERMISSION_DENIED: 25 case PUSH_REGISTRATION_STATUS_PERMISSION_DENIED:
26 return "Registration failed - permission denied"; 26 return "Registration failed - permission denied";
27 27
28 case PUSH_REGISTRATION_STATUS_SERVICE_ERROR: 28 case PUSH_REGISTRATION_STATUS_SERVICE_ERROR:
29 return "Registration failed - push service error"; 29 return "Registration failed - push service error";
30 30
31 case PUSH_REGISTRATION_STATUS_NO_SENDER_ID: 31 case PUSH_REGISTRATION_STATUS_NO_SENDER_ID:
32 return "Registration failed - no sender id provided"; 32 return "Registration failed - no sender id provided";
33
34 case PUSH_REGISTRATION_STATUS_STORAGE_ERROR:
35 return "Registration failed - storage error";
33 } 36 }
34 NOTREACHED(); 37 NOTREACHED();
35 return ""; 38 return "";
36 } 39 }
37 40
38 } // namespace content 41 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/push_messaging_status.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698