Index: content/public/common/manifest.h |
diff --git a/content/public/common/manifest.h b/content/public/common/manifest.h |
index d558d66978673f9ce20c4b0284a57818adda63ff..5b6ff8bc41a4a89ac6708af882a5954d16f903cb 100644 |
--- a/content/public/common/manifest.h |
+++ b/content/public/common/manifest.h |
@@ -58,6 +58,18 @@ struct CONTENT_EXPORT Manifest { |
std::vector<IconPurpose> purpose; |
}; |
+ // Structure representing how a Share Target handles an incoming share. |
Matt Giuca
2017/01/18 07:51:32
nit: "Web Share target" (lowercase 't') to ensure
constantina
2017/01/18 23:28:10
Done.
|
+ struct CONTENT_EXPORT ShareTarget { |
+ ShareTarget(); |
+ ~ShareTarget(); |
+ |
+ bool is_null() const; |
+ |
+ // The url template that contains placeholders to be replaced with shared |
Matt Giuca
2017/01/18 07:51:32
nit: URL.
constantina
2017/01/18 23:28:09
Done.
|
+ // data. Null if the parsing failed. |
+ base::NullableString16 url_template; |
+ }; |
+ |
// Structure representing a related application. |
struct CONTENT_EXPORT RelatedApplication { |
RelatedApplication(); |
@@ -107,6 +119,9 @@ struct CONTENT_EXPORT Manifest { |
// icons inside the JSON array were invalid. |
std::vector<Icon> icons; |
+ // Null if parsing failed or the field was not present. |
+ ShareTarget share_target; |
+ |
// Empty if the parsing failed, the field was not present, empty or all the |
// applications inside the array were invalid. The order of the array |
// indicates the priority of the application to use. |