Index: chrome/browser/ui/android/tab_model/tab_model_list_android.h |
diff --git a/chrome/browser/ui/android/tab_model/tab_model_list_android.h b/chrome/browser/ui/android/tab_model/tab_model_list_android.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ba2e56f8d1d2c59f1127a7ef939f6c1e2f8e269e |
--- /dev/null |
+++ b/chrome/browser/ui/android/tab_model/tab_model_list_android.h |
@@ -0,0 +1,39 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_ANDROID_H_ |
+#define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_ANDROID_H_ |
+#pragma once |
+ |
+#include <vector> |
+ |
+#include "chrome/browser/sessions/session_id.h" |
+ |
+class Profile; |
+class TabModelAndroid; |
+ |
+class TabModelListAndroid { |
sky
2012/07/17 00:32:12
Add a description.
David Trainor- moved to gerrit
2012/07/18 23:59:04
Done.
|
+ public: |
+ typedef std::vector<TabModelAndroid*> TabModelAndroidVector; |
+ typedef TabModelAndroidVector::iterator iterator; |
+ typedef TabModelAndroidVector::const_iterator const_iterator; |
+ |
+ static void AddTabModel(TabModelAndroid* tab_model); |
+ static void RemoveTabModel(TabModelAndroid* tab_model); |
+ |
+ static TabModelAndroid* GetTabModelWithProfile(Profile* profile); |
+ static TabModelAndroid* FindTabModelWithId(SessionID::id_type desired_id); |
+ static bool IsOffTheRecordSessionActive(); |
+ |
+ static const_iterator begin(); |
+ static const_iterator end(); |
+ static bool empty(); |
+ static size_t size(); |
+ private: |
sky
2012/07/17 00:32:12
nit: newline between 32/33.
David Trainor- moved to gerrit
2012/07/18 23:59:04
Done.
|
+ TabModelListAndroid() { } |
+ |
+ DISALLOW_COPY_AND_ASSIGN(TabModelListAndroid); |
sky
2012/07/17 00:32:12
Since you don't want anyone creating an instance o
David Trainor- moved to gerrit
2012/07/18 23:59:04
Done.
|
+}; |
+ |
+#endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_ANDROID_H_ |