Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 ASH_COMMON_SYSTEM_NETWORKING_CONFIG_DELEGATE_H_ | 5 #ifndef ASH_COMMON_SYSTEM_NETWORKING_CONFIG_DELEGATE_H_ |
| 6 #define ASH_COMMON_SYSTEM_NETWORKING_CONFIG_DELEGATE_H_ | 6 #define ASH_COMMON_SYSTEM_NETWORKING_CONFIG_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 struct ASH_EXPORT ExtensionInfo { | 24 struct ASH_EXPORT ExtensionInfo { |
| 25 ExtensionInfo(const std::string& id, const std::string& name); | 25 ExtensionInfo(const std::string& id, const std::string& name); |
| 26 ~ExtensionInfo(); | 26 ~ExtensionInfo(); |
| 27 std::string extension_id; | 27 std::string extension_id; |
| 28 std::string extension_name; | 28 std::string extension_name; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 virtual ~NetworkingConfigDelegate() {} | 31 virtual ~NetworkingConfigDelegate() {} |
| 32 | 32 |
| 33 // Returns information about the extension registered to control configuration | 33 // Returns information about the extension registered to control configuration |
| 34 // of the network |service_path|. If no extension is registered, the | 34 // of the network |service_path|. If no extension is registered, the |
|
msw
2016/09/28 22:19:53
very optional nit: "Returns null if no extension i
James Cook
2016/09/29 16:45:39
Done.
| |
| 35 // scoped_ptr is empty. | 35 // unique_ptr is null. |
| 36 virtual std::unique_ptr<const ExtensionInfo> LookUpExtensionForNetwork( | 36 virtual std::unique_ptr<const ExtensionInfo> LookUpExtensionForNetwork( |
| 37 const std::string& service_path) = 0; | 37 const std::string& service_path) = 0; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 DISALLOW_ASSIGN(NetworkingConfigDelegate); | 40 DISALLOW_ASSIGN(NetworkingConfigDelegate); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 } // namespace ash | 43 } // namespace ash |
| 44 | 44 |
| 45 #endif // ASH_COMMON_SYSTEM_NETWORKING_CONFIG_DELEGATE_H_ | 45 #endif // ASH_COMMON_SYSTEM_NETWORKING_CONFIG_DELEGATE_H_ |
| OLD | NEW |