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

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: Fix unittest compile. 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..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

Powered by Google App Engine
This is Rietveld 408576698