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

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

Issue 790793008: chromeos: Remove unused private data members (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 virtual void FlushAndSignBootAttributes( 198 virtual void FlushAndSignBootAttributes(
199 const cryptohome::FlushAndSignBootAttributesRequest& request, 199 const cryptohome::FlushAndSignBootAttributesRequest& request,
200 const ProtobufMethodCallback& callback) override; 200 const ProtobufMethodCallback& callback) override;
201 201
202 // Changes the behavior of WaitForServiceToBeAvailable(). This method runs 202 // Changes the behavior of WaitForServiceToBeAvailable(). This method runs
203 // pending callbacks if is_available is true. 203 // pending callbacks if is_available is true.
204 void SetServiceIsAvailable(bool is_available); 204 void SetServiceIsAvailable(bool is_available);
205 205
206 // Sets the unmount result of Unmount() call. 206 // Sets the unmount result of Unmount() call.
207 void set_unmount_result(bool result) { 207 void set_unmount_result(bool result) {
208 unmount_result_= result; 208 unmount_result_ = result;
209 } 209 }
210 210
211 // Sets the system salt which will be returned from GetSystemSalt(). By 211 // Sets the system salt which will be returned from GetSystemSalt(). By
212 // default, GetSystemSalt() returns the value generated by 212 // default, GetSystemSalt() returns the value generated by
213 // GetStubSystemSalt(). 213 // GetStubSystemSalt().
214 void set_system_salt(const std::vector<uint8>& system_salt) { 214 void set_system_salt(const std::vector<uint8>& system_salt) {
215 system_salt_ = system_salt; 215 system_salt_ = system_salt;
216 } 216 }
217 217
218 // Returns the stub system salt as raw bytes. (not as a string encoded in the 218 // Returns the stub system salt as raw bytes. (not as a string encoded in the
(...skipping 10 matching lines...) Expand all
229 bool returns_data); 229 bool returns_data);
230 230
231 // This method is used to implement ReturnAsyncMethodResult. 231 // This method is used to implement ReturnAsyncMethodResult.
232 void ReturnAsyncMethodResultInternal(const AsyncMethodCallback& callback, 232 void ReturnAsyncMethodResultInternal(const AsyncMethodCallback& callback,
233 bool returns_data); 233 bool returns_data);
234 234
235 bool service_is_available_; 235 bool service_is_available_;
236 int async_call_id_; 236 int async_call_id_;
237 AsyncCallStatusHandler async_call_status_handler_; 237 AsyncCallStatusHandler async_call_status_handler_;
238 AsyncCallStatusWithDataHandler async_call_status_data_handler_; 238 AsyncCallStatusWithDataHandler async_call_status_data_handler_;
239 int tpm_is_ready_counter_;
240 bool unmount_result_; 239 bool unmount_result_;
241 std::vector<uint8> system_salt_; 240 std::vector<uint8> system_salt_;
242 241
243 std::vector<WaitForServiceToBeAvailableCallback> 242 std::vector<WaitForServiceToBeAvailableCallback>
244 pending_wait_for_service_to_be_available_callbacks_; 243 pending_wait_for_service_to_be_available_callbacks_;
245 244
246 // A stub store for InstallAttributes, mapping an attribute name to the 245 // A stub store for InstallAttributes, mapping an attribute name to the
247 // associated data blob. Used to implement InstallAttributesSet and -Get. 246 // associated data blob. Used to implement InstallAttributesSet and -Get.
248 std::map<std::string, std::vector<uint8> > install_attrs_; 247 std::map<std::string, std::vector<uint8> > install_attrs_;
249 bool locked_; 248 bool locked_;
250 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_; 249 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_;
251 250
252 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); 251 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient);
253 }; 252 };
254 253
255 } // namespace chromeos 254 } // namespace chromeos
256 255
257 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ 256 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.cc ('k') | chromeos/dbus/fake_cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698