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

Side by Side Diff: chromeos/network/network_handler_callbacks.h

Issue 1779633002: Invoke createNetwork() callback with GUID, not service name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix more trybot failures Created 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROMEOS_NETWORK_NETWORK_HANDLER_CALLBACKS_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_HANDLER_CALLBACKS_H_
6 #define CHROMEOS_NETWORK_NETWORK_HANDLER_CALLBACKS_H_ 6 #define CHROMEOS_NETWORK_NETWORK_HANDLER_CALLBACKS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 21 matching lines...) Expand all
32 void(const std::string& error_name, 32 void(const std::string& error_name,
33 scoped_ptr<base::DictionaryValue> error_data)> ErrorCallback; 33 scoped_ptr<base::DictionaryValue> error_data)> ErrorCallback;
34 34
35 typedef base::Callback< 35 typedef base::Callback<
36 void(const std::string& service_path, 36 void(const std::string& service_path,
37 const base::DictionaryValue& dictionary)> DictionaryResultCallback; 37 const base::DictionaryValue& dictionary)> DictionaryResultCallback;
38 38
39 typedef base::Callback< 39 typedef base::Callback<
40 void(const std::string& service_path)> StringResultCallback; 40 void(const std::string& service_path)> StringResultCallback;
41 41
42 typedef base::Callback<void(const std::string& service_path,
43 const std::string& guid)>
44 ServiceResultCallback;
45
42 // Create a DictionaryValue for passing to ErrorCallback. 46 // Create a DictionaryValue for passing to ErrorCallback.
43 CHROMEOS_EXPORT base::DictionaryValue* CreateErrorData( 47 CHROMEOS_EXPORT base::DictionaryValue* CreateErrorData(
44 const std::string& path, 48 const std::string& path,
45 const std::string& error_name, 49 const std::string& error_name,
46 const std::string& error_detail); 50 const std::string& error_detail);
47 51
48 // If not NULL, runs |error_callback| with an ErrorData dictionary created from 52 // If not NULL, runs |error_callback| with an ErrorData dictionary created from
49 // the other arguments. 53 // the other arguments.
50 CHROMEOS_EXPORT void RunErrorCallback(const ErrorCallback& error_callback, 54 CHROMEOS_EXPORT void RunErrorCallback(const ErrorCallback& error_callback,
51 const std::string& path, 55 const std::string& path,
(...skipping 27 matching lines...) Expand all
79 const DictionaryResultCallback& callback, 83 const DictionaryResultCallback& callback,
80 const ErrorCallback& error_callback, 84 const ErrorCallback& error_callback,
81 const std::string& path, 85 const std::string& path,
82 DBusMethodCallStatus call_status, 86 DBusMethodCallStatus call_status,
83 const base::DictionaryValue& value); 87 const base::DictionaryValue& value);
84 88
85 } // namespace network_handler 89 } // namespace network_handler
86 } // namespace chromeos 90 } // namespace chromeos
87 91
88 #endif // CHROMEOS_NETWORK_NETWORK_HANDLER_CALLBACKS_H_ 92 #endif // CHROMEOS_NETWORK_NETWORK_HANDLER_CALLBACKS_H_
OLDNEW
« no previous file with comments | « chromeos/network/network_configuration_handler_unittest.cc ('k') | components/wifi_sync/wifi_config_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698