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

Side by Side 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: rebase Created 6 years, 4 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 WebManifestRequest_h
6 #define WebManifestRequest_h
7
8 namespace blink {
9
10 struct WebManifest;
11
12 // The WebManifestRequest interface is used when request a WebManifest from a
13 // WebFrame. On failure, requestFailed() will be called with a FailureReason.
14 // On success, requestSucceeded() will be called with the parsed WebManifest
15 // object passed as an argument.
16 class WebManifestRequest {
17 public:
18 enum FailureReason {
19 NoLinkManifest,
20 NetworkError,
21 };
22
23 virtual void requestSucceeded(const WebManifest&) = 0;
24 virtual void requestFailed(FailureReason) = 0;
25 };
26
27 } // namespace blink
28
29 #endif // WebManifestRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698