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

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

Issue 11230022: webkit: Merge build target 'appcache' to 'webkit_storage' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 8 years, 2 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
« no previous file with comments | « webkit/appcache/appcache_update_job.h ('k') | webkit/appcache/appcache_working_set.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 WEBKIT_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_
6 #define WEBKIT_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "net/http/http_byte_range.h" 11 #include "net/http/http_byte_range.h"
12 #include "net/url_request/url_request_job.h" 12 #include "net/url_request/url_request_job.h"
13 #include "webkit/appcache/appcache_entry.h" 13 #include "webkit/appcache/appcache_entry.h"
14 #include "webkit/appcache/appcache_export.h"
15 #include "webkit/appcache/appcache_response.h" 14 #include "webkit/appcache/appcache_response.h"
16 #include "webkit/appcache/appcache_storage.h" 15 #include "webkit/appcache/appcache_storage.h"
16 #include "webkit/storage/webkit_storage_export.h"
17 17
18 namespace appcache { 18 namespace appcache {
19 19
20 // A net::URLRequestJob derivative that knows how to return a response stored 20 // A net::URLRequestJob derivative that knows how to return a response stored
21 // in the appcache. 21 // in the appcache.
22 class APPCACHE_EXPORT AppCacheURLRequestJob : public net::URLRequestJob, 22 class WEBKIT_STORAGE_EXPORT AppCacheURLRequestJob
23 public AppCacheStorage::Delegate { 23 : public net::URLRequestJob,
24 public AppCacheStorage::Delegate {
24 public: 25 public:
25 AppCacheURLRequestJob(net::URLRequest* request, 26 AppCacheURLRequestJob(net::URLRequest* request,
26 net::NetworkDelegate* network_delegate, 27 net::NetworkDelegate* network_delegate,
27 AppCacheStorage* storage); 28 AppCacheStorage* storage);
28 29
29 // Informs the job of what response it should deliver. Only one of these 30 // Informs the job of what response it should deliver. Only one of these
30 // methods should be called, and only once per job. A job will sit idle and 31 // methods should be called, and only once per job. A job will sit idle and
31 // wait indefinitely until one of the deliver methods is called. 32 // wait indefinitely until one of the deliver methods is called.
32 void DeliverAppCachedResponse(const GURL& manifest_url, int64 group_id, 33 void DeliverAppCachedResponse(const GURL& manifest_url, int64 group_id,
33 int64 cache_id, const AppCacheEntry& entry, 34 int64 cache_id, const AppCacheEntry& entry,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 scoped_refptr<AppCacheResponseInfo> info_; 143 scoped_refptr<AppCacheResponseInfo> info_;
143 net::HttpByteRange range_requested_; 144 net::HttpByteRange range_requested_;
144 scoped_ptr<net::HttpResponseInfo> range_response_info_; 145 scoped_ptr<net::HttpResponseInfo> range_response_info_;
145 scoped_ptr<AppCacheResponseReader> reader_; 146 scoped_ptr<AppCacheResponseReader> reader_;
146 base::WeakPtrFactory<AppCacheURLRequestJob> weak_factory_; 147 base::WeakPtrFactory<AppCacheURLRequestJob> weak_factory_;
147 }; 148 };
148 149
149 } // namespace appcache 150 } // namespace appcache
150 151
151 #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ 152 #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_update_job.h ('k') | webkit/appcache/appcache_working_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698