| OLD | NEW | 
|---|
| 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 <stdint.h> | 8 #include <stdint.h> | 
| 9 | 9 | 
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" | 
| (...skipping 30 matching lines...) Expand all  Loading... | 
| 41   ServiceWorkerControlleeRequestHandler( | 41   ServiceWorkerControlleeRequestHandler( | 
| 42       base::WeakPtr<ServiceWorkerContextCore> context, | 42       base::WeakPtr<ServiceWorkerContextCore> context, | 
| 43       base::WeakPtr<ServiceWorkerProviderHost> provider_host, | 43       base::WeakPtr<ServiceWorkerProviderHost> provider_host, | 
| 44       base::WeakPtr<storage::BlobStorageContext> blob_storage_context, | 44       base::WeakPtr<storage::BlobStorageContext> blob_storage_context, | 
| 45       FetchRequestMode request_mode, | 45       FetchRequestMode request_mode, | 
| 46       FetchCredentialsMode credentials_mode, | 46       FetchCredentialsMode credentials_mode, | 
| 47       FetchRedirectMode redirect_mode, | 47       FetchRedirectMode redirect_mode, | 
| 48       ResourceType resource_type, | 48       ResourceType resource_type, | 
| 49       RequestContextType request_context_type, | 49       RequestContextType request_context_type, | 
| 50       RequestContextFrameType frame_type, | 50       RequestContextFrameType frame_type, | 
| 51       scoped_refptr<ResourceRequestBodyImpl> body); | 51       scoped_refptr<ResourceRequestBodyImpl> body, | 
|  | 52       const MojoURLLoaderFactoryGetter& url_loader_factory_getter); | 
| 52   ~ServiceWorkerControlleeRequestHandler() override; | 53   ~ServiceWorkerControlleeRequestHandler() override; | 
| 53 | 54 | 
| 54   // Called via custom URLRequestJobFactory. | 55   // Called via custom URLRequestJobFactory. | 
| 55   net::URLRequestJob* MaybeCreateJob( | 56   net::URLRequestJob* MaybeCreateJob( | 
| 56       net::URLRequest* request, | 57       net::URLRequest* request, | 
| 57       net::NetworkDelegate* network_delegate, | 58       net::NetworkDelegate* network_delegate, | 
| 58       ResourceContext* resource_context) override; | 59       ResourceContext* resource_context) override; | 
| 59 | 60 | 
| 60  private: | 61  private: | 
| 61   FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, | 62   FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, | 
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 110   scoped_refptr<ResourceRequestBodyImpl> body_; | 111   scoped_refptr<ResourceRequestBodyImpl> body_; | 
| 111   ResourceContext* resource_context_; | 112   ResourceContext* resource_context_; | 
| 112   GURL stripped_url_; | 113   GURL stripped_url_; | 
| 113   bool force_update_started_; | 114   bool force_update_started_; | 
| 114 | 115 | 
| 115   // True if the next time this request is started, the response should be | 116   // True if the next time this request is started, the response should be | 
| 116   // delivered from the network, bypassing the ServiceWorker. Cleared after the | 117   // delivered from the network, bypassing the ServiceWorker. Cleared after the | 
| 117   // next intercept opportunity, for main frame requests. | 118   // next intercept opportunity, for main frame requests. | 
| 118   bool use_network_; | 119   bool use_network_; | 
| 119 | 120 | 
|  | 121   const MojoURLLoaderFactoryGetter url_loader_factory_getter_; | 
|  | 122 | 
| 120   base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; | 123   base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; | 
| 121 | 124 | 
| 122   DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); | 125   DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); | 
| 123 }; | 126 }; | 
| 124 | 127 | 
| 125 }  // namespace content | 128 }  // namespace content | 
| 126 | 129 | 
| 127 #endif  // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND
     LER_H_ | 130 #endif  // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND
     LER_H_ | 
| OLD | NEW | 
|---|