1 // Copyright (c) 2014 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_NAVIGATION_HANDLER_H_
5 #define XWALK_APPLICATION_COMMON_MANIFEST_HANDLERS_NAVIGATION_HANDLER_H_
10 #include "base/strings/string_split.h"
11 #include "xwalk/application/common/application_data.h"
12 #include "xwalk/application/common/manifest_handler.h"
15 namespace application {
17 class NavigationInfo : public ApplicationData::ManifestData {
19 explicit NavigationInfo(const std::string& allowed_domains);
20 virtual ~NavigationInfo();
22 const std::vector<std::string>& GetAllowedDomains() const {
23 return allowed_domains_; }
26 std::vector<std::string> allowed_domains_;
29 class NavigationHandler : public ManifestHandler {
32 virtual ~NavigationHandler();
34 virtual bool Parse(scoped_refptr<ApplicationData> application_data,
35 base::string16* error) OVERRIDE;
36 virtual std::vector<std::string> Keys() const OVERRIDE;
39 DISALLOW_COPY_AND_ASSIGN(NavigationHandler);
42 } // namespace application
45 #endif // XWALK_APPLICATION_COMMON_MANIFEST_HANDLERS_NAVIGATION_HANDLER_H_