Upstream version 6.35.131.0
[platform/framework/web/crosswalk.git] / src / xwalk / application / common / security_policy.h
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
5 #ifndef XWALK_APPLICATION_COMMON_SECURITY_POLICY_H_
6 #define XWALK_APPLICATION_COMMON_SECURITY_POLICY_H_
7 #include "url/gurl.h"
8
9 namespace xwalk {
10 namespace application {
11
12 class SecurityPolicy {
13  public:
14   enum SecurityMode {
15     NoSecurity,
16     CSP,
17     WARP
18   };
19   SecurityPolicy(const GURL& url, bool subdomains);
20   const GURL& url() const { return url_; }
21   bool subdomains() const { return subdomains_; }
22
23  private:
24   GURL url_;
25   bool subdomains_;
26 };
27
28 }  // namespace application
29 }  // namespace xwalk
30
31 #endif  // XWALK_APPLICATION_COMMON_SECURITY_POLICY_H_