| 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_CHROMEOS_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_ |
| 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_ | 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" |
| 8 #include "extensions/browser/api/networking_private/networking_private_delegate.
h" | 9 #include "extensions/browser/api/networking_private/networking_private_delegate.
h" |
| 9 | 10 |
| 10 namespace context { | 11 namespace context { |
| 11 class BrowserContext; | 12 class BrowserContext; |
| 12 } | 13 } |
| 13 | 14 |
| 14 namespace extensions { | 15 namespace extensions { |
| 15 | 16 |
| 16 // Chrome OS NetworkingPrivateDelegate implementation. | 17 // Chrome OS NetworkingPrivateDelegate implementation. |
| 17 | 18 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 const std::string& new_pin, | 82 const std::string& new_pin, |
| 82 const VoidCallback& success_callback, | 83 const VoidCallback& success_callback, |
| 83 const FailureCallback& failure_callback) override; | 84 const FailureCallback& failure_callback) override; |
| 84 scoped_ptr<base::ListValue> GetEnabledNetworkTypes() override; | 85 scoped_ptr<base::ListValue> GetEnabledNetworkTypes() override; |
| 85 scoped_ptr<DeviceStateList> GetDeviceStateList() override; | 86 scoped_ptr<DeviceStateList> GetDeviceStateList() override; |
| 86 bool EnableNetworkType(const std::string& type) override; | 87 bool EnableNetworkType(const std::string& type) override; |
| 87 bool DisableNetworkType(const std::string& type) override; | 88 bool DisableNetworkType(const std::string& type) override; |
| 88 bool RequestScan() override; | 89 bool RequestScan() override; |
| 89 | 90 |
| 90 private: | 91 private: |
| 92 void ConnectFailureCallback(const std::string& guid, |
| 93 const VoidCallback& success_callback, |
| 94 const FailureCallback& failure_callback, |
| 95 const std::string& error_name, |
| 96 scoped_ptr<base::DictionaryValue> error_data); |
| 97 |
| 91 content::BrowserContext* browser_context_; | 98 content::BrowserContext* browser_context_; |
| 99 base::WeakPtrFactory<NetworkingPrivateChromeOS> weak_ptr_factory_; |
| 92 | 100 |
| 93 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOS); | 101 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOS); |
| 94 }; | 102 }; |
| 95 | 103 |
| 96 } // namespace extensions | 104 } // namespace extensions |
| 97 | 105 |
| 98 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS
_H_ | 106 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS
_H_ |
| OLD | NEW |