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
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_
8 #include "extensions/browser/api/networking_private/networking_private_delegate.h"
14 namespace extensions
{
16 // Chrome OS NetworkingPrivateDelegate implementation.
18 class NetworkingPrivateChromeOS
: public NetworkingPrivateDelegate
{
20 // |verify_delegate| is passed to NetworkingPrivateDelegate and may be NULL.
21 NetworkingPrivateChromeOS(content::BrowserContext
* browser_context
,
22 scoped_ptr
<VerifyDelegate
> verify_delegate
);
23 ~NetworkingPrivateChromeOS() override
;
25 // NetworkingPrivateApi
26 void GetProperties(const std::string
& guid
,
27 const DictionaryCallback
& success_callback
,
28 const FailureCallback
& failure_callback
) override
;
29 void GetManagedProperties(const std::string
& guid
,
30 const DictionaryCallback
& success_callback
,
31 const FailureCallback
& failure_callback
) override
;
32 void GetState(const std::string
& guid
,
33 const DictionaryCallback
& success_callback
,
34 const FailureCallback
& failure_callback
) override
;
35 void SetProperties(const std::string
& guid
,
36 scoped_ptr
<base::DictionaryValue
> properties
,
37 const VoidCallback
& success_callback
,
38 const FailureCallback
& failure_callback
) override
;
39 void CreateNetwork(bool shared
,
40 scoped_ptr
<base::DictionaryValue
> properties
,
41 const StringCallback
& success_callback
,
42 const FailureCallback
& failure_callback
) override
;
43 void GetNetworks(const std::string
& network_type
,
47 const NetworkListCallback
& success_callback
,
48 const FailureCallback
& failure_callback
) override
;
49 void StartConnect(const std::string
& guid
,
50 const VoidCallback
& success_callback
,
51 const FailureCallback
& failure_callback
) override
;
52 void StartDisconnect(const std::string
& guid
,
53 const VoidCallback
& success_callback
,
54 const FailureCallback
& failure_callback
) override
;
55 void SetWifiTDLSEnabledState(
56 const std::string
& ip_or_mac_address
,
58 const StringCallback
& success_callback
,
59 const FailureCallback
& failure_callback
) override
;
60 void GetWifiTDLSStatus(const std::string
& ip_or_mac_address
,
61 const StringCallback
& success_callback
,
62 const FailureCallback
& failure_callback
) override
;
63 void GetCaptivePortalStatus(const std::string
& guid
,
64 const StringCallback
& success_callback
,
65 const FailureCallback
& failure_callback
) override
;
66 scoped_ptr
<base::ListValue
> GetEnabledNetworkTypes() override
;
67 bool EnableNetworkType(const std::string
& type
) override
;
68 bool DisableNetworkType(const std::string
& type
) override
;
69 bool RequestScan() override
;
72 content::BrowserContext
* browser_context_
;
74 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOS
);
77 } // namespace extensions
79 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_