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

Side by Side Diff: content/browser/service_worker/service_worker_controllee_request_handler.h

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HANDLER _H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HANDLER _H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HANDLER _H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HANDLER _H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "content/browser/service_worker/service_worker_request_handler.h" 9 #include "content/browser/service_worker/service_worker_request_handler.h"
10 10
11 namespace net { 11 namespace net {
12 class NetworkDelegate; 12 class NetworkDelegate;
13 class URLRequest; 13 class URLRequest;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 17
18 class ServiceWorkerRegistration; 18 class ServiceWorkerRegistration;
19 class ServiceWorkerURLRequestJob; 19 class ServiceWorkerURLRequestJob;
20 class ServiceWorkerVersion; 20 class ServiceWorkerVersion;
21 21
22 // A request handler derivative used to handle requests from 22 // A request handler derivative used to handle requests from
23 // controlled documents. 23 // controlled documents.
24 class CONTENT_EXPORT ServiceWorkerControlleeRequestHandler 24 class CONTENT_EXPORT ServiceWorkerControlleeRequestHandler
25 : public ServiceWorkerRequestHandler { 25 : public ServiceWorkerRequestHandler {
26 public: 26 public:
27 ServiceWorkerControlleeRequestHandler( 27 ServiceWorkerControlleeRequestHandler(
28 base::WeakPtr<ServiceWorkerContextCore> context, 28 base::WeakPtr<ServiceWorkerContextCore> context,
29 base::WeakPtr<ServiceWorkerProviderHost> provider_host, 29 base::WeakPtr<ServiceWorkerProviderHost> provider_host,
30 base::WeakPtr<webkit_blob::BlobStorageContext> blob_storage_context, 30 base::WeakPtr<storage::BlobStorageContext> blob_storage_context,
31 ResourceType resource_type); 31 ResourceType resource_type);
32 virtual ~ServiceWorkerControlleeRequestHandler(); 32 virtual ~ServiceWorkerControlleeRequestHandler();
33 33
34 // Called via custom URLRequestJobFactory. 34 // Called via custom URLRequestJobFactory.
35 virtual net::URLRequestJob* MaybeCreateJob( 35 virtual net::URLRequestJob* MaybeCreateJob(
36 net::URLRequest* request, 36 net::URLRequest* request,
37 net::NetworkDelegate* network_delegate) OVERRIDE; 37 net::NetworkDelegate* network_delegate) OVERRIDE;
38 38
39 virtual void GetExtraResponseInfo( 39 virtual void GetExtraResponseInfo(
40 bool* was_fetched_via_service_worker, 40 bool* was_fetched_via_service_worker,
(...skipping 19 matching lines...) Expand all
60 bool is_main_resource_load_; 60 bool is_main_resource_load_;
61 scoped_refptr<ServiceWorkerURLRequestJob> job_; 61 scoped_refptr<ServiceWorkerURLRequestJob> job_;
62 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; 62 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); 64 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler);
65 }; 65 };
66 66
67 } // namespace content 67 } // namespace content
68 68
69 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND LER_H_ 69 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698