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

Unified Diff: public/platform/WebManifestRequest.h

Issue 295063002: [NotLanded] Implement the fetching algorithm of the Web Manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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: public/platform/WebManifestRequest.h
diff --git a/public/platform/WebManifestRequest.h b/public/platform/WebManifestRequest.h
new file mode 100644
index 0000000000000000000000000000000000000000..97f11a89081944d5c363cb44c058e16ecbaabc79
--- /dev/null
+++ b/public/platform/WebManifestRequest.h
@@ -0,0 +1,29 @@
+// 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 WebManifestRequest_h
+#define WebManifestRequest_h
+
+namespace blink {
+
+struct WebManifest;
+
+// The WebManifestRequest interface is used when request a WebManifest from a
+// WebFrame. On failure, requestFailed() will be called with a FailureReason.
+// On success, requestSucceeded() will be called with the parsed WebManifest
+// object passed as an argument.
+class WebManifestRequest {
+public:
+ enum FailureReason {
+ NoLinkManifest,
+ NetworkError,
+ };
+
+ virtual void requestSucceeded(const WebManifest&) = 0;
+ virtual void requestFailed(FailureReason) = 0;
+};
+
+} // namespace blink
+
+#endif // WebManifestRequest_h

Powered by Google App Engine
This is Rietveld 408576698