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

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

Issue 987963002: Add forgetNetwork to networkingPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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 "extensions/browser/api/networking_private/networking_private_linux.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"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 } 262 }
263 263
264 void NetworkingPrivateLinux::CreateNetwork( 264 void NetworkingPrivateLinux::CreateNetwork(
265 bool shared, 265 bool shared,
266 scoped_ptr<base::DictionaryValue> properties, 266 scoped_ptr<base::DictionaryValue> properties,
267 const StringCallback& success_callback, 267 const StringCallback& success_callback,
268 const FailureCallback& failure_callback) { 268 const FailureCallback& failure_callback) {
269 ReportNotSupported("CreateNetwork", failure_callback); 269 ReportNotSupported("CreateNetwork", failure_callback);
270 } 270 }
271 271
272 void NetworkingPrivateLinux::ForgetNetwork(
273 const std::string& guid,
274 const VoidCallback& success_callback,
275 const FailureCallback& failure_callback) {
276 // TODO(zentaro): Implement for Linux.
277 ReportNotSupported("ForgetNetwork", failure_callback);
278 }
279
272 void NetworkingPrivateLinux::GetNetworks( 280 void NetworkingPrivateLinux::GetNetworks(
273 const std::string& network_type, 281 const std::string& network_type,
274 bool configured_only, 282 bool configured_only,
275 bool visible_only, 283 bool visible_only,
276 int limit, 284 int limit,
277 const NetworkListCallback& success_callback, 285 const NetworkListCallback& success_callback,
278 const FailureCallback& failure_callback) { 286 const FailureCallback& failure_callback) {
279 if (!CheckNetworkManagerSupported(failure_callback)) { 287 if (!CheckNetworkManagerSupported(failure_callback)) {
280 return; 288 return;
281 } 289 }
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 base::Unretained(this), base::Passed(&guid_list))); 1167 base::Unretained(this), base::Passed(&guid_list)));
1160 } 1168 }
1161 1169
1162 void NetworkingPrivateLinux::OnNetworksChangedEventTask( 1170 void NetworkingPrivateLinux::OnNetworksChangedEventTask(
1163 scoped_ptr<GuidList> guid_list) { 1171 scoped_ptr<GuidList> guid_list) {
1164 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 1172 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
1165 OnNetworksChangedEventOnUIThread(*guid_list); 1173 OnNetworksChangedEventOnUIThread(*guid_list);
1166 } 1174 }
1167 1175
1168 } // namespace extensions 1176 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698