X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fdrive%2Fdrive_app_registry.h;h=c86de9271c9e110bcae9cca5a6b164cf267188bc;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=26bf3c19d346bbc57a54a1ba078c30b153e55e23;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/drive/drive_app_registry.h b/src/chrome/browser/drive/drive_app_registry.h index 26bf3c1..c86de92 100644 --- a/src/chrome/browser/drive/drive_app_registry.h +++ b/src/chrome/browser/drive/drive_app_registry.h @@ -31,14 +31,21 @@ class DriveServiceInterface; struct DriveAppInfo { DriveAppInfo(); DriveAppInfo(const std::string& app_id, + const std::string& product_id, const google_apis::InstalledApp::IconList& app_icons, const google_apis::InstalledApp::IconList& document_icons, const std::string& app_name, - const GURL& create_url); + const GURL& create_url, + bool is_removable); ~DriveAppInfo(); // Drive app id. std::string app_id; + // Drive app's product id. This is different from app id that is used inside + // Drive. Product id is an id for the app in webstore; hence, it can be used + // for identifying the same app install as Chrome extension and as Drive app + // at the same time. + std::string product_id; // Drive application icon URLs for this app, paired with their size (length of // a side in pixels). google_apis::InstalledApp::IconList app_icons; @@ -50,6 +57,9 @@ struct DriveAppInfo { // URL for opening a new file in the app. Empty if the app does not support // new file creation. GURL create_url; + // Returns if UninstallApp() is allowed for the app. Built-in apps have this + // field set false. + bool is_removable; }; // Callback type for UninstallApp().