| Index: webkit/plugins/ppapi/ppb_broker_impl.cc
|
| diff --git a/webkit/plugins/ppapi/ppb_broker_impl.cc b/webkit/plugins/ppapi/ppb_broker_impl.cc
|
| index 2386e0dcec87288038dee8e875911a8fdb7074db..49342fcae55e1700b6a417591905cfc5ab9d4fa8 100644
|
| --- a/webkit/plugins/ppapi/ppb_broker_impl.cc
|
| +++ b/webkit/plugins/ppapi/ppb_broker_impl.cc
|
| @@ -6,6 +6,9 @@
|
|
|
| #include "base/logging.h"
|
| #include "ppapi/shared_impl/platform_file.h"
|
| +#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
|
| +#include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h"
|
| +#include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h"
|
| #include "webkit/plugins/ppapi/common.h"
|
| #include "webkit/plugins/ppapi/plugin_module.h"
|
| #include "webkit/plugins/ppapi/resource_helper.h"
|
| @@ -75,6 +78,11 @@ int32_t PPB_Broker_Impl::GetHandle(int32_t* handle) {
|
| return PP_OK;
|
| }
|
|
|
| +GURL PPB_Broker_Impl::GetDocumentUrl() {
|
| + PluginInstance* plugin_instance = ResourceHelper::GetPluginInstance(this);
|
| + return plugin_instance->container()->element().document().url();
|
| +}
|
| +
|
| // Transfers ownership of the handle to the plugin.
|
| void PPB_Broker_Impl::BrokerConnected(int32_t handle, int32_t result) {
|
| DCHECK(pipe_handle_ ==
|
|
|