| Index: content/browser/service_worker/service_worker_request_context.h
|
| diff --git a/content/browser/service_worker/service_worker_request_context.h b/content/browser/service_worker/service_worker_request_context.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1f78f85a27456bcbf180661103c08fc61e5bd1de
|
| --- /dev/null
|
| +++ b/content/browser/service_worker/service_worker_request_context.h
|
| @@ -0,0 +1,30 @@
|
| +// 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.
|
| +
|
| +#ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_CONTEXT_H_
|
| +#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_CONTEXT_H_
|
| +
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "base/supports_user_data.h"
|
| +#include "content/common/content_export.h"
|
| +#include "net/url_request/url_request_context.h"
|
| +
|
| +namespace content {
|
| +
|
| +// Attached to URLRequest via SupportsUserData.
|
| +class CONTENT_EXPORT ServiceWorkerRequestContext
|
| + : public net::URLRequestContext,
|
| + public base::SupportsUserData::Data {
|
| + public:
|
| + explicit ServiceWorkerRequestContext(
|
| + const net::URLRequestContext* original_request_context);
|
| + virtual ~ServiceWorkerRequestContext();
|
| +
|
| + scoped_ptr<net::URLRequestJobFactory> job_factory_;
|
| + DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestContext);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_CONTEXT_H_
|
|
|