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 #include "extensions/browser/api/networking_private/networking_private_linux.h" | 5 #include "extensions/browser/api/networking_private/networking_private_linux.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 properties->state = api::networking_private::DEVICE_STATE_TYPE_ENABLED; | 587 properties->state = api::networking_private::DEVICE_STATE_TYPE_ENABLED; |
588 device_state_list->push_back(std::move(properties)); | 588 device_state_list->push_back(std::move(properties)); |
589 return device_state_list; | 589 return device_state_list; |
590 } | 590 } |
591 | 591 |
592 std::unique_ptr<base::DictionaryValue> | 592 std::unique_ptr<base::DictionaryValue> |
593 NetworkingPrivateLinux::GetGlobalPolicy() { | 593 NetworkingPrivateLinux::GetGlobalPolicy() { |
594 return base::MakeUnique<base::DictionaryValue>(); | 594 return base::MakeUnique<base::DictionaryValue>(); |
595 } | 595 } |
596 | 596 |
| 597 std::unique_ptr<base::DictionaryValue> |
| 598 NetworkingPrivateServiceClient::GetCertificateLists() { |
| 599 return base::MakeUnique<base::DictionaryValue>(); |
| 600 } |
| 601 |
597 bool NetworkingPrivateLinux::EnableNetworkType(const std::string& type) { | 602 bool NetworkingPrivateLinux::EnableNetworkType(const std::string& type) { |
598 return false; | 603 return false; |
599 } | 604 } |
600 | 605 |
601 bool NetworkingPrivateLinux::DisableNetworkType(const std::string& type) { | 606 bool NetworkingPrivateLinux::DisableNetworkType(const std::string& type) { |
602 return false; | 607 return false; |
603 } | 608 } |
604 | 609 |
605 bool NetworkingPrivateLinux::RequestScan() { | 610 bool NetworkingPrivateLinux::RequestScan() { |
606 return GetNetworksForScanRequest(); | 611 return GetNetworksForScanRequest(); |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 base::Unretained(this), base::Passed(&guid_list))); | 1207 base::Unretained(this), base::Passed(&guid_list))); |
1203 } | 1208 } |
1204 | 1209 |
1205 void NetworkingPrivateLinux::OnNetworksChangedEventTask( | 1210 void NetworkingPrivateLinux::OnNetworksChangedEventTask( |
1206 std::unique_ptr<GuidList> guid_list) { | 1211 std::unique_ptr<GuidList> guid_list) { |
1207 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 1212 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
1208 OnNetworksChangedEventOnUIThread(*guid_list); | 1213 OnNetworksChangedEventOnUIThread(*guid_list); |
1209 } | 1214 } |
1210 | 1215 |
1211 } // namespace extensions | 1216 } // namespace extensions |
OLD | NEW |