| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..44029073ffe6044e1cd566e256cb4f671770dd19
|
| --- /dev/null
|
| +++ b/chrome/renderer/extensions/feedback_private_custom_bindings.cc
|
| @@ -0,0 +1,30 @@
|
| +// Copyright (c) 2012 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/Source/WebKit/chromium/public/WebBlob.h"
|
| +#include "third_party/WebKit/public/platform/WebCString.h"
|
| +#include "third_party/WebKit/public/platform/WebURL.h"
|
| +
|
| +namespace {
|
| +
|
| +void GetBlobUrl(const v8::FunctionCallbackInfo<v8::Value> &args) {
|
| + DCHECK(args.Length() == 1);
|
| + WebKit::WebBlob blob = WebKit::WebBlob::fromV8Value(args[0]);
|
| + args.GetReturnValue().Set(v8::String::New(blob.url().spec().data()));
|
| +}
|
| +
|
| +} // namespace
|
| +
|
| +namespace extensions {
|
| +
|
| +FeedbackPrivateCustomBindings::FeedbackPrivateCustomBindings(
|
| + Dispatcher* dispatcher,
|
| + ChromeV8Context* context) : ChromeV8Extension(dispatcher, context) {
|
| + RouteFunction("GetBlobUrl", base::Bind(&GetBlobUrl));
|
| +}
|
| +
|
| +} // namespace extensions
|
|
|