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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_misc.h

Issue 23549016: [Files.app] Fetch and use CWS OAuth token instead of Drive token in Suggest app dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test failure. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_manager/private_api_misc.h
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.h b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.h
index 669768749ad5d3e51d1f8370aa778ca75308a3e5..88cc2df651ab50905881f93d6ab413403ee4ce40 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.h
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.h
@@ -10,6 +10,11 @@
#include "chrome/browser/chromeos/extensions/file_manager/private_api_base.h"
#include "chrome/browser/chromeos/file_manager/zip_file_creator.h"
+#include "chrome/browser/google_apis/gdata_errorcode.h"
+
+namespace google_apis {
+class AuthServiceInterface;
+}
namespace extensions {
@@ -116,6 +121,26 @@ class FileBrowserPrivateInstallWebstoreItemFunction
std::string webstore_item_id_;
};
+class FileBrowserPrivateRequestWebStoreAccessTokenFunction
+ : public LoggedAsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.requestWebStoreAccessToken",
+ FILEBROWSERPRIVATE_REQUESTWEBSTOREACCESSTOKEN);
+
+ FileBrowserPrivateRequestWebStoreAccessTokenFunction();
+
+ protected:
+ virtual ~FileBrowserPrivateRequestWebStoreAccessTokenFunction();
+ virtual bool RunImpl() OVERRIDE;
+
+ private:
+ scoped_ptr<google_apis::AuthServiceInterface> auth_service_;
+
+ void OnAccessTokenFetched(google_apis::GDataErrorCode code,
+ const std::string& access_token);
+
+};
+
} // namespace extensions
#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698