diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-03 17:57:44 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-03 17:57:44 +0000 |
commit | c2e74fe834afaeed3bf8d21034bb995437518843 (patch) | |
tree | c9b3876a00bbbb78984b619246a4069ded4c1664 /chrome/browser/dom_ui/dom_ui_factory.h | |
parent | 3f7116cf4b4e725cc43c7331fed6cd1a1b03bc96 (diff) | |
download | chromium_src-c2e74fe834afaeed3bf8d21034bb995437518843.zip chromium_src-c2e74fe834afaeed3bf8d21034bb995437518843.tar.gz chromium_src-c2e74fe834afaeed3bf8d21034bb995437518843.tar.bz2 |
Revert "Revert "Allow DOMUI pages to call window.open(), giving DOMUI privileges to the new""
Second attempt at r25250. The tests were broken in Release mode due to a race. Should be fixed.
BUG=17636
Review URL: http://codereview.chromium.org/172120
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/dom_ui_factory.h')
-rw-r--r-- | chrome/browser/dom_ui/dom_ui_factory.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/dom_ui_factory.h b/chrome/browser/dom_ui/dom_ui_factory.h index e4e36c3..db1500c 100644 --- a/chrome/browser/dom_ui/dom_ui_factory.h +++ b/chrome/browser/dom_ui/dom_ui_factory.h @@ -11,8 +11,21 @@ class DOMUI; class GURL; class TabContents; +// An opaque identifier used to identify a DOMUI. This can only be compared to +// kNoDOMUI or other DOMUI types. See GetDOMUIType. +typedef void* DOMUITypeID; + class DOMUIFactory { public: + // A special DOMUI type that signifies that a given page would not use the + // DOM UI system. + static const DOMUITypeID kNoDOMUI; + + // Returns a type identifier indicating what DOMUI we would use for the + // given URL. This is useful for comparing the potential DOMUIs for two URLs. + // Returns kNoDOMUI if the given URL will not use the DOM UI system. + static DOMUITypeID GetDOMUIType(const GURL& url); + // Returns true if the given URL's scheme would trigger the DOM UI system. // This is a less precise test than UseDONUIForURL, which tells you whether // that specific URL matches a known one. This one is faster and can be used |