OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_ |
6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "chrome/browser/sessions/session_id.h" | 10 #include "chrome/browser/sessions/session_id.h" |
11 | 11 |
12 class Profile; | 12 class Profile; |
13 class TabModel; | 13 class TabModel; |
14 | 14 |
| 15 namespace chrome { |
| 16 struct NavigateParams; |
| 17 } |
| 18 |
15 // Stores a list of all TabModel objects. | 19 // Stores a list of all TabModel objects. |
16 class TabModelList { | 20 class TabModelList { |
17 public: | 21 public: |
18 typedef std::vector<TabModel*> TabModelVector; | 22 typedef std::vector<TabModel*> TabModelVector; |
19 typedef TabModelVector::iterator iterator; | 23 typedef TabModelVector::iterator iterator; |
20 typedef TabModelVector::const_iterator const_iterator; | 24 typedef TabModelVector::const_iterator const_iterator; |
21 | 25 |
| 26 static void HandlePopupNavigation(chrome::NavigateParams* params); |
22 static void AddTabModel(TabModel* tab_model); | 27 static void AddTabModel(TabModel* tab_model); |
23 static void RemoveTabModel(TabModel* tab_model); | 28 static void RemoveTabModel(TabModel* tab_model); |
24 | 29 |
25 static TabModel* GetTabModelWithProfile(Profile* profile); | 30 static TabModel* GetTabModelWithProfile(Profile* profile); |
26 static TabModel* FindTabModelWithId(SessionID::id_type desired_id); | 31 static TabModel* FindTabModelWithId(SessionID::id_type desired_id); |
27 static bool IsOffTheRecordSessionActive(); | 32 static bool IsOffTheRecordSessionActive(); |
28 | 33 |
29 static const_iterator begin(); | 34 static const_iterator begin(); |
30 static const_iterator end(); | 35 static const_iterator end(); |
31 static bool empty(); | 36 static bool empty(); |
32 static size_t size(); | 37 static size_t size(); |
33 | 38 |
34 private: | 39 private: |
35 DISALLOW_IMPLICIT_CONSTRUCTORS(TabModelList); | 40 DISALLOW_IMPLICIT_CONSTRUCTORS(TabModelList); |
36 }; | 41 }; |
37 | 42 |
38 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_ | 43 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_ |
OLD | NEW |