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

Side by Side Diff: ios/clean/chrome/browser/model/browser.h

Issue 2727353006: Introduce BrowserList and Browser classes for iOS. (Closed)
Patch Set: Add blank line. Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « ios/clean/chrome/browser/model/BUILD.gn ('k') | ios/clean/chrome/browser/model/browser.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ios/clean/chrome/browser/model/BUILD.gn ('k') | ios/clean/chrome/browser/model/browser.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698