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

Unified Diff: components/cryptauth/local_device_data_provider.h

Issue 2951303002: [CrOS Tether] Move LocalDeviceDataProvider from //chromeos/components/tether to //components/crypta… (Closed)
Patch Set: Rebased. Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/cryptauth/BUILD.gn ('k') | components/cryptauth/local_device_data_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cryptauth/local_device_data_provider.h
diff --git a/chromeos/components/tether/local_device_data_provider.h b/components/cryptauth/local_device_data_provider.h
similarity index 66%
rename from chromeos/components/tether/local_device_data_provider.h
rename to components/cryptauth/local_device_data_provider.h
index a4e713dd586d899eb219993c6b779ddd3c40fff8..927179d0dcaca8641db8b91f4ffb1c189909b844 100644
--- a/chromeos/components/tether/local_device_data_provider.h
+++ b/components/cryptauth/local_device_data_provider.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROMEOS_COMPONENTS_TETHER_LOCAL_DEVICE_DATA_PROVIDER_H_
-#define CHROMEOS_COMPONENTS_TETHER_LOCAL_DEVICE_DATA_PROVIDER_H_
+#ifndef COMPONENTS_CRYPTAUTH_LOCAL_DEVICE_DATA_PROVIDER_H_
+#define COMPONENTS_CRYPTAUTH_LOCAL_DEVICE_DATA_PROVIDER_H_
#include <memory>
#include <string>
@@ -13,20 +13,15 @@
#include "base/memory/ptr_util.h"
namespace cryptauth {
+
class BeaconSeed;
class CryptAuthService;
-}
-
-namespace chromeos {
-
-namespace tether {
// Fetches CryptAuth data about the local device (i.e., the device on which this
// code is running) for the current user (i.e., the one which is logged-in).
class LocalDeviceDataProvider {
public:
- explicit LocalDeviceDataProvider(
- cryptauth::CryptAuthService* cryptauth_service);
+ explicit LocalDeviceDataProvider(CryptAuthService* cryptauth_service);
virtual ~LocalDeviceDataProvider();
// Fetches the public key and/or the beacon seeds for the local device.
@@ -34,18 +29,16 @@ class LocalDeviceDataProvider {
// parameter, the associated data will not be fetched.
virtual bool GetLocalDeviceData(
std::string* public_key_out,
- std::vector<cryptauth::BeaconSeed>* beacon_seeds_out) const;
+ std::vector<BeaconSeed>* beacon_seeds_out) const;
private:
friend class LocalDeviceDataProviderTest;
- cryptauth::CryptAuthService* cryptauth_service_;
+ CryptAuthService* cryptauth_service_;
DISALLOW_COPY_AND_ASSIGN(LocalDeviceDataProvider);
};
-} // namespace tether
-
-} // namespace chromeos
+} // namespace cryptauth
-#endif // CHROMEOS_COMPONENTS_TETHER_LOCAL_DEVICE_DATA_PROVIDER_H_
+#endif // COMPONENTS_CRYPTAUTH_LOCAL_DEVICE_DATA_PROVIDER_H_
« no previous file with comments | « components/cryptauth/BUILD.gn ('k') | components/cryptauth/local_device_data_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698