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

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

Issue 2848493007: Reduce/Remove URLRequest dependencies from AppCacheRequestHandler (Closed)
Patch Set: Add comments 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
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_REQUEST_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_H_
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // wasn't found, 54 // wasn't found,
55 virtual std::string GetResponseHeaderByName( 55 virtual std::string GetResponseHeaderByName(
56 const std::string& name) const = 0; 56 const std::string& name) const = 0;
57 57
58 // Returns true if the scheme and method are supported for AppCache. 58 // Returns true if the scheme and method are supported for AppCache.
59 static bool IsSchemeAndMethodSupportedForAppCache( 59 static bool IsSchemeAndMethodSupportedForAppCache(
60 const AppCacheRequest* request); 60 const AppCacheRequest* request);
61 61
62 protected: 62 protected:
63 friend class AppCacheRequestHandler; 63 friend class AppCacheRequestHandler;
64 friend class AppCacheJob;
64 65
65 AppCacheRequest() {} 66 AppCacheRequest() {}
66 67
67 // Getters for the request types we currently support. 68 // Getters for the request types we currently support.
68 virtual net::URLRequest* GetURLRequest(); 69 virtual net::URLRequest* GetURLRequest();
69 70
70 // Returns the underlying ResourceRequest. Please note that only one of 71 // Returns the underlying ResourceRequest. Please note that only one of
71 // GetURLRequest() and GetResourceRequest() should return valid results. 72 // GetURLRequest() and GetResourceRequest() should return valid results.
72 virtual ResourceRequest* GetResourceRequest(); 73 virtual ResourceRequest* GetResourceRequest();
73 74
74 DISALLOW_COPY_AND_ASSIGN(AppCacheRequest); 75 DISALLOW_COPY_AND_ASSIGN(AppCacheRequest);
75 }; 76 };
76 77
77 } // namespace content 78 } // namespace content
78 79
79 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_H_ 80 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_job.cc ('k') | content/browser/appcache/appcache_request_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698