summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents_factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents_factory.h')
-rw-r--r--chrome/browser/tab_contents_factory.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents_factory.h b/chrome/browser/tab_contents_factory.h
index c802cde..86c15ea 100644
--- a/chrome/browser/tab_contents_factory.h
+++ b/chrome/browser/tab_contents_factory.h
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#ifndef CHROME_BROWSER_TAB_CONTENTS_FACTORY_H_
+#define CHROME_BROWSER_TAB_CONTENTS_FACTORY_H_
+
#include <string>
#include "chrome/browser/tab_contents_type.h"
@@ -11,6 +14,9 @@ class TabContents;
// TabContents::RegisterFactory.
class TabContentsFactory {
public:
+ // Returns the next unused TabContentsType after TAB_CONTENTS_NUM_TYPES.
+ static TabContentsType NextUnusedType();
+
// Returns a new TabContents instance of the associated type.
virtual TabContents* CreateInstance() = 0;
@@ -19,3 +25,4 @@ class TabContentsFactory {
virtual bool CanHandleURL(const GURL& url) = 0;
};
+#endif // CHROME_BROWSER_TAB_CONTENTS_FACTORY_H_ \ No newline at end of file