summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/tab_contents.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents.h')
-rw-r--r--chrome/browser/tab_contents/tab_contents.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.h b/chrome/browser/tab_contents/tab_contents.h
index 2935273..51b8954 100644
--- a/chrome/browser/tab_contents/tab_contents.h
+++ b/chrome/browser/tab_contents/tab_contents.h
@@ -18,6 +18,7 @@
#include "base/scoped_ptr.h"
#include "chrome/browser/autocomplete/autocomplete_edit.h"
#include "chrome/browser/cancelable_request.h"
+#include "chrome/browser/dom_ui/dom_ui_factory.h"
#include "chrome/browser/download/save_package.h"
#include "chrome/browser/fav_icon_helper.h"
#include "chrome/browser/find_notification_details.h"
@@ -590,6 +591,10 @@ class TabContents : public PageNavigator,
return &renderer_preferences_;
}
+ void set_opener_dom_ui_type(DOMUITypeID opener_dom_ui_type) {
+ opener_dom_ui_type_ = opener_dom_ui_type;
+ }
+
private:
friend class NavigationController;
// Used to access the child_windows_ (ConstrainedWindowList) for testing
@@ -1112,6 +1117,10 @@ class TabContents : public PageNavigator,
// Settings that get passed to the renderer process.
RendererPreferences renderer_preferences_;
+ // If this tab was created from a renderer using window.open, this will be
+ // non-NULL and represent the DOMUI of the opening renderer.
+ DOMUITypeID opener_dom_ui_type_;
+
// ---------------------------------------------------------------------------
DISALLOW_COPY_AND_ASSIGN(TabContents);