Chromium Code Reviews| Index: public/platform/WebManifestRequest.h |
| diff --git a/public/platform/WebManifestRequest.h b/public/platform/WebManifestRequest.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..97f11a89081944d5c363cb44c058e16ecbaabc79 |
| --- /dev/null |
| +++ b/public/platform/WebManifestRequest.h |
| @@ -0,0 +1,29 @@ |
| +// 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 WebManifestRequest_h |
| +#define WebManifestRequest_h |
| + |
| +namespace blink { |
| + |
| +struct WebManifest; |
| + |
| +// The WebManifestRequest interface is used when request a WebManifest from a |
| +// WebFrame. On failure, requestFailed() will be called with a FailureReason. |
| +// On success, requestSucceeded() will be called with the parsed WebManifest |
| +// object passed as an argument. |
| +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
|
| +public: |
| + enum FailureReason { |
| + NoLinkManifest, |
| + NetworkError, |
| + }; |
| + |
| + virtual void requestSucceeded(const WebManifest&) = 0; |
| + virtual void requestFailed(FailureReason) = 0; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebManifestRequest_h |