Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_FILEAPI_BLOB_CONTEXT_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_FILEAPI_BLOB_CONTEXT_H_ | |
|
michaeln
2014/05/08 21:11:57
It may make more sense to put this in public/brows
tommycli
2014/05/08 22:43:03
Done.
| |
| 7 | |
| 8 #include "base/callback_forward.h" | |
| 9 #include "content/common/content_export.h" | |
| 10 | |
| 11 namespace webkit_blob { | |
|
michaeln
2014/05/08 21:11:57
I think we'll also need a content api wrapper for
tommycli
2014/05/08 22:43:03
Done.
| |
| 12 class BlobDataHandle; | |
| 13 } | |
| 14 | |
| 15 namespace content { | |
| 16 | |
| 17 // Used to coin Blobs in the browser process. For use on the UI thread. | |
| 18 class CONTENT_EXPORT BlobContext { | |
| 19 public: | |
| 20 typedef base::Callback< | |
| 21 void(scoped_ptr<webkit_blob::BlobDataHandle>)> BlobCallback; | |
| 22 | |
| 23 virtual void CreateMemoryBackedBlob( | |
| 24 const char* data, size_t length, const BlobCallback& callback) = 0; | |
| 25 | |
| 26 protected: | |
| 27 virtual ~BlobContext() {} | |
| 28 }; | |
| 29 | |
| 30 } // namespace content | |
| 31 | |
| 32 #endif // CONTENT_PUBLIC_BROWSER_FILEAPI_BLOB_CONTEXT_H_ | |
| OLD | NEW |