X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fgoogle_apis%2Fdrive%2Fdrive_api_parser.h;h=478c9b77c403a309dce92a4e2778d7f144bc0761;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=f43325dfb2e487582f6e2caad143b7aea7d17851;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/google_apis/drive/drive_api_parser.h b/src/google_apis/drive/drive_api_parser.h index f43325d..478c9b7 100644 --- a/src/google_apis/drive/drive_api_parser.h +++ b/src/google_apis/drive/drive_api_parser.h @@ -168,6 +168,9 @@ class AppResource { // If empty, application name is used instead. const std::string& object_type() const { return object_type_; } + // Returns the product ID. + const std::string& product_id() const { return product_id_; } + // Returns whether this application supports creating new objects. bool supports_create() const { return supports_create_; } @@ -181,8 +184,8 @@ class AppResource { // user's Drive. bool is_authorized() const { return authorized_; } - // Returns the product URL, e.g. at Chrome Web Store. - const GURL& product_url() const { return product_url_; } + // Returns whether this application is removable by apps.delete API. + bool is_removable() const { return removable_; } // Returns the create URL, i.e., the URL for opening a new file by the app. const GURL& create_url() const { return create_url_; } @@ -229,6 +232,7 @@ class AppResource { void set_object_type(const std::string& object_type) { object_type_ = object_type; } + void set_product_id(const std::string& id) { product_id_ = id; } void set_supports_create(bool supports_create) { supports_create_ = supports_create; } @@ -237,9 +241,7 @@ class AppResource { } void set_installed(bool installed) { installed_ = installed; } void set_authorized(bool authorized) { authorized_ = authorized; } - void set_product_url(const GURL& product_url) { - product_url_ = product_url; - } + void set_removable(bool removable) { removable_ = removable; } void set_primary_mimetypes( ScopedVector primary_mimetypes) { primary_mimetypes_ = primary_mimetypes.Pass(); @@ -274,11 +276,12 @@ class AppResource { std::string application_id_; std::string name_; std::string object_type_; + std::string product_id_; bool supports_create_; bool supports_import_; bool installed_; bool authorized_; - GURL product_url_; + bool removable_; GURL create_url_; ScopedVector primary_mimetypes_; ScopedVector secondary_mimetypes_;