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

Side by Side Diff: content/common/service_worker/service_worker_types.cc

Issue 1270513002: Service Worker: Make ServiceWorkerRegistration.update() return a promise. (Chromium 2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass a raw ptr to callback's onError instead of a scoped_ptr. Created 5 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 unified diff | Download patch
« no previous file with comments | « content/common/service_worker/service_worker_types.h ('k') | no next file » | 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/common/service_worker/service_worker_types.h" 5 #include "content/common/service_worker/service_worker_types.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 const char kServiceWorkerRegisterErrorPrefix[] = 9 const char kServiceWorkerRegisterErrorPrefix[] =
10 "Failed to register a ServiceWorker: "; 10 "Failed to register a ServiceWorker: ";
11 const char kServiceWorkerUpdateErrorPrefix[] =
12 "Failed to update a ServiceWorker: ";
11 const char kServiceWorkerUnregisterErrorPrefix[] = 13 const char kServiceWorkerUnregisterErrorPrefix[] =
12 "Failed to unregister a ServiceWorkerRegistration: "; 14 "Failed to unregister a ServiceWorkerRegistration: ";
13 const char kServiceWorkerGetRegistrationErrorPrefix[] = 15 const char kServiceWorkerGetRegistrationErrorPrefix[] =
14 "Failed to get a ServiceWorkerRegistration: "; 16 "Failed to get a ServiceWorkerRegistration: ";
15 const char kServiceWorkerGetRegistrationsErrorPrefix[] = 17 const char kServiceWorkerGetRegistrationsErrorPrefix[] =
16 "Failed to get ServiceWorkerRegistration objects: "; 18 "Failed to get ServiceWorkerRegistration objects: ";
17 const char kFetchScriptError[] = 19 const char kFetchScriptError[] =
18 "An unknown error occurred when fetching the script."; 20 "An unknown error occurred when fetching the script.";
19 21
20 ServiceWorkerFetchRequest::ServiceWorkerFetchRequest() 22 ServiceWorkerFetchRequest::ServiceWorkerFetchRequest()
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 : handle_id(kInvalidServiceWorkerRegistrationHandleId), 87 : handle_id(kInvalidServiceWorkerRegistrationHandleId),
86 registration_id(kInvalidServiceWorkerRegistrationId) { 88 registration_id(kInvalidServiceWorkerRegistrationId) {
87 } 89 }
88 90
89 ServiceWorkerClientQueryOptions::ServiceWorkerClientQueryOptions() 91 ServiceWorkerClientQueryOptions::ServiceWorkerClientQueryOptions()
90 : client_type(blink::WebServiceWorkerClientTypeWindow), 92 : client_type(blink::WebServiceWorkerClientTypeWindow),
91 include_uncontrolled(false) { 93 include_uncontrolled(false) {
92 } 94 }
93 95
94 } // namespace content 96 } // namespace content
OLDNEW
« no previous file with comments | « content/common/service_worker/service_worker_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698