main_controller_private.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2015 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. #ifndef IOS_CHROME_APP_MAIN_CONTROLLER_PRIVATE_H_
  5. #define IOS_CHROME_APP_MAIN_CONTROLLER_PRIVATE_H_
  6. #import "base/ios/block_types.h"
  7. #include "components/browsing_data/core/browsing_data_utils.h"
  8. #import "ios/chrome/app/application_delegate/browser_launcher.h"
  9. #import "ios/chrome/app/main_controller.h"
  10. #include "ios/chrome/browser/browsing_data/browsing_data_remove_mask.h"
  11. class GURL;
  12. @protocol TabSwitcher;
  13. @class FirstRunAppAgent;
  14. // Private methods and protocols that are made visible here for tests.
  15. @interface MainController ()
  16. // YES if the last time the app was launched was with a previous version.
  17. @property(nonatomic, readonly) BOOL isFirstLaunchAfterUpgrade;
  18. @end
  19. // Methods that only exist for tests.
  20. @interface MainController (TestingOnly)
  21. // Sets the internal startup state to indicate that the launch was triggered
  22. // by an external app opening the given URL.
  23. - (void)setStartupParametersWithURL:(const GURL&)launchURL;
  24. @end
  25. #endif // IOS_CHROME_APP_MAIN_CONTROLLER_PRIVATE_H_