OLD | NEW |
---|---|
(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 { | |
Nate Chapin
2014/06/03 18:32:42
I think part of my confusion about this patch is t
mlamouri (slow - plz ping)
2014/06/03 20:53:10
I will ping eseidel. My design sounds simpler but
| |
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 | |
OLD | NEW |