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

Unified Diff: chromeos/components/tether/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 | « chromeos/components/tether/initializer.cc ('k') | chromeos/components/tether/local_device_data_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/components/tether/local_device_data_provider.h
diff --git a/chromeos/components/tether/local_device_data_provider.h b/chromeos/components/tether/local_device_data_provider.h
deleted file mode 100644
index a4e713dd586d899eb219993c6b779ddd3c40fff8..0000000000000000000000000000000000000000
--- a/chromeos/components/tether/local_device_data_provider.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// 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_
-
-#include <memory>
-#include <string>
-#include <vector>
-
-#include "base/macros.h"
-#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);
- virtual ~LocalDeviceDataProvider();
-
- // Fetches the public key and/or the beacon seeds for the local device.
- // Returns whether the operation succeeded. If |nullptr| is passed as a
- // parameter, the associated data will not be fetched.
- virtual bool GetLocalDeviceData(
- std::string* public_key_out,
- std::vector<cryptauth::BeaconSeed>* beacon_seeds_out) const;
-
- private:
- friend class LocalDeviceDataProviderTest;
-
- cryptauth::CryptAuthService* cryptauth_service_;
-
- DISALLOW_COPY_AND_ASSIGN(LocalDeviceDataProvider);
-};
-
-} // namespace tether
-
-} // namespace chromeos
-
-#endif // CHROMEOS_COMPONENTS_TETHER_LOCAL_DEVICE_DATA_PROVIDER_H_
« no previous file with comments | « chromeos/components/tether/initializer.cc ('k') | chromeos/components/tether/local_device_data_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698