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/memory/ptr_util.h" |
12 #include "base/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
13 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "base/threading/worker_pool.h" | |
15 #include "components/onc/onc_constants.h" | 14 #include "components/onc/onc_constants.h" |
16 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
17 #include "extensions/browser/api/networking_private/networking_private_api.h" | 16 #include "extensions/browser/api/networking_private/networking_private_api.h" |
18 #include "extensions/browser/api/networking_private/networking_private_delegate_
observer.h" | 17 #include "extensions/browser/api/networking_private/networking_private_delegate_
observer.h" |
19 | 18 |
20 using content::BrowserThread; | 19 using content::BrowserThread; |
21 using wifi::WiFiService; | 20 using wifi::WiFiService; |
22 | 21 |
23 namespace extensions { | 22 namespace extensions { |
24 | 23 |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 } | 473 } |
475 | 474 |
476 void NetworkingPrivateServiceClient::OnNetworkListChangedEventOnUIThread( | 475 void NetworkingPrivateServiceClient::OnNetworkListChangedEventOnUIThread( |
477 const std::vector<std::string>& network_guids) { | 476 const std::vector<std::string>& network_guids) { |
478 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 477 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
479 for (auto& observer : network_events_observers_) | 478 for (auto& observer : network_events_observers_) |
480 observer.OnNetworkListChangedEvent(network_guids); | 479 observer.OnNetworkListChangedEvent(network_guids); |
481 } | 480 } |
482 | 481 |
483 } // namespace extensions | 482 } // namespace extensions |
OLD | NEW |