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..255fefb92adc92b83cc7a02e1d026139f5017adc 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, |
@@ -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 |