OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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_UI_WEBUI_SIGNIN_INTERNALS_UI_IOS_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_WEBUI_SIGNIN_INTERNALS_UI_IOS_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/values.h" |
| 10 #include "components/signin/core/browser/about_signin_internals.h" |
| 11 #include "ios/web/public/webui/web_ui_ios_controller.h" |
| 12 |
| 13 // The implementation for the chrome://signin-internals page. |
| 14 class SignInInternalsUIIOS : public web::WebUIIOSController, |
| 15 public AboutSigninInternals::Observer { |
| 16 public: |
| 17 explicit SignInInternalsUIIOS(web::WebUIIOS* web_ui); |
| 18 ~SignInInternalsUIIOS() override; |
| 19 |
| 20 // web::WebUIIOSController implementation. |
| 21 bool OverrideHandleWebUIIOSMessage(const GURL& source_url, |
| 22 const std::string& name, |
| 23 const base::ListValue& args) override; |
| 24 |
| 25 // AboutSigninInternals::Observer::OnSigninStateChanged implementation. |
| 26 void OnSigninStateChanged(const base::DictionaryValue* info) override; |
| 27 |
| 28 // Notification that the cookie accounts are ready to be displayed. |
| 29 void OnCookieAccountsFetched(const base::DictionaryValue* info) override; |
| 30 |
| 31 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(SignInInternalsUIIOS); |
| 33 }; |
| 34 |
| 35 #endif // IOS_CHROME_BROWSER_UI_WEBUI_SIGNIN_INTERNALS_UI_IOS_H_ |
OLD | NEW |