| 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_APPCACHE_APPCACHE_INTERCEPTOR_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_INTERCEPTOR_H_ |
| 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_INTERCEPTOR_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_INTERCEPTOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 int new_process_id, | 56 int new_process_id, |
| 57 int new_host_id, | 57 int new_host_id, |
| 58 ResourceRequesterInfo* requester_info); | 58 ResourceRequesterInfo* requester_info); |
| 59 static void MaybeCompleteCrossSiteTransferInOldProcess( | 59 static void MaybeCompleteCrossSiteTransferInOldProcess( |
| 60 net::URLRequest* request, | 60 net::URLRequest* request, |
| 61 int old_process_id); | 61 int old_process_id); |
| 62 | 62 |
| 63 AppCacheInterceptor(); | 63 AppCacheInterceptor(); |
| 64 ~AppCacheInterceptor() override; | 64 ~AppCacheInterceptor() override; |
| 65 | 65 |
| 66 static AppCacheRequestHandler* GetHandler(net::URLRequest* request); |
| 67 |
| 66 protected: | 68 protected: |
| 67 // Override from net::URLRequestInterceptor: | 69 // Override from net::URLRequestInterceptor: |
| 68 net::URLRequestJob* MaybeInterceptRequest( | 70 net::URLRequestJob* MaybeInterceptRequest( |
| 69 net::URLRequest* request, | 71 net::URLRequest* request, |
| 70 net::NetworkDelegate* network_delegate) const override; | 72 net::NetworkDelegate* network_delegate) const override; |
| 71 net::URLRequestJob* MaybeInterceptResponse( | 73 net::URLRequestJob* MaybeInterceptResponse( |
| 72 net::URLRequest* request, | 74 net::URLRequest* request, |
| 73 net::NetworkDelegate* network_delegate) const override; | 75 net::NetworkDelegate* network_delegate) const override; |
| 74 net::URLRequestJob* MaybeInterceptRedirect( | 76 net::URLRequestJob* MaybeInterceptRedirect( |
| 75 net::URLRequest* request, | 77 net::URLRequest* request, |
| 76 net::NetworkDelegate* network_delegate, | 78 net::NetworkDelegate* network_delegate, |
| 77 const GURL& location) const override; | 79 const GURL& location) const override; |
| 78 | 80 |
| 79 private: | 81 private: |
| 80 static void SetHandler(net::URLRequest* request, | 82 static void SetHandler(net::URLRequest* request, |
| 81 AppCacheRequestHandler* handler); | 83 AppCacheRequestHandler* handler); |
| 82 static AppCacheRequestHandler* GetHandler(net::URLRequest* request); | |
| 83 | 84 |
| 84 DISALLOW_COPY_AND_ASSIGN(AppCacheInterceptor); | 85 DISALLOW_COPY_AND_ASSIGN(AppCacheInterceptor); |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 } // namespace content | 88 } // namespace content |
| 88 | 89 |
| 89 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_INTERCEPTOR_H_ | 90 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_INTERCEPTOR_H_ |
| OLD | NEW |