1 // Copyright (c) 2013 Intel Corporation. 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 #ifndef XWALK_APPLICATION_COMMON_MANIFEST_HANDLERS_WARP_HANDLER_H_
5 #define XWALK_APPLICATION_COMMON_MANIFEST_HANDLERS_WARP_HANDLER_H_
11 #include "xwalk/application/common/application_data.h"
12 #include "xwalk/application/common/manifest_handler.h"
15 namespace application {
17 class WARPInfo : public ApplicationData::ManifestData {
22 void SetWARP(const base::ListValue* warp) {
25 const base::ListValue* GetWARP() const { return warp_.get(); }
28 scoped_ptr<const base::ListValue> warp_;
31 class WARPHandler : public ManifestHandler {
34 virtual ~WARPHandler();
36 virtual bool Parse(scoped_refptr<ApplicationData> application,
37 base::string16* error) OVERRIDE;
38 virtual std::vector<std::string> Keys() const OVERRIDE;
41 DISALLOW_COPY_AND_ASSIGN(WARPHandler);
44 } // namespace application
47 #endif // XWALK_APPLICATION_COMMON_MANIFEST_HANDLERS_WARP_HANDLER_H_