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

Side by Side Diff: webkit/blob/blob_url_request_job.h

Issue 11103031: webkit: Merge blob and fileapi into one build target 'storage' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Leave *.gypi files in blob and fileapi 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/blob/blob_storage_controller.h ('k') | webkit/blob/blob_url_request_job_factory.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_BLOB_BLOB_URL_REQUEST_JOB_H_ 5 #ifndef WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_
6 #define WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_ 6 #define WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.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/blob/blob_data.h" 13 #include "webkit/blob/blob_data.h"
14 #include "webkit/blob/blob_export.h" 14 #include "webkit/storage/webkit_storage_export.h"
15 15
16 namespace base { 16 namespace base {
17 class MessageLoopProxy; 17 class MessageLoopProxy;
18 struct PlatformFileInfo; 18 struct PlatformFileInfo;
19 } 19 }
20 20
21 namespace net { 21 namespace net {
22 class DrainableIOBuffer; 22 class DrainableIOBuffer;
23 class IOBuffer; 23 class IOBuffer;
24 } 24 }
25 25
26 namespace webkit_blob { 26 namespace webkit_blob {
27 27
28 class LocalFileStreamReader; 28 class LocalFileStreamReader;
29 29
30 // A request job that handles reading blob URLs. 30 // A request job that handles reading blob URLs.
31 class BLOB_EXPORT BlobURLRequestJob : public net::URLRequestJob { 31 class WEBKIT_STORAGE_EXPORT BlobURLRequestJob : public net::URLRequestJob {
32 public: 32 public:
33 BlobURLRequestJob(net::URLRequest* request, 33 BlobURLRequestJob(net::URLRequest* request,
34 net::NetworkDelegate* network_delegate, 34 net::NetworkDelegate* network_delegate,
35 BlobData* blob_data, 35 BlobData* blob_data,
36 base::MessageLoopProxy* resolving_message_loop_proxy); 36 base::MessageLoopProxy* resolving_message_loop_proxy);
37 37
38 // net::URLRequestJob methods. 38 // net::URLRequestJob methods.
39 virtual void Start() OVERRIDE; 39 virtual void Start() OVERRIDE;
40 virtual void Kill() OVERRIDE; 40 virtual void Kill() OVERRIDE;
41 virtual bool ReadRawData(net::IOBuffer* buf, 41 virtual bool ReadRawData(net::IOBuffer* buf,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 bool byte_range_set_; 101 bool byte_range_set_;
102 net::HttpByteRange byte_range_; 102 net::HttpByteRange byte_range_;
103 scoped_ptr<net::HttpResponseInfo> response_info_; 103 scoped_ptr<net::HttpResponseInfo> response_info_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob); 105 DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob);
106 }; 106 };
107 107
108 } // namespace webkit_blob 108 } // namespace webkit_blob
109 109
110 #endif // WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_ 110 #endif // WEBKIT_BLOB_BLOB_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « webkit/blob/blob_storage_controller.h ('k') | webkit/blob/blob_url_request_job_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698