| 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 EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_H_ |
| 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_H_ | 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 virtual void SetProperties(const std::string& guid, | 77 virtual void SetProperties(const std::string& guid, |
| 78 std::unique_ptr<base::DictionaryValue> properties, | 78 std::unique_ptr<base::DictionaryValue> properties, |
| 79 bool allow_set_shared_config, | 79 bool allow_set_shared_config, |
| 80 const VoidCallback& success_callback, | 80 const VoidCallback& success_callback, |
| 81 const FailureCallback& failure_callback) = 0; | 81 const FailureCallback& failure_callback) = 0; |
| 82 virtual void CreateNetwork(bool shared, | 82 virtual void CreateNetwork(bool shared, |
| 83 std::unique_ptr<base::DictionaryValue> properties, | 83 std::unique_ptr<base::DictionaryValue> properties, |
| 84 const StringCallback& success_callback, | 84 const StringCallback& success_callback, |
| 85 const FailureCallback& failure_callback) = 0; | 85 const FailureCallback& failure_callback) = 0; |
| 86 virtual void ForgetNetwork(const std::string& guid, | 86 virtual void ForgetNetwork(const std::string& guid, |
| 87 bool allow_forget_shared_config, |
| 87 const VoidCallback& success_callback, | 88 const VoidCallback& success_callback, |
| 88 const FailureCallback& failure_callback) = 0; | 89 const FailureCallback& failure_callback) = 0; |
| 89 virtual void GetNetworks(const std::string& network_type, | 90 virtual void GetNetworks(const std::string& network_type, |
| 90 bool configured_only, | 91 bool configured_only, |
| 91 bool visible_only, | 92 bool visible_only, |
| 92 int limit, | 93 int limit, |
| 93 const NetworkListCallback& success_callback, | 94 const NetworkListCallback& success_callback, |
| 94 const FailureCallback& failure_callback) = 0; | 95 const FailureCallback& failure_callback) = 0; |
| 95 virtual void StartConnect(const std::string& guid, | 96 virtual void StartConnect(const std::string& guid, |
| 96 const VoidCallback& success_callback, | 97 const VoidCallback& success_callback, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 private: | 159 private: |
| 159 // Interface for UI methods. May be null. | 160 // Interface for UI methods. May be null. |
| 160 std::unique_ptr<UIDelegate> ui_delegate_; | 161 std::unique_ptr<UIDelegate> ui_delegate_; |
| 161 | 162 |
| 162 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateDelegate); | 163 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateDelegate); |
| 163 }; | 164 }; |
| 164 | 165 |
| 165 } // namespace extensions | 166 } // namespace extensions |
| 166 | 167 |
| 167 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE
_H_ | 168 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE
_H_ |
| OLD | NEW |