| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |