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

Unified Diff: content/browser/service_worker/service_worker_request_context.h

Issue 177733003: ServiceWorker request intercept plan 1: Create per-request URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minimize Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_request_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698