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

Unified Diff: Source/core/loader/ManifestLoader.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: review comments 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
« no previous file with comments | « Source/core/loader/FrameLoaderClient.h ('k') | Source/core/loader/ManifestLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/ManifestLoader.h
diff --git a/Source/core/loader/ManifestLoader.h b/Source/core/loader/ManifestLoader.h
new file mode 100644
index 0000000000000000000000000000000000000000..8f951d8aabeb4e211a7ec845565b1be4b4d89883
--- /dev/null
+++ b/Source/core/loader/ManifestLoader.h
@@ -0,0 +1,42 @@
+// 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 ManifestLoader_h
+#define ManifestLoader_h
+
+#include "core/fetch/ResourceClient.h"
+#include "core/fetch/ResourceOwner.h"
+#include "core/frame/LocalFrame.h"
+
+namespace blink {
+
+class Document;
+
+// The ManifestLoader is a class that fetches and parses a WebManifest and
+// informs the FrameLoaderClient upon completion (success or failure).
+// The lifetime of the object is managed by itself. When ::LoadManifest() is
+// called, an instance of the object is created and as soon as the processing
+// is finished, the object will destroy itself.
+class ManifestLoader FINAL : public ResourceOwner<Resource, ResourceClient> {
+public:
+ static void loadManifest(PassRefPtr<LocalFrame>);
+
+ // This is public so we can use OwnPtr<>(this) in various methods.
+ virtual ~ManifestLoader();
+
+protected:
+ // ResourceClient
+ virtual void notifyFinished(Resource*) OVERRIDE;
+
+ explicit ManifestLoader(PassRefPtr<LocalFrame>);
+
+ void startLoading();
+
+private:
+ RefPtr<LocalFrame> m_frame;
+};
+
+} // namespace blink
+
+#endif
« no previous file with comments | « Source/core/loader/FrameLoaderClient.h ('k') | Source/core/loader/ManifestLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698