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

Unified Diff: chrome/browser/chromeos/gdata/gdata_documents_service.h

Issue 10808108: gdata: Expose authentication states from GDataDocumentsService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_documents_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_documents_service.h
diff --git a/chrome/browser/chromeos/gdata/gdata_documents_service.h b/chrome/browser/chromeos/gdata/gdata_documents_service.h
index 81ca2626c496497774b5d53f61985eed587ee69d..d626cbf623dc0a191f947f0e129637febfff13f5 100644
--- a/chrome/browser/chromeos/gdata/gdata_documents_service.h
+++ b/chrome/browser/chromeos/gdata/gdata_documents_service.h
@@ -184,6 +184,12 @@ class DocumentsServiceInterface {
virtual void AuthorizeApp(const GURL& resource_url,
const std::string& app_id,
const GetDataCallback& callback) = 0;
+
+ // True if OAuth2 auth token is retrieved and believed to be fresh.
+ virtual bool IsFullyAuthenticated() const = 0;
+
+ // True if OAuth2 refresh token is present.
+ virtual bool IsPartiallyAuthenticated() const = 0;
Daniel Erat 2012/07/24 20:31:08 nit since you're just using the existing names in
satorux1 2012/07/24 20:52:01 That's a good suggestion. I'll create a patch to r
};
// This class provides documents feed service calls.
@@ -248,6 +254,9 @@ class DocumentsService : public DocumentsServiceInterface {
virtual void AuthorizeApp(const GURL& resource_url,
const std::string& app_id,
const GetDataCallback& callback) OVERRIDE;
+ virtual bool IsFullyAuthenticated() const OVERRIDE;
+ virtual bool IsPartiallyAuthenticated() const OVERRIDE;
+
private:
Profile* profile_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_documents_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698