| 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 <memory> |
| 11 |
| 10 #include "base/macros.h" | 12 #include "base/macros.h" |
| 11 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 12 #include "content/public/common/resource_type.h" | 14 #include "content/public/common/resource_type.h" |
| 13 #include "net/url_request/url_request_interceptor.h" | 15 #include "net/url_request/url_request_interceptor.h" |
| 14 | 16 |
| 15 class GURL; | 17 class GURL; |
| 16 | 18 |
| 17 namespace net { | 19 namespace net { |
| 18 class URLRequest; | 20 class URLRequest; |
| 19 } | 21 } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 std::unique_ptr<AppCacheRequestHandler> handler); |
| 82 static AppCacheRequestHandler* GetHandler(net::URLRequest* request); | 84 static AppCacheRequestHandler* GetHandler(net::URLRequest* request); |
| 83 | 85 |
| 84 DISALLOW_COPY_AND_ASSIGN(AppCacheInterceptor); | 86 DISALLOW_COPY_AND_ASSIGN(AppCacheInterceptor); |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 } // namespace content | 89 } // namespace content |
| 88 | 90 |
| 89 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_INTERCEPTOR_H_ | 91 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_INTERCEPTOR_H_ |
| OLD | NEW |