Chromium Code Reviews| 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_CHROME_BROWSER_STORE_KIT_STORE_KIT_TAB_HELPER_H_ | |
| 6 #define IOS_CHROME_BROWSER_STORE_KIT_STORE_KIT_TAB_HELPER_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #import "ios/chrome/browser/store_kit/store_kit_launcher.h" | |
| 10 #import "ios/web/public/web_state/web_state_user_data.h" | |
| 11 | |
| 12 // A Tab Helper object that can open to a page on iOS App Store for a given | |
| 13 // app product ID. | |
| 14 class StoreKitTabHelper : public web::WebStateUserData<StoreKitTabHelper> { | |
| 15 public: | |
| 16 explicit StoreKitTabHelper(web::WebState* web_state){}; | |
|
sdefresne
2017/03/06 19:44:03
Remove trailing semi-colon. You can also use = def
pkl (ping after 24h if needed)
2017/03/07 01:17:54
Moved implementation to .mm file.
| |
| 17 ~StoreKitTabHelper() override = default; | |
| 18 | |
| 19 void SetLauncher(id<StoreKitLauncher> launcher); | |
| 20 id<StoreKitLauncher> GetLauncher(); | |
| 21 | |
| 22 void OpenAppStore(NSString* app_id); | |
| 23 | |
| 24 private: | |
| 25 id<StoreKitLauncher> store_kit_launcher_; // weak | |
|
sdefresne
2017/03/06 19:44:03
This is incorrect. The implementation file is comp
pkl (ping after 24h if needed)
2017/03/07 01:17:53
Thanks for the explanation. Using base::WeakNSProt
| |
| 26 | |
| 27 DISALLOW_COPY_AND_ASSIGN(StoreKitTabHelper); | |
| 28 }; | |
| 29 | |
| 30 #endif // IOS_CHROME_BROWSER_STORE_KIT_STORE_KIT_TAB_HELPER_H_ | |
| OLD | NEW |