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

Unified Diff: chrome/browser/ui/webui/signin/inline_login_handler.h

Issue 134733019: Add perf histogram and tests for inline signin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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
Index: chrome/browser/ui/webui/signin/inline_login_handler.h
diff --git a/chrome/browser/ui/webui/signin/inline_login_handler.h b/chrome/browser/ui/webui/signin/inline_login_handler.h
index b3650fb6a195efc8111bdad7a44e2a9ce3cc04e6..5772ddd784247c9fb7f243734aa6a985cabfbfc2 100644
--- a/chrome/browser/ui/webui/signin/inline_login_handler.h
+++ b/chrome/browser/ui/webui/signin/inline_login_handler.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_
+#include "base/time/time.h"
#include "content/public/browser/web_ui_message_handler.h"
// The base class handler for the inline login WebUI.
@@ -29,6 +30,9 @@ class InlineLoginHandler : public content::WebUIMessageHandler {
// JS callback to initialize the gaia auth extension. It calls
// |SetExtraInitParams| to set extra init params.
void HandleInitializeMessage(const base::ListValue* args);
+ // JS callback triggered when the gaia extension (and the embedded gaia
+ // webview if applicable) has completed loading.
+ void HandleLoginUIInitializedMessage(const base::ListValue* args);
// JS callback to complete login. It calls |CompleteLogin| to do the real
// work.
void HandleCompleteLoginMessage(const base::ListValue* args);
@@ -36,6 +40,8 @@ class InlineLoginHandler : public content::WebUIMessageHandler {
virtual void SetExtraInitParams(base::DictionaryValue& params) {}
virtual void CompleteLogin(const base::ListValue* args) = 0;
+ base::Time load_start_time_;
+
DISALLOW_COPY_AND_ASSIGN(InlineLoginHandler);
};

Powered by Google App Engine
This is Rietveld 408576698