Commit aa60b4e5 authored by teravest's avatar teravest Committed by Commit bot

Remove Plugin::DocumentCanRequest.

This is no longer used after the removal of FileDownloader from the trusted
plugin.

BUG=

Review URL: https://codereview.chromium.org/560073002

Cr-Commit-Position: refs/heads/master@{#294197}
parent 0362f600
......@@ -24,7 +24,6 @@
#include "ppapi/c/pp_errors.h"
#include "ppapi/c/private/ppb_nacl_private.h"
#include "ppapi/cpp/dev/url_util_dev.h"
#include "ppapi/cpp/module.h"
#include "ppapi/native_client/src/trusted/plugin/nacl_subprocess.h"
......@@ -276,7 +275,6 @@ Plugin::Plugin(PP_Instance pp_instance)
nexe_file_info_ = kInvalidNaClFileInfo;
}
Plugin::~Plugin() {
int64_t shutdown_start = NaClGetTimeOfDayMicroseconds();
......@@ -433,10 +431,4 @@ void Plugin::ReportLoadError(const ErrorInfo& error_info) {
error_info.message().c_str());
}
bool Plugin::DocumentCanRequest(const std::string& url) {
CHECK(pp::Module::Get()->core()->IsMainThread());
CHECK(pp::URLUtil_Dev::Get() != NULL);
return pp::URLUtil_Dev::Get()->DocumentCanRequest(this, pp::Var(url));
}
} // namespace plugin
......@@ -121,11 +121,6 @@ class Plugin : public pp::Instance {
nacl::DescWrapperFactory* wrapper_factory() const { return wrapper_factory_; }
// A helper function that indicates if |url| can be requested by the document
// under the same-origin policy. Strictly speaking, it may be possible for the
// document to request the URL using CORS even if this function returns false.
bool DocumentCanRequest(const std::string& url);
const PPB_NaCl_Private* nacl_interface() const { return nacl_interface_; }
pp::UMAPrivate& uma_interface() { return uma_interface_; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment