Add ICU message format support
[chromium-blink-merge.git] / extensions / browser / api / networking_private / networking_private_chromeos.h
blobb3cba191acbe738603b52b3179a5f9c54c0e67a4
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"
10 namespace context {
11 class BrowserContext;
14 namespace extensions {
16 // Chrome OS NetworkingPrivateDelegate implementation.
18 class NetworkingPrivateChromeOS : public NetworkingPrivateDelegate {
19 public:
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 ForgetNetwork(const std::string& guid,
44 const VoidCallback& success_callback,
45 const FailureCallback& failure_callback) override;
46 void GetNetworks(const std::string& network_type,
47 bool configured_only,
48 bool visible_only,
49 int limit,
50 const NetworkListCallback& success_callback,
51 const FailureCallback& failure_callback) override;
52 void StartConnect(const std::string& guid,
53 const VoidCallback& success_callback,
54 const FailureCallback& failure_callback) override;
55 void StartDisconnect(const std::string& guid,
56 const VoidCallback& success_callback,
57 const FailureCallback& failure_callback) override;
58 void StartActivate(const std::string& guid,
59 const std::string& carrier,
60 const VoidCallback& success_callback,
61 const FailureCallback& failure_callback) override;
62 void SetWifiTDLSEnabledState(
63 const std::string& ip_or_mac_address,
64 bool enabled,
65 const StringCallback& success_callback,
66 const FailureCallback& failure_callback) override;
67 void GetWifiTDLSStatus(const std::string& ip_or_mac_address,
68 const StringCallback& success_callback,
69 const FailureCallback& failure_callback) override;
70 void GetCaptivePortalStatus(const std::string& guid,
71 const StringCallback& success_callback,
72 const FailureCallback& failure_callback) override;
73 void UnlockCellularSim(const std::string& guid,
74 const std::string& pin,
75 const std::string& puk,
76 const VoidCallback& success_callback,
77 const FailureCallback& failure_callback) override;
78 void SetCellularSimState(const std::string& guid,
79 bool require_pin,
80 const std::string& current_pin,
81 const std::string& new_pin,
82 const VoidCallback& success_callback,
83 const FailureCallback& failure_callback) override;
84 scoped_ptr<base::ListValue> GetEnabledNetworkTypes() override;
85 scoped_ptr<DeviceStateList> GetDeviceStateList() override;
86 bool EnableNetworkType(const std::string& type) override;
87 bool DisableNetworkType(const std::string& type) override;
88 bool RequestScan() override;
90 private:
91 content::BrowserContext* browser_context_;
93 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOS);
96 } // namespace extensions
98 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_