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

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

Issue 2680403005: Introduce WebStateList to manage a list of web::WebState. (Closed)
Patch Set: Fix "gn check". Created 3 years, 10 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_LIST_FAST_ENUMERATION_HELPER_H_
6 #define IOS_SHARED_CHROME_BROWSER_TABS_WEB_STATE_LIST_FAST_ENUMERATION_HELPER_H_
7
8 #import <Foundation/Foundation.h>
9
10 class WebStateList;
11
12 namespace web {
13 class WebState;
14 }
15
16 // Protocol used to get Objective-C proxies for WebStates.
17 @protocol WebStateProxyFactory
18
19 // Returns an Objective-C object corresponding to a given WebState.
20 - (id)proxyForWebState:(web::WebState*)webState;
21
22 @end
23
24 // Helper class allowing to perform implement NSFastEnumeration over a
marq (ping after 24h) 2017/02/13 16:32:53 s/to perform implement//
sdefresne 2017/02/14 13:39:57 Done.
25 // WebStateList.
26 @interface WebStateListFastEnumerationHelper : NSObject<NSFastEnumeration>
27
28 - (instancetype)initWithWebStateList:(WebStateList*)webStateList
29 proxyFactory:(id<WebStateProxyFactory>)proxyFactory
30 NS_DESIGNATED_INITIALIZER;
31
32 - (instancetype)init NS_UNAVAILABLE;
33
34 @end
35
36 #endif // IOS_SHARED_CHROME_BROWSER_TABS_WEB_STATE_LIST_FAST_ENUMERATION_HELPER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698