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

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

Issue 10829276: Get web application list using Drive V2 API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add unittest. Created 8 years, 4 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/chromeos/gdata/drive_webapps_registry.h
diff --git a/chrome/browser/chromeos/gdata/drive_webapps_registry.h b/chrome/browser/chromeos/gdata/drive_webapps_registry.h
index 592ba755d4e52e682815ce1d676e89041a8a0233..b3960d39f9a3875b1aa7857de91122602bdf6253 100644
--- a/chrome/browser/chromeos/gdata/drive_webapps_registry.h
+++ b/chrome/browser/chromeos/gdata/drive_webapps_registry.h
@@ -16,6 +16,8 @@
namespace gdata {
+class AppList;
+
// Data structure that defines WebApp
struct DriveWebAppInfo {
DriveWebAppInfo(const std::string& app_id,
@@ -51,7 +53,7 @@ class DriveWebAppsRegistryInterface {
public:
virtual ~DriveWebAppsRegistryInterface() {}
- // Gets the list of web |apps| matching |file| and it |mime_type|.
+ // Gets the list of web |apps| matching |file| and its |mime_type|.
virtual void GetWebAppsForFile(const FilePath& file,
const std::string& mime_type,
ScopedVector<DriveWebAppInfo>* apps) = 0;
@@ -63,7 +65,11 @@ class DriveWebAppsRegistryInterface {
// Updates the list of drive-enabled WebApps with freshly fetched account
// metadata feed.
- virtual void UpdateFromFeed(AccountMetadataFeed* metadata) = 0;
+ virtual void UpdateFromFeed(const AccountMetadataFeed& metadata) = 0;
+
+ // Updates the list of drive-enabled WebApps with freshly fetched account
+ // metadata feed.
+ virtual void UpdateFromApplicationList(const AppList& applist) = 0;
};
// The production implementation of DriveWebAppsRegistryInterface.
@@ -79,7 +85,8 @@ class DriveWebAppsRegistry : public DriveWebAppsRegistryInterface {
ScopedVector<DriveWebAppInfo>* apps) OVERRIDE;
virtual std::set<std::string> GetExtensionsForWebStoreApp(
const std::string& web_store_id) OVERRIDE;
- virtual void UpdateFromFeed(AccountMetadataFeed* metadata) OVERRIDE;
+ virtual void UpdateFromFeed(const AccountMetadataFeed& metadata) OVERRIDE;
+ virtual void UpdateFromApplicationList(const AppList& applist) OVERRIDE;
private:
// Defines WebApp application details that are associated with a given

Powered by Google App Engine
This is Rietveld 408576698