OLD | NEW |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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_URL_REQUEST_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_URL_REQUEST_H_ |
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_URL_REQUEST_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_URL_REQUEST_H_ |
7 | 7 |
8 #include "content/browser/appcache/appcache_request.h" | 8 #include "content/browser/appcache/appcache_request.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 // AppCacheRequest overrides. | 26 // AppCacheRequest overrides. |
27 const GURL& GetURL() const override; | 27 const GURL& GetURL() const override; |
28 const std::string& GetMethod() const override; | 28 const std::string& GetMethod() const override; |
29 const GURL& GetFirstPartyForCookies() const override; | 29 const GURL& GetFirstPartyForCookies() const override; |
30 const GURL GetReferrer() const override; | 30 const GURL GetReferrer() const override; |
31 bool IsSuccess() const override; | 31 bool IsSuccess() const override; |
32 bool IsCancelled() const override; | 32 bool IsCancelled() const override; |
33 bool IsError() const override; | 33 bool IsError() const override; |
34 int GetResponseCode() const override; | 34 int GetResponseCode() const override; |
35 std::string GetResponseHeaderByName(const std::string& name) const override; | 35 std::string GetResponseHeaderByName(const std::string& name) const override; |
36 | |
37 net::URLRequest* GetURLRequest() override; | 36 net::URLRequest* GetURLRequest() override; |
| 37 AppCacheURLRequest* AsURLRequest() override; |
38 | 38 |
39 protected: | 39 protected: |
40 explicit AppCacheURLRequest(net::URLRequest* url_request); | 40 explicit AppCacheURLRequest(net::URLRequest* url_request); |
41 | 41 |
42 private: | 42 private: |
43 net::URLRequest* url_request_; | 43 net::URLRequest* url_request_; |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(AppCacheURLRequest); | 45 DISALLOW_COPY_AND_ASSIGN(AppCacheURLRequest); |
46 }; | 46 }; |
47 | 47 |
48 } // namespace content | 48 } // namespace content |
49 | 49 |
50 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_H_ | 50 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_H_ |
OLD | NEW |