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

Unified Diff: content/public/common/manifest.h

Issue 550173002: Implement ManifestParser in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manifest_fetcher
Patch Set: Created 6 years, 3 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: content/public/common/manifest.h
diff --git a/content/public/common/manifest.h b/content/public/common/manifest.h
new file mode 100644
index 0000000000000000000000000000000000000000..04b7f048e8782cb5fee9d88daff80bd78ef28afe
--- /dev/null
+++ b/content/public/common/manifest.h
@@ -0,0 +1,28 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_COMMON_MANIFEST_H_
+#define CONTENT_PUBLIC_COMMON_MANIFEST_H_
+
+#include "base/strings/nullable_string16.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+// The Manifest structure is an internal representation of the Manifest file
+// described in the "Manifest for Web Application" document:
+// http://w3c.github.io/manifest/
+struct CONTENT_EXPORT Manifest {
Michael van Ouwerkerk 2014/09/08 17:07:42 This struct just represents a pair of strings, the
mlamouri (slow - plz ping) 2014/09/08 17:13:16 It's only a pair of strings for the moment. It is
Michael van Ouwerkerk 2014/09/08 17:36:27 If it's going to be more complex, that might be a
mlamouri (slow - plz ping) 2014/09/08 17:39:48 It will never be complete. The manifest spec (see
Michael van Ouwerkerk 2014/09/09 12:41:53 For the record, I'm not opposed to adding types to
mlamouri (slow - plz ping) 2014/09/09 12:45:47 What would be a reasonable alternative?
Michael van Ouwerkerk 2014/09/09 13:11:58 Reasonable is subjective. Like I said, your curren
+ bool IsEmpty() const;
+
+ // Null if the parsing failed or the field was not present.
+ base::NullableString16 name;
Michael van Ouwerkerk 2014/09/09 12:41:53 From nullable_string16.h: "This should be used onl
mlamouri (slow - plz ping) 2014/09/09 12:45:47 There actually is a difference. I want to be able
Michael van Ouwerkerk 2014/09/09 13:11:58 Perhaps a note for IsEmpty then, indicating that i
mlamouri (slow - plz ping) 2014/09/09 13:23:15 Done.
+
+ // Null if the parsing failed or the field was not present.
+ base::NullableString16 short_name;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_MANIFEST_H_

Powered by Google App Engine
This is Rietveld 408576698