Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Side by Side Diff: extensions/browser/api/networking_private/networking_private_linux.cc

Issue 870163002: Move networking_private to src/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN 2 Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "chrome/browser/extensions/api/networking_private/networking_private_li nux.h" 5 #include "extensions/browser/api/networking_private/networking_private_linux.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/strings/string_split.h" 12 #include "base/strings/string_split.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "base/threading/sequenced_worker_pool.h" 14 #include "base/threading/sequenced_worker_pool.h"
15 #include "chrome/browser/extensions/api/networking_private/network_config_dbus_c onstants_linux.h"
16 #include "chrome/browser/extensions/api/networking_private/networking_private_ap i.h"
17 #include "chrome/browser/extensions/api/networking_private/networking_private_de legate_observer.h"
18 #include "components/onc/onc_constants.h" 15 #include "components/onc/onc_constants.h"
19 #include "content/public/browser/browser_context.h" 16 #include "content/public/browser/browser_context.h"
20 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
21 #include "dbus/bus.h" 18 #include "dbus/bus.h"
22 #include "dbus/message.h" 19 #include "dbus/message.h"
23 #include "dbus/object_path.h" 20 #include "dbus/object_path.h"
24 #include "dbus/object_proxy.h" 21 #include "dbus/object_proxy.h"
22 #include "extensions/browser/api/networking_private/network_config_dbus_constant s_linux.h"
23 #include "extensions/browser/api/networking_private/networking_private_api.h"
24 #include "extensions/browser/api/networking_private/networking_private_delegate_ observer.h"
25 25
26 //////////////////////////////////////////////////////////////////////////////// 26 ////////////////////////////////////////////////////////////////////////////////
27 27
28 namespace extensions { 28 namespace extensions {
29 29
30 namespace { 30 namespace {
31 // Access Point info strings. 31 // Access Point info strings.
32 const char kAccessPointInfoName[] = "Name"; 32 const char kAccessPointInfoName[] = "Name";
33 const char kAccessPointInfoGuid[] = "GUID"; 33 const char kAccessPointInfoGuid[] = "GUID";
34 const char kAccessPointInfoConnectable[] = "Connectable"; 34 const char kAccessPointInfoConnectable[] = "Connectable";
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 base::Unretained(this), base::Passed(&guid_list))); 1159 base::Unretained(this), base::Passed(&guid_list)));
1160 } 1160 }
1161 1161
1162 void NetworkingPrivateLinux::OnNetworksChangedEventTask( 1162 void NetworkingPrivateLinux::OnNetworksChangedEventTask(
1163 scoped_ptr<GuidList> guid_list) { 1163 scoped_ptr<GuidList> guid_list) {
1164 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 1164 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
1165 OnNetworksChangedEventOnUIThread(*guid_list); 1165 OnNetworksChangedEventOnUIThread(*guid_list);
1166 } 1166 }
1167 1167
1168 } // namespace extensions 1168 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698