OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CLEAN_CHROME_BROWSER_MODEL_BROWSER_H_ |
| 6 #define IOS_CLEAN_CHROME_BROWSER_MODEL_BROWSER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "ios/shared/chrome/browser/tabs/web_state_list.h" |
| 10 |
| 11 namespace ios { |
| 12 class ChromeBrowserState; |
| 13 } |
| 14 |
| 15 // Browser holds the state backing a collection of Tabs and the attached |
| 16 // UI elements (Tab strip, ...). |
| 17 class Browser { |
| 18 public: |
| 19 explicit Browser(ios::ChromeBrowserState* browser_state); |
| 20 ~Browser(); |
| 21 |
| 22 WebStateList& web_state_list() { return web_state_list_; } |
| 23 const WebStateList& web_state_list() const { return web_state_list_; } |
| 24 |
| 25 ios::ChromeBrowserState* browser_state() const { return browser_state_; } |
| 26 |
| 27 private: |
| 28 WebStateList web_state_list_; |
| 29 ios::ChromeBrowserState* browser_state_; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 32 }; |
| 33 |
| 34 #endif // IOS_CLEAN_CHROME_BROWSER_MODEL_BROWSER_H_ |
OLD | NEW |