OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/chromeos/extensions/networking_private_api.h" | 5 #include "chrome/browser/chromeos/extensions/networking_private_api.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 "chrome/browser/chromeos/net/managed_network_configuration_handler.h" | |
11 #include "chrome/browser/extensions/extension_function_registry.h" | 10 #include "chrome/browser/extensions/extension_function_registry.h" |
12 #include "chrome/common/extensions/api/networking_private.h" | 11 #include "chrome/common/extensions/api/networking_private.h" |
13 #include "chromeos/dbus/dbus_thread_manager.h" | 12 #include "chromeos/dbus/dbus_thread_manager.h" |
14 #include "chromeos/dbus/shill_manager_client.h" | 13 #include "chromeos/dbus/shill_manager_client.h" |
| 14 #include "chromeos/network/managed_network_configuration_handler.h" |
15 #include "chromeos/network/network_state.h" | 15 #include "chromeos/network/network_state.h" |
16 #include "chromeos/network/network_state_handler.h" | 16 #include "chromeos/network/network_state_handler.h" |
17 #include "chromeos/network/onc/onc_constants.h" | 17 #include "chromeos/network/onc/onc_constants.h" |
18 #include "chromeos/network/onc/onc_signature.h" | 18 #include "chromeos/network/onc/onc_signature.h" |
19 #include "chromeos/network/onc/onc_translator.h" | 19 #include "chromeos/network/onc/onc_translator.h" |
20 | 20 |
21 using namespace chromeos; | 21 using namespace chromeos; |
22 namespace api = extensions::api::networking_private; | 22 namespace api = extensions::api::networking_private; |
23 | 23 |
24 //////////////////////////////////////////////////////////////////////////////// | 24 //////////////////////////////////////////////////////////////////////////////// |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 const std::string& result) { | 361 const std::string& result) { |
362 results_ = api::VerifyAndEncryptData::Results::Create(result); | 362 results_ = api::VerifyAndEncryptData::Results::Create(result); |
363 SendResponse(true); | 363 SendResponse(true); |
364 } | 364 } |
365 | 365 |
366 void NetworkingPrivateVerifyAndEncryptDataFunction::ErrorCallback( | 366 void NetworkingPrivateVerifyAndEncryptDataFunction::ErrorCallback( |
367 const std::string& error_name, const std::string& error) { | 367 const std::string& error_name, const std::string& error) { |
368 error_ = error_name; | 368 error_ = error_name; |
369 SendResponse(false); | 369 SendResponse(false); |
370 } | 370 } |
371 | |
OLD | NEW |