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

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

Issue 1283613005: Add networkingPrivate.getThirdPartyVpnProviderList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_515987_cr_network_list
Patch Set: Rebase Created 5 years, 4 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_delegate. h" 5 #include "extensions/browser/api/networking_private/networking_private_delegate. h"
6 6
7 #include "extensions/browser/api/networking_private/networking_private_api.h" 7 #include "extensions/browser/api/networking_private/networking_private_api.h"
8 8
9 namespace extensions { 9 namespace extensions {
10 10
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 38
39 void NetworkingPrivateDelegate::StartActivate( 39 void NetworkingPrivateDelegate::StartActivate(
40 const std::string& guid, 40 const std::string& guid,
41 const std::string& carrier, 41 const std::string& carrier,
42 const VoidCallback& success_callback, 42 const VoidCallback& success_callback,
43 const FailureCallback& failure_callback) { 43 const FailureCallback& failure_callback) {
44 failure_callback.Run(networking_private::kErrorNotSupported); 44 failure_callback.Run(networking_private::kErrorNotSupported);
45 } 45 }
46 46
47 scoped_ptr<base::ListValue>
48 NetworkingPrivateDelegate::GetThirdPartyVpnProviderList() {
49 return make_scoped_ptr(new base::ListValue);
50 }
51
47 void NetworkingPrivateDelegate::VerifyDestination( 52 void NetworkingPrivateDelegate::VerifyDestination(
48 const VerificationProperties& verification_properties, 53 const VerificationProperties& verification_properties,
49 const BoolCallback& success_callback, 54 const BoolCallback& success_callback,
50 const FailureCallback& failure_callback) { 55 const FailureCallback& failure_callback) {
51 if (!verify_delegate_) { 56 if (!verify_delegate_) {
52 failure_callback.Run(networking_private::kErrorNotSupported); 57 failure_callback.Run(networking_private::kErrorNotSupported);
53 return; 58 return;
54 } 59 }
55 verify_delegate_->VerifyDestination(verification_properties, success_callback, 60 verify_delegate_->VerifyDestination(verification_properties, success_callback,
56 failure_callback); 61 failure_callback);
(...skipping 19 matching lines...) Expand all
76 const FailureCallback& failure_callback) { 81 const FailureCallback& failure_callback) {
77 if (!verify_delegate_) { 82 if (!verify_delegate_) {
78 failure_callback.Run(networking_private::kErrorNotSupported); 83 failure_callback.Run(networking_private::kErrorNotSupported);
79 return; 84 return;
80 } 85 }
81 verify_delegate_->VerifyAndEncryptData(verification_properties, data, 86 verify_delegate_->VerifyAndEncryptData(verification_properties, data,
82 success_callback, failure_callback); 87 success_callback, failure_callback);
83 } 88 }
84 89
85 } // namespace extensions 90 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698