Chromium Code Reviews| Index: ios/chrome/browser/web/tab_helper_delegate.h |
| diff --git a/ios/chrome/browser/web/tab_helper_delegate.h b/ios/chrome/browser/web/tab_helper_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..81f8715b227e6dee14f0b16fde65027e0331fd85 |
| --- /dev/null |
| +++ b/ios/chrome/browser/web/tab_helper_delegate.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef tab_helper_delegate_h |
| +#define tab_helper_delegate_h |
| + |
| +#import <Foundation/Foundation.h> |
| + |
| +NS_ASSUME_NONNULL_BEGIN |
| + |
| +// Tab Helper IDs |
| + |
| +extern NSString* const SadTabTabHelperID; |
| + |
| +@protocol TabHelperDelegate<NSObject> |
|
kkhorimoto
2017/04/10 22:31:10
Also, for C++ objects, we should use C++ delegates
kkhorimoto
2017/04/10 22:31:10
Can you add comments elaborating the purpose of th
PL
2017/04/11 01:35:22
Done, thanks! Changing this as discussed offline:
|
| + |
| +// Returns whether the helper should be active and providing 'help' to the |
| +// delegate. |
| +// tabHelperID is a mechanism for identifying the specific tabHelper identity |
| +- (BOOL)tabHelperShouldBeActive:(NSString*)tabHelperID; |
|
kkhorimoto
2017/04/10 22:44:14
Another reason I'm not a big fan of this is that "
Eugene But (OOO till 7-30)
2017/04/10 22:56:28
Do you want to rename this delegate to SadTabTabHe
PL
2017/04/11 01:35:22
Done, thanks! Changing this as discussed offline:
|
| + |
| +@end |
| + |
| +NS_ASSUME_NONNULL_END |
| + |
| +#endif /* tab_helper_delegate_h */ |