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

Unified Diff: google_apis/drive/drive_api_parser.h

Issue 125553004: Parse createUrl field of apps.list Drive API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « chrome/test/data/drive/applist.json ('k') | google_apis/drive/drive_api_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/drive_api_parser.h
diff --git a/google_apis/drive/drive_api_parser.h b/google_apis/drive/drive_api_parser.h
index ef02035d59583bba7798762b0b8e0122056c6c28..ef02623e02cf309f8a1b07e6cf1b1f9b96675703 100644
--- a/google_apis/drive/drive_api_parser.h
+++ b/google_apis/drive/drive_api_parser.h
@@ -184,6 +184,9 @@ class AppResource {
// Returns the product URL, e.g. at Chrome Web Store.
const GURL& product_url() const { return product_url_; }
+ // Returns the create URL, i.e., the URL for opening a new file by the app.
+ const GURL& create_url() const { return create_url_; }
+
// List of primary mime types supported by this WebApp. Primary status should
// trigger this WebApp becoming the default handler of file instances that
// have these mime types.
@@ -256,6 +259,9 @@ class AppResource {
void set_icons(ScopedVector<DriveAppIcon> icons) {
icons_ = icons.Pass();
}
+ void set_create_url(const GURL& url) {
+ create_url_ = url;
+ }
private:
friend class base::internal::RepeatedMessageConverter<AppResource>;
@@ -273,6 +279,7 @@ class AppResource {
bool installed_;
bool authorized_;
GURL product_url_;
+ GURL create_url_;
ScopedVector<std::string> primary_mimetypes_;
ScopedVector<std::string> secondary_mimetypes_;
ScopedVector<std::string> primary_file_extensions_;
« no previous file with comments | « chrome/test/data/drive/applist.json ('k') | google_apis/drive/drive_api_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698