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

Unified Diff: ios/chrome/browser/ui/webui/signin_internals_ui_ios.h

Issue 2580333003: Upstream Chrome on iOS source code [10/11]. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/ui/webui/omaha_ui.cc ('k') | ios/chrome/browser/ui/webui/signin_internals_ui_ios.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/webui/signin_internals_ui_ios.h
diff --git a/ios/chrome/browser/ui/webui/signin_internals_ui_ios.h b/ios/chrome/browser/ui/webui/signin_internals_ui_ios.h
new file mode 100644
index 0000000000000000000000000000000000000000..4c9ea69e16bdf7e659bcc1a8683717243554d810
--- /dev/null
+++ b/ios/chrome/browser/ui/webui/signin_internals_ui_ios.h
@@ -0,0 +1,35 @@
+// Copyright 2014 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 IOS_CHROME_BROWSER_UI_WEBUI_SIGNIN_INTERNALS_UI_IOS_H_
+#define IOS_CHROME_BROWSER_UI_WEBUI_SIGNIN_INTERNALS_UI_IOS_H_
+
+#include "base/macros.h"
+#include "base/values.h"
+#include "components/signin/core/browser/about_signin_internals.h"
+#include "ios/web/public/webui/web_ui_ios_controller.h"
+
+// The implementation for the chrome://signin-internals page.
+class SignInInternalsUIIOS : public web::WebUIIOSController,
+ public AboutSigninInternals::Observer {
+ public:
+ explicit SignInInternalsUIIOS(web::WebUIIOS* web_ui);
+ ~SignInInternalsUIIOS() override;
+
+ // web::WebUIIOSController implementation.
+ bool OverrideHandleWebUIIOSMessage(const GURL& source_url,
+ const std::string& name,
+ const base::ListValue& args) override;
+
+ // AboutSigninInternals::Observer::OnSigninStateChanged implementation.
+ void OnSigninStateChanged(const base::DictionaryValue* info) override;
+
+ // Notification that the cookie accounts are ready to be displayed.
+ void OnCookieAccountsFetched(const base::DictionaryValue* info) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(SignInInternalsUIIOS);
+};
+
+#endif // IOS_CHROME_BROWSER_UI_WEBUI_SIGNIN_INTERNALS_UI_IOS_H_
« no previous file with comments | « ios/chrome/browser/ui/webui/omaha_ui.cc ('k') | ios/chrome/browser/ui/webui/signin_internals_ui_ios.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698