OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_service_c
lient.h" | 5 #include "extensions/browser/api/networking_private/networking_private_service_c
lient.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/memory/ptr_util.h" |
11 #include "base/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
12 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
13 #include "base/threading/worker_pool.h" | 14 #include "base/threading/worker_pool.h" |
14 #include "components/onc/onc_constants.h" | 15 #include "components/onc/onc_constants.h" |
15 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
16 #include "extensions/browser/api/networking_private/networking_private_api.h" | 17 #include "extensions/browser/api/networking_private/networking_private_api.h" |
17 #include "extensions/browser/api/networking_private/networking_private_delegate_
observer.h" | 18 #include "extensions/browser/api/networking_private/networking_private_delegate_
observer.h" |
18 | 19 |
19 using content::BrowserThread; | 20 using content::BrowserThread; |
20 using wifi::WiFiService; | 21 using wifi::WiFiService; |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 } | 468 } |
468 | 469 |
469 void NetworkingPrivateServiceClient::OnNetworkListChangedEventOnUIThread( | 470 void NetworkingPrivateServiceClient::OnNetworkListChangedEventOnUIThread( |
470 const std::vector<std::string>& network_guids) { | 471 const std::vector<std::string>& network_guids) { |
471 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 472 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
472 for (auto& observer : network_events_observers_) | 473 for (auto& observer : network_events_observers_) |
473 observer.OnNetworkListChangedEvent(network_guids); | 474 observer.OnNetworkListChangedEvent(network_guids); |
474 } | 475 } |
475 | 476 |
476 } // namespace extensions | 477 } // namespace extensions |
OLD | NEW |