Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3687)

Unified Diff: chrome_frame/bho.h

Issue 274071: When Chrome hands off a URL to be opened by the external host by the ViewHost... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/automation/tab_proxy.cc ('k') | chrome_frame/bho.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/bho.h
===================================================================
--- chrome_frame/bho.h (revision 29317)
+++ chrome_frame/bho.h (working copy)
@@ -14,6 +14,8 @@
#include <mshtml.h>
#include <shdeprecated.h>
+#include "base/lazy_instance.h"
+#include "base/thread_local.h"
#include "chrome_tab.h" // NOLINT
#include "chrome_frame/resource.h"
#include "grit/chrome_frame_resources.h"
@@ -85,13 +87,24 @@
IBrowserService* browser, IShellView* shell_view, BOOL done,
VARIANT* in_arg, VARIANT* out_arg);
+ std::string referrer() const {
+ return referrer_;
+ }
+
+ // Returns the Bho instance for the current thread. This is returned from
+ // TLS.
+ static Bho* GetCurrentThreadBhoInstance();
+
protected:
bool PatchProtocolHandler(const CLSID& handler_clsid);
static bool HasSubFrames(IWebBrowser2* web_browser2);
static HRESULT SwitchRenderer(IWebBrowser2* web_browser2,
IBrowserService* browser, IShellView* shell_view,
const wchar_t* meta_tag);
+ std::string referrer_;
+ static base::LazyInstance<base::ThreadLocalPointer<Bho> >
+ bho_current_thread_instance_;
static _ATL_FUNC_INFO kBeforeNavigate2Info;
};
Property changes on: chrome_frame\bho.h
___________________________________________________________________
Added: eol-style
+ LF
« no previous file with comments | « chrome/test/automation/tab_proxy.cc ('k') | chrome_frame/bho.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698