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/ref_counted.h" 12 #include "base/memory/scoped_ptr.h" 13 #include "components/policy/core/browser/browser_policy_connector.h" 14 #include "components/policy/policy_export.h" 15 16 namespace base { 17 class SequencedTaskRunner; 18 } 19 20 namespace policy { 21 22 // Extends BrowserPolicyConnector with the setup for iOS builds. 23 class POLICY_EXPORT BrowserPolicyConnectorIOS : public BrowserPolicyConnector { 24 public: 25 BrowserPolicyConnectorIOS( 26 const HandlerListFactory& handler_list_factory, 27 const std::string& user_agent, 28 scoped_refptr<base::SequencedTaskRunner> background_task_runner); 29 30 virtual ~BrowserPolicyConnectorIOS(); 31 32 virtual void Init( 33 PrefService* local_state, 34 scoped_refptr<net::URLRequestContextGetter> request_context) OVERRIDE; 35 36 private: 37 std::string user_agent_; 38 39 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorIOS); 40 }; 41 42 } // namespace policy 43 44 #endif // COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_IOS_H_ 45