| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 59 | 59 | 
| 60  private: | 60  private: | 
| 61   FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, | 61   FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, | 
| 62                            ActivateWaitingVersion); | 62                            ActivateWaitingVersion); | 
| 63   typedef ServiceWorkerControlleeRequestHandler self; | 63   typedef ServiceWorkerControlleeRequestHandler self; | 
| 64 | 64 | 
| 65   // For main resource case. | 65   // For main resource case. | 
| 66   void PrepareForMainResource(const net::URLRequest* request); | 66   void PrepareForMainResource(const net::URLRequest* request); | 
| 67   void DidLookupRegistrationForMainResource( | 67   void DidLookupRegistrationForMainResource( | 
| 68       ServiceWorkerStatusCode status, | 68       ServiceWorkerStatusCode status, | 
| 69       const scoped_refptr<ServiceWorkerRegistration>& registration); | 69       scoped_refptr<ServiceWorkerRegistration> registration); | 
| 70   void OnVersionStatusChanged( | 70   void OnVersionStatusChanged( | 
| 71       ServiceWorkerRegistration* registration, | 71       ServiceWorkerRegistration* registration, | 
| 72       ServiceWorkerVersion* version); | 72       ServiceWorkerVersion* version); | 
| 73 | 73 | 
| 74   void DidUpdateRegistration( | 74   void DidUpdateRegistration( | 
| 75       const scoped_refptr<ServiceWorkerRegistration>& original_registration, | 75       const scoped_refptr<ServiceWorkerRegistration>& original_registration, | 
| 76       ServiceWorkerStatusCode status, | 76       ServiceWorkerStatusCode status, | 
| 77       const std::string& status_message, | 77       const std::string& status_message, | 
| 78       int64_t registration_id); | 78       int64_t registration_id); | 
| 79   void OnUpdatedVersionStatusChanged( | 79   void OnUpdatedVersionStatusChanged( | 
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 118   bool use_network_; | 118   bool use_network_; | 
| 119 | 119 | 
| 120   base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; | 120   base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; | 
| 121 | 121 | 
| 122   DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); | 122   DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); | 
| 123 }; | 123 }; | 
| 124 | 124 | 
| 125 }  // namespace content | 125 }  // namespace content | 
| 126 | 126 | 
| 127 #endif  // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND
     LER_H_ | 127 #endif  // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND
     LER_H_ | 
| OLD | NEW | 
|---|