| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_SERVICE_CONFIGURATION_H_ | 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_SERVICE_CONFIGURATION_H_ |
| 6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_SERVICE_CONFIGURATION_H_ | 6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_SERVICE_CONFIGURATION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "components/policy/core/common/cloud/device_management_service.h" | 12 #include "components/policy/core/common/cloud/device_management_service.h" |
| 13 | 13 |
| 14 namespace policy { | 14 namespace policy { |
| 15 | 15 |
| 16 // The real implementation of the device management service configuration that | 16 // The real implementation of the device management service configuration that |
| 17 // is used to create device management service instances. | 17 // is used to create device management service instances. |
| 18 class DeviceManagementServiceConfiguration | 18 class DeviceManagementServiceConfiguration |
| 19 : public DeviceManagementService::Configuration { | 19 : public DeviceManagementService::Configuration { |
| 20 public: | 20 public: |
| 21 explicit DeviceManagementServiceConfiguration(const std::string& server_url); | 21 explicit DeviceManagementServiceConfiguration(const std::string& server_url); |
| 22 virtual ~DeviceManagementServiceConfiguration(); | 22 virtual ~DeviceManagementServiceConfiguration(); |
| 23 | 23 |
| 24 virtual std::string GetServerUrl() OVERRIDE; | 24 virtual std::string GetServerUrl() override; |
| 25 virtual std::string GetAgentParameter() OVERRIDE; | 25 virtual std::string GetAgentParameter() override; |
| 26 virtual std::string GetPlatformParameter() OVERRIDE; | 26 virtual std::string GetPlatformParameter() override; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 const std::string server_url_; | 29 const std::string server_url_; |
| 30 | 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(DeviceManagementServiceConfiguration); | 31 DISALLOW_COPY_AND_ASSIGN(DeviceManagementServiceConfiguration); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace policy | 34 } // namespace policy |
| 35 | 35 |
| 36 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_SERVICE_CONFIGURATION_H_ | 36 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_SERVICE_CONFIGURATION_H_ |
| OLD | NEW |