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

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

Issue 14876021: Re-factor network_event_log (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address final nits Created 7 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 | Annotate | Revision Log
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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 21 matching lines...) Expand all
32 void(const std::string& service_path)> StringResultCallback; 32 void(const std::string& service_path)> StringResultCallback;
33 33
34 // Create a DictionaryValue for passing to ErrorCallback 34 // Create a DictionaryValue for passing to ErrorCallback
35 CHROMEOS_EXPORT base::DictionaryValue* CreateErrorData( 35 CHROMEOS_EXPORT base::DictionaryValue* CreateErrorData(
36 const std::string& service_path, 36 const std::string& service_path,
37 const std::string& error_name, 37 const std::string& error_name,
38 const std::string& error_message); 38 const std::string& error_message);
39 39
40 // Callback for Shill errors. |path| may be blank if not relevant. 40 // Callback for Shill errors. |path| may be blank if not relevant.
41 // Logs an error and calls |error_callback| if not null. 41 // Logs an error and calls |error_callback| if not null.
42 void ShillErrorCallbackFunction(const std::string& module, 42 void ShillErrorCallbackFunction(const std::string& path,
43 const std::string& path,
44 const ErrorCallback& error_callback, 43 const ErrorCallback& error_callback,
45 const std::string& error_name, 44 const std::string& error_name,
46 const std::string& error_message); 45 const std::string& error_message);
47 46
48 } // namespace network_handler 47 } // namespace network_handler
49 } // namespace chromeos 48 } // namespace chromeos
50 49
51 #endif // CHROMEOS_NETWORK_NETWORK_HANDLER_CALLBACKS_H_ 50 #endif // CHROMEOS_NETWORK_NETWORK_HANDLER_CALLBACKS_H_
OLDNEW
« no previous file with comments | « chromeos/network/network_event_log_unittest.cc ('k') | chromeos/network/network_handler_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698