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

Side by Side Diff: chromeos/dbus/flimflam_device_client.h

Issue 10078007: Add chromeos::FlimflamDeviceClient::CallGetPropertiesAndBlock/CallAddIPConfigAndBlock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODO Created 8 years, 8 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
« no previous file with comments | « chromeos/dbus/flimflam_client_helper.cc ('k') | chromeos/dbus/flimflam_device_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DBUS_FLIMFLAM_DEVICE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FLIMFLAM_DEVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_FLIMFLAM_DEVICE_CLIENT_H_ 6 #define CHROMEOS_DBUS_FLIMFLAM_DEVICE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Resets PropertyChanged signal handler. 54 // Resets PropertyChanged signal handler.
55 virtual void ResetPropertyChangedHandler( 55 virtual void ResetPropertyChangedHandler(
56 const dbus::ObjectPath& device_path) = 0; 56 const dbus::ObjectPath& device_path) = 0;
57 57
58 // Calls GetProperties method. 58 // Calls GetProperties method.
59 // |callback| is called after the method call finishes. 59 // |callback| is called after the method call finishes.
60 virtual void GetProperties(const dbus::ObjectPath& device_path, 60 virtual void GetProperties(const dbus::ObjectPath& device_path,
61 const DictionaryValueCallback& callback) = 0; 61 const DictionaryValueCallback& callback) = 0;
62 62
63 // DEPRECATED DO NOT USE: Calls GetProperties method and blocks until the
64 // method call finishes. The caller is responsible to delete the result.
65 // Thie method returns NULL when method call fails.
66 //
67 // TODO(hashimoto): Refactor CrosGetDeviceNetworkList and remove this method.
68 virtual base::DictionaryValue* CallGetPropertiesAndBlock(
69 const dbus::ObjectPath& device_path) = 0;
70
63 // Calls ProposeScan method. 71 // Calls ProposeScan method.
64 // |callback| is called after the method call finishes. 72 // |callback| is called after the method call finishes.
65 virtual void ProposeScan(const dbus::ObjectPath& device_path, 73 virtual void ProposeScan(const dbus::ObjectPath& device_path,
66 const VoidCallback& callback) = 0; 74 const VoidCallback& callback) = 0;
67 75
68 // Calls SetProperty method. 76 // Calls SetProperty method.
69 // |callback| is called after the method call finishes. 77 // |callback| is called after the method call finishes.
70 virtual void SetProperty(const dbus::ObjectPath& device_path, 78 virtual void SetProperty(const dbus::ObjectPath& device_path,
71 const std::string& name, 79 const std::string& name,
72 const base::Value& value, 80 const base::Value& value,
73 const VoidCallback& callback) = 0; 81 const VoidCallback& callback) = 0;
74 82
75 // Calls ClearProperty method. 83 // Calls ClearProperty method.
76 // |callback| is called after the method call finishes. 84 // |callback| is called after the method call finishes.
77 virtual void ClearProperty(const dbus::ObjectPath& device_path, 85 virtual void ClearProperty(const dbus::ObjectPath& device_path,
78 const std::string& name, 86 const std::string& name,
79 const VoidCallback& callback) = 0; 87 const VoidCallback& callback) = 0;
80 88
81 // Calls AddIPConfig method. 89 // Calls AddIPConfig method.
82 // |callback| is called after the method call finishes. 90 // |callback| is called after the method call finishes.
83 virtual void AddIPConfig(const dbus::ObjectPath& device_path, 91 virtual void AddIPConfig(const dbus::ObjectPath& device_path,
84 const std::string& method, 92 const std::string& method,
85 const ObjectPathCallback& callback) = 0; 93 const ObjectPathCallback& callback) = 0;
86 94
95 // DEPRECATED DO NOT USE: Calls AddIPConfig method and blocks until the method
96 // call finishes.
97 // This method returns an empty path when method call fails.
98 //
99 // TODO(hashimoto): Refactor CrosAddIPConfig and remove this method.
100 virtual dbus::ObjectPath CallAddIPConfigAndBlock(
101 const dbus::ObjectPath& device_path,
102 const std::string& method) = 0;
103
87 // Calls RequirePin method. 104 // Calls RequirePin method.
88 // |callback| is called after the method call finishes. 105 // |callback| is called after the method call finishes.
89 virtual void RequirePin(const dbus::ObjectPath& device_path, 106 virtual void RequirePin(const dbus::ObjectPath& device_path,
90 const std::string& pin, 107 const std::string& pin,
91 bool require, 108 bool require,
92 const VoidCallback& callback) = 0; 109 const VoidCallback& callback) = 0;
93 110
94 // Calls EnterPin method. 111 // Calls EnterPin method.
95 // |callback| is called after the method call finishes. 112 // |callback| is called after the method call finishes.
96 virtual void EnterPin(const dbus::ObjectPath& device_path, 113 virtual void EnterPin(const dbus::ObjectPath& device_path,
(...skipping 24 matching lines...) Expand all
121 // Create() should be used instead. 138 // Create() should be used instead.
122 FlimflamDeviceClient(); 139 FlimflamDeviceClient();
123 140
124 private: 141 private:
125 DISALLOW_COPY_AND_ASSIGN(FlimflamDeviceClient); 142 DISALLOW_COPY_AND_ASSIGN(FlimflamDeviceClient);
126 }; 143 };
127 144
128 } // namespace chromeos 145 } // namespace chromeos
129 146
130 #endif // CHROMEOS_DBUS_FLIMFLAM_DEVICE_CLIENT_H_ 147 #endif // CHROMEOS_DBUS_FLIMFLAM_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/flimflam_client_helper.cc ('k') | chromeos/dbus/flimflam_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698