diff options
author | raymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-27 19:30:58 +0000 |
---|---|---|
committer | raymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-27 19:30:58 +0000 |
commit | 72a1072525f076a8fb46de782df640e3006512a2 (patch) | |
tree | c0c3ebba54b1dcb4d758a9810fab23a0ddcfeb0e /content/ppapi_plugin | |
parent | 6c1d2994c9472e09336d08a496d54332256dcc22 (diff) | |
download | chromium_src-72a1072525f076a8fb46de782df640e3006512a2.zip chromium_src-72a1072525f076a8fb46de782df640e3006512a2.tar.gz chromium_src-72a1072525f076a8fb46de782df640e3006512a2.tar.bz2 |
This adds an interface for setting crash data from a plugin. It also provides an implementation for setting crash URLs.
BUG=134176
TEST=Added test case to sanity check API call. Also hooked up to flash and produced a crash and checked that the report included the document url (http://crash/reportdetail?reportid=1719cae3a745f633)
Review URL: https://chromiumcodereview.appspot.com/10681006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144516 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/ppapi_plugin')
-rw-r--r-- | content/ppapi_plugin/ppapi_thread.cc | 5 | ||||
-rw-r--r-- | content/ppapi_plugin/ppapi_thread.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc index e79abe5..c5d6e37 100644 --- a/content/ppapi_plugin/ppapi_thread.cc +++ b/content/ppapi_plugin/ppapi_thread.cc @@ -16,6 +16,7 @@ #include "content/ppapi_plugin/broker_process_dispatcher.h" #include "content/ppapi_plugin/plugin_process_dispatcher.h" #include "content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h" +#include "content/public/common/content_client.h" #include "content/public/common/sandbox_init.h" #include "content/public/plugin/content_plugin_client.h" #include "ipc/ipc_channel_handle.h" @@ -177,6 +178,10 @@ void PpapiThread::PreCacheFont(const void* logfontw) { #endif } +void PpapiThread::SetActiveURL(const std::string& url) { + content::GetContentClient()->SetActiveURL(GURL(url)); +} + uint32 PpapiThread::Register(ppapi::proxy::PluginDispatcher* plugin_dispatcher) { if (!plugin_dispatcher || plugin_dispatchers_.size() >= std::numeric_limits<uint32>::max()) { diff --git a/content/ppapi_plugin/ppapi_thread.h b/content/ppapi_plugin/ppapi_thread.h index a7c6a3e..9687846 100644 --- a/content/ppapi_plugin/ppapi_thread.h +++ b/content/ppapi_plugin/ppapi_thread.h @@ -64,6 +64,7 @@ class PpapiThread : public ChildThread, virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE; virtual std::string GetUILanguage() OVERRIDE; virtual void PreCacheFont(const void* logfontw) OVERRIDE; + virtual void SetActiveURL(const std::string& url) OVERRIDE; // Message handlers. void OnMsgLoadPlugin(const FilePath& path); |