Index: chrome/browser/dom_ui/dom_ui_factory.h |
diff --git a/chrome/browser/dom_ui/dom_ui_factory.h b/chrome/browser/dom_ui/dom_ui_factory.h |
index e4e36c3a39f2e891052c34051a2cf8dc049eeff6..db1500c9142e6f61ea8d2661a6b3a471e5f00181 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 |