diff options
Diffstat (limited to 'chrome_frame/bho.h')
-rw-r--r-- | chrome_frame/bho.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome_frame/bho.h b/chrome_frame/bho.h index c70097f..fdae5bf 100644 --- a/chrome_frame/bho.h +++ b/chrome_frame/bho.h @@ -90,10 +90,14 @@ END_SINK_MAP() IBrowserService* browser, IShellView* shell_view, BOOL done, VARIANT* in_arg, VARIANT* out_arg); - std::string referrer() const { + const std::string& referrer() const { return referrer_; } + const std::wstring& url() const { + return url_; + } + // Returns the Bho instance for the current thread. This is returned from // TLS. static Bho* GetCurrentThreadBhoInstance(); @@ -102,6 +106,7 @@ END_SINK_MAP() bool PatchProtocolHandler(const CLSID& handler_clsid); std::string referrer_; + std::wstring url_; static base::LazyInstance<base::ThreadLocalPointer<Bho> > bho_current_thread_instance_; |