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

Side by Side Diff: webkit/appcache/appcache_service.h

Issue 9572001: Do cookie checks in NetworkDelegate instead of the URLRequest::Delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_SERVICE_H_
6 #define WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 // Context for use during cache updates, should only be accessed 102 // Context for use during cache updates, should only be accessed
103 // on the IO thread. We do NOT add a reference to the request context, 103 // on the IO thread. We do NOT add a reference to the request context,
104 // it is the callers responsibility to ensure that the pointer 104 // it is the callers responsibility to ensure that the pointer
105 // remains valid while set. 105 // remains valid while set.
106 net::URLRequestContext* request_context() const { return request_context_; } 106 net::URLRequestContext* request_context() const { return request_context_; }
107 void set_request_context(net::URLRequestContext* context) { 107 void set_request_context(net::URLRequestContext* context) {
108 request_context_ = context; 108 request_context_ = context;
109 } 109 }
110 110
111 // Perform additional initialization steps on an URLRequest used for cache
112 // updates. Should only be accessed on the UI thread.
michaeln 2012/03/01 17:47:01 please define this method on AppCachePolicy instea
jochen (gone - plz use gerrit) 2012/03/01 18:41:01 Ideally, I want to attach the process_id/routing_i
113 virtual void InitializeUpdateRequest(net::URLRequest* request) {};
114
111 // The appcache policy, may be null, in which case access is always allowed. 115 // The appcache policy, may be null, in which case access is always allowed.
112 // The service does NOT assume ownership of the policy, it is the callers 116 // The service does NOT assume ownership of the policy, it is the callers
113 // responsibility to ensure that the pointer remains valid while set. 117 // responsibility to ensure that the pointer remains valid while set.
114 AppCachePolicy* appcache_policy() const { return appcache_policy_; } 118 AppCachePolicy* appcache_policy() const { return appcache_policy_; }
115 void set_appcache_policy(AppCachePolicy* policy) { 119 void set_appcache_policy(AppCachePolicy* policy) {
116 appcache_policy_ = policy; 120 appcache_policy_ = policy;
117 } 121 }
118 122
119 quota::SpecialStoragePolicy* special_storage_policy() const { 123 quota::SpecialStoragePolicy* special_storage_policy() const {
120 return special_storage_policy_.get(); 124 return special_storage_policy_.get();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 bool clear_local_state_on_exit_; 184 bool clear_local_state_on_exit_;
181 // If true, nothing (not even session-only data) should be deleted on exit. 185 // If true, nothing (not even session-only data) should be deleted on exit.
182 bool save_session_state_; 186 bool save_session_state_;
183 187
184 DISALLOW_COPY_AND_ASSIGN(AppCacheService); 188 DISALLOW_COPY_AND_ASSIGN(AppCacheService);
185 }; 189 };
186 190
187 } // namespace appcache 191 } // namespace appcache
188 192
189 #endif // WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ 193 #endif // WEBKIT_APPCACHE_APPCACHE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698