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

Side by Side Diff: ios/shared/chrome/browser/tabs/web_state_handle.h

Issue 2640093004: WebStateList is an array of web::WebState* wrappers. (Closed)
Patch Set: Fix leaks (caught by unit tests). Created 3 years, 11 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
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_SHARED_CHROME_BROWSER_TABS_WEB_STATE_HANDLE_H_
6 #define IOS_SHARED_CHROME_BROWSER_TABS_WEB_STATE_HANDLE_H_
7
8 namespace web {
9 class WebState;
10 class WebStateImpl;
11 }
12
13 // Wraps a web::WebState instance in an Objective-C instance. Allows using
14 // Objective-C collection to reference web::WebStates.
15 @protocol WebStateHandle
16
17 // Returns the wrapped web::WebState.
18 @property(nonatomic, readonly) web::WebState* webState;
19
20 // Returns the wrapped web::WebState as a web::WebStateImpl. Deprecated,
21 // use webState instead if possible.
22 @property(nonatomic, readonly) web::WebStateImpl* webStateImpl;
23
24 @end
25
26 #endif // IOS_SHARED_CHROME_BROWSER_TABS_WEB_STATE_HANDLE_H_
OLDNEW
« no previous file with comments | « ios/shared/chrome/browser/tabs/BUILD.gn ('k') | ios/shared/chrome/browser/tabs/web_state_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698