| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_UI_ASH_NETWORKING_CONFIG_DELEGATE_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_NETWORKING_CONFIG_DELEGATE_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_NETWORKING_CONFIG_DELEGATE_CHROMEOS_H_ | 6 #define CHROME_BROWSER_UI_ASH_NETWORKING_CONFIG_DELEGATE_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/networking_config_delegate.h" | 10 #include "ash/networking_config_delegate.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "content/public/browser/browser_context.h" | 13 #include "content/public/browser/browser_context.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 // A class which allows the ash tray to retrieve extension provided networking | 17 // A class which allows the ash tray to retrieve extension provided networking |
| 18 // configuration through the networking config service. | 18 // configuration through the networking config service. |
| 19 class NetworkingConfigDelegateChromeos : public ash::NetworkingConfigDelegate { | 19 class NetworkingConfigDelegateChromeos : public ash::NetworkingConfigDelegate { |
| 20 public: | 20 public: |
| 21 NetworkingConfigDelegateChromeos(); | 21 NetworkingConfigDelegateChromeos(); |
| 22 ~NetworkingConfigDelegateChromeos() override; | 22 ~NetworkingConfigDelegateChromeos() override; |
| 23 | 23 |
| 24 scoped_ptr<const ExtensionInfo> LookUpExtensionForNetwork( | 24 std::unique_ptr<const ExtensionInfo> LookUpExtensionForNetwork( |
| 25 const std::string& service_path) override; | 25 const std::string& service_path) override; |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 std::string LookUpExtensionName(content::BrowserContext* context, | 28 std::string LookUpExtensionName(content::BrowserContext* context, |
| 29 std::string extension_id) const; | 29 std::string extension_id) const; |
| 30 | 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(NetworkingConfigDelegateChromeos); | 31 DISALLOW_COPY_AND_ASSIGN(NetworkingConfigDelegateChromeos); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace chromeos | 34 } // namespace chromeos |
| 35 | 35 |
| 36 #endif // CHROME_BROWSER_UI_ASH_NETWORKING_CONFIG_DELEGATE_CHROMEOS_H_ | 36 #endif // CHROME_BROWSER_UI_ASH_NETWORKING_CONFIG_DELEGATE_CHROMEOS_H_ |
| OLD | NEW |