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

Side by Side Diff: webkit/blob/view_blob_internals_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/shareable_file_reference.h ('k') | webkit/blob/webkit_blob.gypi » ('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_VIEW_BLOB_INTERNALS_JOB_H_ 5 #ifndef WEBKIT_BLOB_VIEW_BLOB_INTERNALS_JOB_H_
6 #define WEBKIT_BLOB_VIEW_BLOB_INTERNALS_JOB_H_ 6 #define WEBKIT_BLOB_VIEW_BLOB_INTERNALS_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/url_request/url_request_simple_job.h" 11 #include "net/url_request/url_request_simple_job.h"
12 #include "webkit/blob/blob_export.h" 12 #include "webkit/storage/webkit_storage_export.h"
13 13
14 namespace net { 14 namespace net {
15 class URLRequest; 15 class URLRequest;
16 } // namespace net 16 } // namespace net
17 17
18 namespace webkit_blob { 18 namespace webkit_blob {
19 19
20 class BlobData; 20 class BlobData;
21 class BlobStorageController; 21 class BlobStorageController;
22 22
23 // A job subclass that implements a protocol to inspect the internal 23 // A job subclass that implements a protocol to inspect the internal
24 // state of blob registry. 24 // state of blob registry.
25 class BLOB_EXPORT ViewBlobInternalsJob : public net::URLRequestSimpleJob { 25 class WEBKIT_STORAGE_EXPORT ViewBlobInternalsJob
26 : public net::URLRequestSimpleJob {
26 public: 27 public:
27 ViewBlobInternalsJob(net::URLRequest* request, 28 ViewBlobInternalsJob(net::URLRequest* request,
28 net::NetworkDelegate* network_delegate, 29 net::NetworkDelegate* network_delegate,
29 BlobStorageController* blob_storage_controller); 30 BlobStorageController* blob_storage_controller);
30 31
31 virtual void Start() OVERRIDE; 32 virtual void Start() OVERRIDE;
32 virtual int GetData(std::string* mime_type, 33 virtual int GetData(std::string* mime_type,
33 std::string* charset, 34 std::string* charset,
34 std::string* data, 35 std::string* data,
35 const net::CompletionCallback& callback) const OVERRIDE; 36 const net::CompletionCallback& callback) const OVERRIDE;
(...skipping 11 matching lines...) Expand all
47 48
48 BlobStorageController* blob_storage_controller_; 49 BlobStorageController* blob_storage_controller_;
49 base::WeakPtrFactory<ViewBlobInternalsJob> weak_factory_; 50 base::WeakPtrFactory<ViewBlobInternalsJob> weak_factory_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(ViewBlobInternalsJob); 52 DISALLOW_COPY_AND_ASSIGN(ViewBlobInternalsJob);
52 }; 53 };
53 54
54 } // namespace webkit_blob 55 } // namespace webkit_blob
55 56
56 #endif // WEBKIT_BLOB_VIEW_BLOB_INTERNALS_JOB_H_ 57 #endif // WEBKIT_BLOB_VIEW_BLOB_INTERNALS_JOB_H_
OLDNEW
« no previous file with comments | « webkit/blob/shareable_file_reference.h ('k') | webkit/blob/webkit_blob.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698