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

Unified Diff: Source/core/html/LinkManifest.h

Issue 249633002: Detect <link rel='manifest'> and notify embedder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: error 500 Created 6 years, 8 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: Source/core/html/LinkManifest.h
diff --git a/Source/core/html/LinkManifest.h b/Source/core/html/LinkManifest.h
new file mode 100644
index 0000000000000000000000000000000000000000..6b7ac5fccd5e86a0231e04e48d094ecc80441b08
--- /dev/null
+++ b/Source/core/html/LinkManifest.h
@@ -0,0 +1,37 @@
+// 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 LinkManifest_h
+#define LinkManifest_h
+
+#include "core/html/LinkResource.h"
+#include "wtf/FastAllocBase.h"
+#include "wtf/PassOwnPtr.h"
+#include "wtf/RefPtr.h"
+
+namespace WebCore {
+
+class HTMLLinkElement;
+
+class LinkManifest FINAL : public LinkResource {
+ WTF_MAKE_FAST_ALLOCATED;
+public:
+
+ static PassOwnPtr<LinkManifest> create(HTMLLinkElement* owner);
+
+ virtual ~LinkManifest();
+
+ // LinkResource
+ virtual void process() OVERRIDE;
+ virtual Type type() const OVERRIDE { return Manifest; }
+ virtual bool hasLoaded() const OVERRIDE;
+ virtual void ownerRemoved() OVERRIDE;
+
+private:
+ explicit LinkManifest(HTMLLinkElement* owner);
+};
+
+}
+
+#endif // LinkManifest_h

Powered by Google App Engine
This is Rietveld 408576698