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

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

Issue 398903002: Plumb redirect info out of net, through content, and into child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: darin comments Created 6 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UPDATE_JOB_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 void set_existing_entry(const AppCacheEntry& entry) { 129 void set_existing_entry(const AppCacheEntry& entry) {
130 existing_entry_ = entry; 130 existing_entry_ = entry;
131 } 131 }
132 ResultType result() const { return result_; } 132 ResultType result() const { return result_; }
133 int redirect_response_code() const { return redirect_response_code_; } 133 int redirect_response_code() const { return redirect_response_code_; }
134 134
135 private: 135 private:
136 // URLRequest::Delegate overrides 136 // URLRequest::Delegate overrides
137 virtual void OnReceivedRedirect(net::URLRequest* request, 137 virtual void OnReceivedRedirect(net::URLRequest* request,
138 const GURL& new_url, 138 const net::RedirectInfo& redirect_info,
139 bool* defer_redirect) OVERRIDE; 139 bool* defer_redirect) OVERRIDE;
140 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; 140 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE;
141 virtual void OnReadCompleted(net::URLRequest* request, 141 virtual void OnReadCompleted(net::URLRequest* request,
142 int bytes_read) OVERRIDE; 142 int bytes_read) OVERRIDE;
143 143
144 void AddConditionalHeaders(const net::HttpResponseHeaders* headers); 144 void AddConditionalHeaders(const net::HttpResponseHeaders* headers);
145 void OnWriteComplete(int result); 145 void OnWriteComplete(int result);
146 void ReadResponseData(); 146 void ReadResponseData();
147 bool ConsumeResponseData(int bytes_read); 147 bool ConsumeResponseData(int bytes_read);
148 void OnResponseCompleted(); 148 void OnResponseCompleted();
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 AppCacheStorage* storage_; 339 AppCacheStorage* storage_;
340 340
341 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate); 341 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate);
342 342
343 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob); 343 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob);
344 }; 344 };
345 345
346 } // namespace content 346 } // namespace content
347 347
348 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ 348 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698