| 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 #include "content/browser/appcache/appcache_url_request.h" | 5 #include "content/browser/appcache/appcache_url_request.h" |
| 6 #include "net/url_request/url_request.h" | 6 #include "net/url_request/url_request.h" |
| 7 | 7 |
| 8 namespace content { | 8 namespace content { |
| 9 | 9 |
| 10 // static | 10 // static |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const std::string& name) const { | 51 const std::string& name) const { |
| 52 std::string header; | 52 std::string header; |
| 53 url_request_->GetResponseHeaderByName(name, &header); | 53 url_request_->GetResponseHeaderByName(name, &header); |
| 54 return header; | 54 return header; |
| 55 } | 55 } |
| 56 | 56 |
| 57 net::URLRequest* AppCacheURLRequest::GetURLRequest() { | 57 net::URLRequest* AppCacheURLRequest::GetURLRequest() { |
| 58 return url_request_; | 58 return url_request_; |
| 59 } | 59 } |
| 60 | 60 |
| 61 AppCacheURLRequest* AppCacheURLRequest::AsURLRequest() { |
| 62 return this; |
| 63 } |
| 64 |
| 61 AppCacheURLRequest::AppCacheURLRequest(net::URLRequest* url_request) | 65 AppCacheURLRequest::AppCacheURLRequest(net::URLRequest* url_request) |
| 62 : url_request_(url_request) {} | 66 : url_request_(url_request) {} |
| 63 | 67 |
| 64 AppCacheURLRequest::~AppCacheURLRequest() {} | 68 AppCacheURLRequest::~AppCacheURLRequest() {} |
| 65 | 69 |
| 66 } // namespace content | 70 } // namespace content |
| OLD | NEW |