Chromium Code Reviews| 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..3a38eb61e38407862470796ecfa1c487794b5299 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; |
|
satorux1
2012/08/10 17:26:02
if it's const, can you make it const AccountMetada
kochi
2012/08/13 09:12:24
Done.
|
| + |
| + // Updates the list of drive-enabled WebApps with freshly fetched account |
| + // metadata feed. |
| + virtual void UpdateFromApplicationList(const AppList* applist) = 0; |
|
satorux1
2012/08/10 17:26:02
ditto.
kochi
2012/08/13 09:12:24
Done.
|
| }; |
| // 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 |