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

Unified Diff: chrome/renderer/extensions/feedback_private_custom_bindings.cc

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/feedback_private_custom_bindings.cc
diff --git a/chrome/renderer/extensions/feedback_private_custom_bindings.cc b/chrome/renderer/extensions/feedback_private_custom_bindings.cc
deleted file mode 100644
index 9b9d5f2f1929255cbaca54f2ce61650ce3d06ce7..0000000000000000000000000000000000000000
--- a/chrome/renderer/extensions/feedback_private_custom_bindings.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// 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.
-
-#include "chrome/renderer/extensions/feedback_private_custom_bindings.h"
-
-#include "base/bind.h"
-#include "third_party/WebKit/public/platform/WebCString.h"
-#include "third_party/WebKit/public/platform/WebURL.h"
-#include "third_party/WebKit/public/web/WebBlob.h"
-
-namespace {
-
-void GetBlobUuid(const v8::FunctionCallbackInfo<v8::Value> &args) {
- DCHECK(args.Length() == 1);
- blink::WebBlob blob = blink::WebBlob::fromV8Value(args[0]);
- args.GetReturnValue().Set(v8::String::New(blob.uuid().utf8().data()));
-}
-
-} // namespace
-
-namespace extensions {
-
-FeedbackPrivateCustomBindings::FeedbackPrivateCustomBindings(
- Dispatcher* dispatcher,
- ChromeV8Context* context) : ChromeV8Extension(dispatcher, context) {
- RouteFunction("GetBlobUuid", base::Bind(&GetBlobUuid));
-}
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698