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

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

Issue 2891453002: Introduce networkingPrivate.getCertificateLists (Closed)
Patch Set: Clang format Created 3 years, 7 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 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"
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 properties->state = api::networking_private::DEVICE_STATE_TYPE_ENABLED; 351 properties->state = api::networking_private::DEVICE_STATE_TYPE_ENABLED;
352 device_state_list->push_back(std::move(properties)); 352 device_state_list->push_back(std::move(properties));
353 return device_state_list; 353 return device_state_list;
354 } 354 }
355 355
356 std::unique_ptr<base::DictionaryValue> 356 std::unique_ptr<base::DictionaryValue>
357 NetworkingPrivateServiceClient::GetGlobalPolicy() { 357 NetworkingPrivateServiceClient::GetGlobalPolicy() {
358 return base::MakeUnique<base::DictionaryValue>(); 358 return base::MakeUnique<base::DictionaryValue>();
359 } 359 }
360 360
361 std::unique_ptr<base::DictionaryValue>
362 NetworkingPrivateServiceClient::GetCertificateLists() {
363 return base::MakeUnique<base::DictionaryValue>();
364 }
365
361 bool NetworkingPrivateServiceClient::EnableNetworkType( 366 bool NetworkingPrivateServiceClient::EnableNetworkType(
362 const std::string& type) { 367 const std::string& type) {
363 return false; 368 return false;
364 } 369 }
365 370
366 bool NetworkingPrivateServiceClient::DisableNetworkType( 371 bool NetworkingPrivateServiceClient::DisableNetworkType(
367 const std::string& type) { 372 const std::string& type) {
368 return false; 373 return false;
369 } 374 }
370 375
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 } 478 }
474 479
475 void NetworkingPrivateServiceClient::OnNetworkListChangedEventOnUIThread( 480 void NetworkingPrivateServiceClient::OnNetworkListChangedEventOnUIThread(
476 const std::vector<std::string>& network_guids) { 481 const std::vector<std::string>& network_guids) {
477 DCHECK_CURRENTLY_ON(BrowserThread::UI); 482 DCHECK_CURRENTLY_ON(BrowserThread::UI);
478 for (auto& observer : network_events_observers_) 483 for (auto& observer : network_events_observers_)
479 observer.OnNetworkListChangedEvent(network_guids); 484 observer.OnNetworkListChangedEvent(network_guids);
480 } 485 }
481 486
482 } // namespace extensions 487 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698