aw_browser_policy_connector.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2015 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. #ifndef ANDROID_WEBVIEW_BROWSER_AW_BROWSER_POLICY_CONNECTOR_H_
  5. #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_POLICY_CONNECTOR_H_
  6. #include "components/policy/core/browser/browser_policy_connector_base.h"
  7. namespace android_webview {
  8. // Sets up and keeps the browser-global policy objects such as the PolicyService
  9. // and the platform-specific PolicyProvider.
  10. class AwBrowserPolicyConnector : public policy::BrowserPolicyConnectorBase {
  11. public:
  12. AwBrowserPolicyConnector();
  13. AwBrowserPolicyConnector(const AwBrowserPolicyConnector&) = delete;
  14. AwBrowserPolicyConnector& operator=(const AwBrowserPolicyConnector&) = delete;
  15. ~AwBrowserPolicyConnector() override;
  16. protected:
  17. // policy::BrowserPolicyConnectorBase:
  18. std::vector<std::unique_ptr<policy::ConfigurationPolicyProvider>>
  19. CreatePolicyProviders() override;
  20. };
  21. } // namespace android_webview
  22. #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_POLICY_CONNECTOR_H_