Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / components / policy / core / browser / browser_policy_connector_ios.h
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 COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_IOS_H_
6 #define COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_IOS_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "components/policy/core/browser/browser_policy_connector.h"
13 #include "components/policy/policy_export.h"
14
15 namespace policy {
16
17 // Extends BrowserPolicyConnector with the setup for iOS builds.
18 class POLICY_EXPORT BrowserPolicyConnectorIOS : public BrowserPolicyConnector {
19  public:
20   BrowserPolicyConnectorIOS(const HandlerListFactory& handler_list_factory,
21                             const std::string& user_agent);
22
23   virtual ~BrowserPolicyConnectorIOS();
24
25   virtual void Init(
26       PrefService* local_state,
27       scoped_refptr<net::URLRequestContextGetter> request_context) OVERRIDE;
28
29  private:
30   std::string user_agent_;
31
32   DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorIOS);
33 };
34
35 }  // namespace policy
36
37 #endif  // COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_IOS_H_