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

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

Issue 1146913004: Service Worker: Add ServiceWorkerContainer.getRegistrations() method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tools/metrics/histograms/histograms.xml. Created 5 years, 6 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
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 kServiceWorkerUnregisterErrorPrefix[] = 11 const char kServiceWorkerUnregisterErrorPrefix[] =
12 "Failed to unregister a ServiceWorkerRegistration: "; 12 "Failed to unregister a ServiceWorkerRegistration: ";
13 const char kServiceWorkerGetRegistrationErrorPrefix[] = 13 const char kServiceWorkerGetRegistrationErrorPrefix[] =
14 "Failed to get a ServiceWorkerRegistration: "; 14 "Failed to get a ServiceWorkerRegistration: ";
15 const char kServiceWorkerGetRegistrationsErrorPrefix[] =
16 "Failed to get ServiceWorkerRegistration objects: ";
15 const char kFetchScriptError[] = 17 const char kFetchScriptError[] =
16 "An unknown error occurred when fetching the script."; 18 "An unknown error occurred when fetching the script.";
17 19
18 ServiceWorkerFetchRequest::ServiceWorkerFetchRequest() 20 ServiceWorkerFetchRequest::ServiceWorkerFetchRequest()
19 : mode(FETCH_REQUEST_MODE_NO_CORS), 21 : mode(FETCH_REQUEST_MODE_NO_CORS),
20 request_context_type(REQUEST_CONTEXT_TYPE_UNSPECIFIED), 22 request_context_type(REQUEST_CONTEXT_TYPE_UNSPECIFIED),
21 frame_type(REQUEST_CONTEXT_FRAME_TYPE_NONE), 23 frame_type(REQUEST_CONTEXT_FRAME_TYPE_NONE),
22 blob_size(0), 24 blob_size(0),
23 credentials_mode(FETCH_CREDENTIALS_MODE_OMIT), 25 credentials_mode(FETCH_CREDENTIALS_MODE_OMIT),
24 is_reload(false) { 26 is_reload(false) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 : handle_id(kInvalidServiceWorkerRegistrationHandleId), 82 : handle_id(kInvalidServiceWorkerRegistrationHandleId),
81 registration_id(kInvalidServiceWorkerRegistrationId) { 83 registration_id(kInvalidServiceWorkerRegistrationId) {
82 } 84 }
83 85
84 ServiceWorkerClientQueryOptions::ServiceWorkerClientQueryOptions() 86 ServiceWorkerClientQueryOptions::ServiceWorkerClientQueryOptions()
85 : client_type(blink::WebServiceWorkerClientTypeWindow), 87 : client_type(blink::WebServiceWorkerClientTypeWindow),
86 include_uncontrolled(false) { 88 include_uncontrolled(false) {
87 } 89 }
88 90
89 } // namespace content 91 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698