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

Side by Side Diff: content/browser/appcache/appcache_url_request.h

Issue 2974733002: Add support for subresource request fallback in AppCache for the network service.. (Closed)
Patch Set: Fix build failures Created 3 years, 5 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698