Chromium Code Reviews| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 28 public: | 28 public: |
| 29 typedef std::vector<TabModel*> TabModelVector; | 29 typedef std::vector<TabModel*> TabModelVector; |
| 30 typedef TabModelVector::iterator iterator; | 30 typedef TabModelVector::iterator iterator; |
| 31 typedef TabModelVector::const_iterator const_iterator; | 31 typedef TabModelVector::const_iterator const_iterator; |
| 32 | 32 |
| 33 static void HandlePopupNavigation(chrome::NavigateParams* params); | 33 static void HandlePopupNavigation(chrome::NavigateParams* params); |
| 34 static void AddTabModel(TabModel* tab_model); | 34 static void AddTabModel(TabModel* tab_model); |
| 35 static void RemoveTabModel(TabModel* tab_model); | 35 static void RemoveTabModel(TabModel* tab_model); |
| 36 | 36 |
| 37 static TabModel* GetTabModelForWebContents( | 37 static TabModel* GetTabModelForWebContents( |
| 38 content::WebContents* web_contents); | 38 const content::WebContents* web_contents); |
|
Theresa
2016/06/30 20:50:25
Does this still need to be const?
xingliu
2016/07/01 00:30:39
Done.
| |
| 39 static TabModel* FindTabModelWithId(SessionID::id_type desired_id); | 39 static TabModel* FindTabModelWithId(SessionID::id_type desired_id); |
| 40 static bool IsOffTheRecordSessionActive(); | 40 static bool IsOffTheRecordSessionActive(); |
| 41 | 41 |
| 42 static const_iterator begin(); | 42 static const_iterator begin(); |
| 43 static const_iterator end(); | 43 static const_iterator end(); |
| 44 static bool empty(); | 44 static bool empty(); |
| 45 static size_t size(); | 45 static size_t size(); |
| 46 | 46 |
| 47 static TabModel* get(size_t index); | 47 static TabModel* get(size_t index); |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 DISALLOW_IMPLICIT_CONSTRUCTORS(TabModelList); | 50 DISALLOW_IMPLICIT_CONSTRUCTORS(TabModelList); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_ | 53 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_LIST_H_ |
| OLD | NEW |