Chromium Code Reviews

Side by Side 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, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_request_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_CONTEXT_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_CONTEXT_H_
7
8 #include "base/memory/weak_ptr.h"
9 #include "base/supports_user_data.h"
10 #include "content/common/content_export.h"
11 #include "net/url_request/url_request_context.h"
12
13 namespace content {
14
15 // Attached to URLRequest via SupportsUserData.
16 class CONTENT_EXPORT ServiceWorkerRequestContext
17 : public net::URLRequestContext,
18 public base::SupportsUserData::Data {
19 public:
20 explicit ServiceWorkerRequestContext(
21 const net::URLRequestContext* original_request_context);
22 virtual ~ServiceWorkerRequestContext();
23
24 scoped_ptr<net::URLRequestJobFactory> job_factory_;
25 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestContext);
26 };
27
28 } // namespace content
29
30 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_CONTEXT_H_
OLDNEW
« 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