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_CONTEXT_REQUEST_HANDLER_H_ | |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER_H_ | |
7 | |
8 #include "content/browser/service_worker/service_worker_request_handler.h" | |
9 | |
10 namespace content { | |
11 | |
12 // A request handler derivative used to handle requests from | |
13 // service workers. | |
14 class CONTENT_EXPORT ServiceWorkerContextRequestHandler | |
15 : public ServiceWorkerRequestHandler { | |
16 public: | |
17 ServiceWorkerContextRequestHandler( | |
18 base::WeakPtr<ServiceWorkerContextCore> context, | |
19 base::WeakPtr<ServiceWorkerProviderHost> provider_host, | |
20 ResourceType::Type resource_type); | |
21 virtual ~ServiceWorkerContextRequestHandler(); | |
22 | |
23 // Called via custom URLRequestJobFactory. | |
24 virtual net::URLRequestJob* MaybeCreateJob( | |
25 net::URLRequest* request, | |
26 net::NetworkDelegate* network_delegate); | |
kinuko
2014/04/24 05:15:00
OVERRIDE
michaeln
2014/04/24 19:01:19
Done.
| |
27 | |
28 private: | |
29 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextRequestHandler); | |
30 }; | |
31 | |
32 } // namespace content | |
33 | |
34 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER _H_ | |
OLD | NEW |