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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ManifestLoader_h
6 #define ManifestLoader_h
7
8 #include "core/fetch/ResourceClient.h"
9 #include "core/fetch/ResourceOwner.h"
10
11 namespace blink {
12 class WebManifestRequest;
13 }
14
15 namespace WebCore {
16
17 class Document;
18
19 // The ManifestLoader is a class that fetches and parses a WebManifest and
20 // informs the passed WebManifestRequest upon completion (success or failure).
21 // The lifetime of the object is managed by itself. When ::LoadManifest() is
22 // called an instance of the object is created and as soon as the processing
23 // is finished, the object will destroy itself.
24 // The call should make sure that the WebManifestRequest passed to
25 // ::LoadManifest() is not destroyed before getting a result.
26 class ManifestLoader FINAL : public ResourceOwner<Resource, ResourceClient> {
27 public:
28 static void LoadManifest(blink::WebManifestRequest*, Document*);
dcheng 2014/05/20 22:40:51 Naming. This should be loadManifest.
mlamouri (slow - plz ping) 2014/05/21 09:51:12 Done.
29
30 // ResourceClient
31 virtual void notifyFinished(Resource*) OVERRIDE;
32
33 protected:
34 explicit ManifestLoader(blink::WebManifestRequest*);
35 virtual ~ManifestLoader();
36
37 void startLoading(Document*);
38
39 private:
40 blink::WebManifestRequest* m_request;
41 };
42
43 } // namespace WebCore
44
45 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698