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

Unified Diff: content/public/browser/blob_handle.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: move blob_handle to own class 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/blob_context.h ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/blob_handle.h
diff --git a/content/public/browser/blob_handle.h b/content/public/browser/blob_handle.h
new file mode 100644
index 0000000000000000000000000000000000000000..b54effc71070a685dbbff42bd6bbc15854723438
--- /dev/null
+++ b/content/public/browser/blob_handle.h
@@ -0,0 +1,25 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_BLOB_HANDLE_H_
+#define CONTENT_PUBLIC_BROWSER_BLOB_HANDLE_H_
+
+#include <string>
+
+namespace content {
+
+// A handle to Blobs that can be stored outside of content/. This class holds
+// a reference to the Blob and should be used to keep alive a Blob.
+class BlobHandle {
+ public:
+ virtual ~BlobHandle() {}
+ virtual std::string uuid() = 0;
jam 2014/05/13 21:24:08 nit: per style guide, this should be GetUUID. also
tommycli 2014/05/14 00:15:28 Done.
+
+ protected:
+ BlobHandle() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_BLOB_HANDLE_H_
« no previous file with comments | « content/public/browser/blob_context.h ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698