OLD | NEW |
(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_ |
OLD | NEW |