diff options
author | teravest <teravest@chromium.org> | 2014-09-10 11:33:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-10 18:38:08 +0000 |
commit | aa60b4e5d9c8b07f93a13e8782113c6103bf89d9 (patch) | |
tree | 83f88ee223962b8d64e13bc2a6462310767fb0e9 /ppapi | |
parent | 0362f6002609dca40e53dbc47b4e73b659a31164 (diff) | |
download | chromium_src-aa60b4e5d9c8b07f93a13e8782113c6103bf89d9.zip chromium_src-aa60b4e5d9c8b07f93a13e8782113c6103bf89d9.tar.gz chromium_src-aa60b4e5d9c8b07f93a13e8782113c6103bf89d9.tar.bz2 |
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}
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/native_client/src/trusted/plugin/plugin.cc | 8 | ||||
-rw-r--r-- | ppapi/native_client/src/trusted/plugin/plugin.h | 5 |
2 files changed, 0 insertions, 13 deletions
diff --git a/ppapi/native_client/src/trusted/plugin/plugin.cc b/ppapi/native_client/src/trusted/plugin/plugin.cc index e7b2568..f2ba092 100644 --- a/ppapi/native_client/src/trusted/plugin/plugin.cc +++ b/ppapi/native_client/src/trusted/plugin/plugin.cc @@ -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 diff --git a/ppapi/native_client/src/trusted/plugin/plugin.h b/ppapi/native_client/src/trusted/plugin/plugin.h index 8b89a88..00798c2 100644 --- a/ppapi/native_client/src/trusted/plugin/plugin.h +++ b/ppapi/native_client/src/trusted/plugin/plugin.h @@ -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_; } |