Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Side by Side Diff: content/browser/appcache/appcache_url_loader.cc

Issue 2848493007: Reduce/Remove URLRequest dependencies from AppCacheRequestHandler (Closed)
Patch Set: Fix compile failures Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/browser/appcache/appcache_url_loader.h"
6 #include "net/url_request/url_request.h"
7
8 namespace content {
9
10 // static
11 AppCacheURLLoader* AppCacheURLLoader::Create(const ResourceRequest& request) {
12 return new AppCacheURLLoader(request);
13 }
14
15 const GURL& AppCacheURLLoader::GetURL() const {
16 return request_.url;
17 }
18
19 const std::string& AppCacheURLLoader::GetMethod() const {
20 return request_.method;
21 }
22
23 const GURL& AppCacheURLLoader::GetFirstPartyForCookies() const {
24 return request_.first_party_for_cookies;
25 }
26
27 const GURL AppCacheURLLoader::GetReferrer() const {
28 return request_.referrer;
29 }
30
31 bool AppCacheURLLoader::IsSuccess() const {
32 return false;
33 }
34
35 bool AppCacheURLLoader::IsCancelled() const {
36 return false;
37 }
38
39 bool AppCacheURLLoader::IsError() const {
40 return false;
41 }
42
43 int AppCacheURLLoader::GetResponseCode() const {
44 return 0;
45 }
46
47 std::string AppCacheURLLoader::GetResponseHeaderByName(
48 const std::string& name) const {
49 return std::string();
50 }
51
52 ResourceRequest* AppCacheURLLoader::GetResourceRequest() {
53 return &request_;
54 }
55
56 AppCacheURLLoader::AppCacheURLLoader(const ResourceRequest& request)
57 : request_(request) {}
58
59 AppCacheURLLoader::~AppCacheURLLoader() {}
60
61 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698