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

Side by Side Diff: storage/browser/blob/view_blob_internals_job.h

Issue 1234813004: [BlobAsync] Asynchronous Blob Construction Final Patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blob-protocol-change
Patch Set: Comments Created 4 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
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 STORAGE_BROWSER_BLOB_VIEW_BLOB_INTERNALS_JOB_H_ 5 #ifndef STORAGE_BROWSER_BLOB_VIEW_BLOB_INTERNALS_JOB_H_
6 #define STORAGE_BROWSER_BLOB_VIEW_BLOB_INTERNALS_JOB_H_ 6 #define STORAGE_BROWSER_BLOB_VIEW_BLOB_INTERNALS_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 25 matching lines...) Expand all
36 std::string* data, 36 std::string* data,
37 const net::CompletionCallback& callback) const override; 37 const net::CompletionCallback& callback) const override;
38 bool IsRedirectResponse(GURL* location, int* http_status_code) override; 38 bool IsRedirectResponse(GURL* location, int* http_status_code) override;
39 void Kill() override; 39 void Kill() override;
40 40
41 private: 41 private:
42 ~ViewBlobInternalsJob() override; 42 ~ViewBlobInternalsJob() override;
43 43
44 void GenerateHTML(std::string* out) const; 44 void GenerateHTML(std::string* out) const;
45 static void GenerateHTMLForBlobData(const InternalBlobData& blob_data, 45 static void GenerateHTMLForBlobData(const InternalBlobData& blob_data,
46 const std::string& content_type,
47 const std::string& content_disposition,
46 int refcount, 48 int refcount,
47 std::string* out); 49 std::string* out);
48 50
49 BlobStorageContext* blob_storage_context_; 51 BlobStorageContext* blob_storage_context_;
50 base::WeakPtrFactory<ViewBlobInternalsJob> weak_factory_; 52 base::WeakPtrFactory<ViewBlobInternalsJob> weak_factory_;
51 53
52 DISALLOW_COPY_AND_ASSIGN(ViewBlobInternalsJob); 54 DISALLOW_COPY_AND_ASSIGN(ViewBlobInternalsJob);
53 }; 55 };
54 56
55 } // namespace storage 57 } // namespace storage
56 58
57 #endif // STORAGE_BROWSER_BLOB_VIEW_BLOB_INTERNALS_JOB_H_ 59 #endif // STORAGE_BROWSER_BLOB_VIEW_BLOB_INTERNALS_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698