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

Side by Side Diff: chrome/browser/signin/chrome_signin_client.h

Issue 502343002: Add account_id to signin manager notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@isauth
Patch Set: Fix android trybots Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_
6 #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ 6 #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "components/signin/core/browser/signin_client.h" 10 #include "components/signin/core/browser/signin_client.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual bool ShouldMergeSigninCredentialsIntoCookieJar() OVERRIDE; 53 virtual bool ShouldMergeSigninCredentialsIntoCookieJar() OVERRIDE;
54 virtual bool IsFirstRun() const OVERRIDE; 54 virtual bool IsFirstRun() const OVERRIDE;
55 virtual base::Time GetInstallDate() OVERRIDE; 55 virtual base::Time GetInstallDate() OVERRIDE;
56 56
57 // Returns a string describing the chrome version environment. Version format: 57 // Returns a string describing the chrome version environment. Version format:
58 // <Build Info> <OS> <Version number> (<Last change>)<channel or "-devel"> 58 // <Build Info> <OS> <Version number> (<Last change>)<channel or "-devel">
59 // If version information is unavailable, returns "invalid." 59 // If version information is unavailable, returns "invalid."
60 virtual std::string GetProductVersion() OVERRIDE; 60 virtual std::string GetProductVersion() OVERRIDE;
61 virtual scoped_ptr<CookieChangedCallbackList::Subscription> 61 virtual scoped_ptr<CookieChangedCallbackList::Subscription>
62 AddCookieChangedCallback(const CookieChangedCallback& callback) OVERRIDE; 62 AddCookieChangedCallback(const CookieChangedCallback& callback) OVERRIDE;
63 virtual void GoogleSigninSucceeded(const std::string& username, 63 virtual void GoogleSigninSucceeded(const std::string& account_id,
64 const std::string& username,
64 const std::string& password) OVERRIDE; 65 const std::string& password) OVERRIDE;
65 66
66 // content::NotificationObserver implementation. 67 // content::NotificationObserver implementation.
67 virtual void Observe(int type, 68 virtual void Observe(int type,
68 const content::NotificationSource& source, 69 const content::NotificationSource& source,
69 const content::NotificationDetails& details) OVERRIDE; 70 const content::NotificationDetails& details) OVERRIDE;
70 71
71 private: 72 private:
72 void RegisterForCookieChangedNotification(); 73 void RegisterForCookieChangedNotification();
73 void UnregisterForCookieChangedNotification(); 74 void UnregisterForCookieChangedNotification();
74 75
75 Profile* profile_; 76 Profile* profile_;
76 content::NotificationRegistrar registrar_; 77 content::NotificationRegistrar registrar_;
77 78
78 // The callbacks that will be called when notifications about cookie changes 79 // The callbacks that will be called when notifications about cookie changes
79 // are received. 80 // are received.
80 base::CallbackList<void(const net::CanonicalCookie* cookie)> callbacks_; 81 base::CallbackList<void(const net::CanonicalCookie* cookie)> callbacks_;
81 82
82 // See SetSigninProcess. Tracks the currently active signin process 83 // See SetSigninProcess. Tracks the currently active signin process
83 // by ID, if there is one. 84 // by ID, if there is one.
84 int signin_host_id_; 85 int signin_host_id_;
85 86
86 // The RenderProcessHosts being observed. 87 // The RenderProcessHosts being observed.
87 std::set<content::RenderProcessHost*> signin_hosts_observed_; 88 std::set<content::RenderProcessHost*> signin_hosts_observed_;
88 89
89 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient); 90 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient);
90 }; 91 };
91 92
92 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ 93 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/services/gcm/fake_signin_manager.cc ('k') | chrome/browser/signin/chrome_signin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698