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

Side by Side Diff: content/public/browser/fileapi/blob_context.h

Issue 266373006: Blobs: Mechanism for creating Blobs in browser process, then transferring to renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self review fixes Created 6 years, 7 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 | « content/public/browser/browser_context.h ('k') | extensions/common/extension_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « content/public/browser/browser_context.h ('k') | extensions/common/extension_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698