blob: ed12484f92475440a20cb7b89fd87873aae3d184 [file] [log] [blame]
// 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.
#include "content/common/service_worker/service_worker_types.h"
#include "net/base/load_flags.h"
namespace content {
const char kServiceWorkerRegisterErrorPrefix[] =
"Failed to register a ServiceWorker: ";
const char kServiceWorkerUpdateErrorPrefix[] =
"Failed to update a ServiceWorker: ";
const char kServiceWorkerUnregisterErrorPrefix[] =
"Failed to unregister a ServiceWorkerRegistration: ";
const char kServiceWorkerGetRegistrationErrorPrefix[] =
"Failed to get a ServiceWorkerRegistration: ";
const char kServiceWorkerGetRegistrationsErrorPrefix[] =
"Failed to get ServiceWorkerRegistration objects: ";
const char kServiceWorkerFetchScriptError[] =
"An unknown error occurred when fetching the script.";
const char kServiceWorkerBadHTTPResponseError[] =
"A bad HTTP response code (%d) was received when fetching the script.";
const char kServiceWorkerSSLError[] =
"An SSL certificate error occurred when fetching the script.";
const char kServiceWorkerBadMIMEError[] =
"The script has an unsupported MIME type ('%s').";
const char kServiceWorkerNoMIMEError[] =
"The script does not have a MIME type.";
const char kServiceWorkerRedirectError[] =
"The script resource is behind a redirect, which is disallowed.";
const char kServiceWorkerAllowed[] = "Service-Worker-Allowed";
} // namespace content