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

Unified Diff: chrome/browser/ui/sync/one_click_signin_sync_starter.h

Issue 9453035: Implement one click login. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Cleanup old filenames from chrome_browser.gypi Created 8 years, 10 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/sync/one_click_signin_sync_starter.h
===================================================================
--- chrome/browser/ui/sync/one_click_signin_sync_starter.h (revision 0)
+++ chrome/browser/ui/sync/one_click_signin_sync_starter.h (revision 0)
@@ -0,0 +1,41 @@
+// Copyright (c) 2012 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 CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_
+#define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_
+#pragma once
+
+#include <string>
+
+#include "chrome/browser/signin/signin_tracker.h"
+
+class Profile;
+
+// Waits for successful singin notification from the signin manager and then
+// starts the sync machine. Instances of this class delete themselves once
+// the job is done.
+class OneClickSigninSyncStarter : public SigninTracker::Observer {
+ public:
+ OneClickSigninSyncStarter(const std::string& email,
+ const std::string& password,
+ Profile* profile,
+ bool use_default_settings);
+
+ private:
+ virtual ~OneClickSigninSyncStarter();
+
+ // content::SigninTracker::Observer override.
+ virtual void GaiaCredentialsValid() OVERRIDE;
+ virtual void SigninFailed() OVERRIDE;
+ virtual void SigninSuccess() OVERRIDE;
+
+ Profile* profile_;
+ SigninTracker signin_tracker_;
+ bool use_default_settings_;
+
+ DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarter);
+};
+
+
+#endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_
Property changes on: chrome\browser\ui\sync\one_click_signin_sync_starter.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/ui/sync/one_click_signin_helper.cc ('k') | chrome/browser/ui/sync/one_click_signin_sync_starter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698