Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Unified Diff: chrome/browser/ui/android/tab_model/tab_model_list_android.h

Issue 10701030: Refactor SyncedWindowDelegateAndroid into TabModel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made some changes from a downstream review Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698