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

Unified Diff: chrome/renderer/extensions/blob_native_handler.h

Issue 76703002: Media Galleries API Metadata: Make Blob native extension bindings available to multiple extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
Index: chrome/renderer/extensions/blob_native_handler.h
diff --git a/chrome/renderer/extensions/blob_native_handler.h b/chrome/renderer/extensions/blob_native_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..55b89fd161907151005111f42135025584bf34f7
--- /dev/null
+++ b/chrome/renderer/extensions/blob_native_handler.h
@@ -0,0 +1,23 @@
+// Copyright 2013 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 CHROME_RENDERER_EXTENSIONS_BLOB_NATIVE_HANDLER_H_
+#define CHROME_RENDERER_EXTENSIONS_BLOB_NATIVE_HANDLER_H_
+
+#include "chrome/renderer/extensions/chrome_v8_extension.h"
+
+namespace extensions {
+
+class BlobNativeHandler : public ObjectBackedNativeHandler {
+ public:
+ explicit BlobNativeHandler(ChromeV8Context* context);
+
+ private:
+ // Expects a single Blob argument. Returns the Blob's UUID.
+ void GetBlobUuid(const v8::FunctionCallbackInfo<v8::Value> &args);
Lei Zhang 2013/11/19 21:28:41 nit: ">& args);"
tommycli 2013/11/19 22:16:05 Done.
+};
+
+} // namespace extensions
+
+#endif // CHROME_RENDERER_EXTENSIONS_BLOB_NATIVE_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698