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

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

Issue 14888003: [Sync] Log age of auth tokens on authentication failure (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/signin/about_signin_internals.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ABOUT_SIGNIN_INTERNALS_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_ABOUT_SIGNIN_INTERNALS_H_
6 #define CHROME_BROWSER_SIGNIN_ABOUT_SIGNIN_INTERNALS_H_ 6 #define CHROME_BROWSER_SIGNIN_ABOUT_SIGNIN_INTERNALS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // }, 75 // },
76 // { "title": "Detailed Information", 76 // { "title": "Detailed Information",
77 // "data": [List of {"label" : "foo-field", "value" : "foo"} elems] 77 // "data": [List of {"label" : "foo-field", "value" : "foo"} elems]
78 // }], 78 // }],
79 // "token_info" : 79 // "token_info" :
80 // [ List of {"name": "foo-name", "token" : "foo-token", 80 // [ List of {"name": "foo-name", "token" : "foo-token",
81 // "status": "foo_stat", "time" : "foo_time"} elems] 81 // "status": "foo_stat", "time" : "foo_time"} elems]
82 // } 82 // }
83 scoped_ptr<DictionaryValue> GetSigninStatus(); 83 scoped_ptr<DictionaryValue> GetSigninStatus();
84 84
85 // Returns the time of the last fetch/refresh for the token specified by
86 // |token_name|. See signin_internals_util::kTokenPrefsArray for valid token
87 // names. If |token_name| is invalid, returns base::Time().
88 base::Time GetTokenTime(const std::string& token_name) const;
89
85 private: 90 private:
86 void NotifyObservers(); 91 void NotifyObservers();
87 92
88 // Weak pointer to parent profile. 93 // Weak pointer to parent profile.
89 Profile* profile_; 94 Profile* profile_;
90 95
91 // Encapsulates the actual signin and token related values. 96 // Encapsulates the actual signin and token related values.
92 // Most of the values are mirrored in the prefs for persistance. 97 // Most of the values are mirrored in the prefs for persistance.
93 signin_internals_util::SigninStatus signin_status_; 98 signin_internals_util::SigninStatus signin_status_;
94 99
95 ObserverList<Observer> signin_observers_; 100 ObserverList<Observer> signin_observers_;
96 101
97 DISALLOW_COPY_AND_ASSIGN(AboutSigninInternals); 102 DISALLOW_COPY_AND_ASSIGN(AboutSigninInternals);
98 }; 103 };
99 104
100 #endif // CHROME_BROWSER_SIGNIN_ABOUT_SIGNIN_INTERNALS_H_ 105 #endif // CHROME_BROWSER_SIGNIN_ABOUT_SIGNIN_INTERNALS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/signin/about_signin_internals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698