| Index: chrome/browser/sync/glue/device_info.h
|
| diff --git a/chrome/browser/sync/glue/device_info.h b/chrome/browser/sync/glue/device_info.h
|
| deleted file mode 100644
|
| index 3faf6689442f694ff0abd1fdcc8a2c7d90b2ef66..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/sync/glue/device_info.h
|
| +++ /dev/null
|
| @@ -1,106 +0,0 @@
|
| -// Copyright (c) 2012 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 CHROME_BROWSER_SYNC_GLUE_DEVICE_INFO_H_
|
| -#define CHROME_BROWSER_SYNC_GLUE_DEVICE_INFO_H_
|
| -
|
| -#include <string>
|
| -
|
| -#include "base/basictypes.h"
|
| -#include "base/callback.h"
|
| -#include "sync/protocol/sync.pb.h"
|
| -
|
| -namespace base {
|
| -class DictionaryValue;
|
| -}
|
| -
|
| -namespace browser_sync {
|
| -
|
| -// A class that holds information regarding the properties of a device.
|
| -class DeviceInfo {
|
| - public:
|
| - typedef base::Callback<void(const std::string&)> GetClientNameCallback;
|
| -
|
| - DeviceInfo(const std::string& guid,
|
| - const std::string& client_name,
|
| - const std::string& chrome_version,
|
| - const std::string& sync_user_agent,
|
| - const sync_pb::SyncEnums::DeviceType device_type,
|
| - const std::string& signin_scoped_device_id);
|
| - ~DeviceInfo();
|
| -
|
| - // Sync specific unique identifier for the device. Note if a device
|
| - // is wiped and sync is set up again this id WILL be different.
|
| - // The same device might have more than 1 guid if the device has multiple
|
| - // accounts syncing.
|
| - const std::string& guid() const;
|
| -
|
| - // The host name for the client.
|
| - const std::string& client_name() const;
|
| -
|
| - // Chrome version string.
|
| - const std::string& chrome_version() const;
|
| -
|
| - // The user agent is the combination of OS type, chrome version and which
|
| - // channel of chrome(stable or beta). For more information see
|
| - // |LocalDeviceInfoProviderImpl::MakeUserAgentForSyncApi|.
|
| - const std::string& sync_user_agent() const;
|
| -
|
| - // Third party visible id for the device. See |public_id_| for more details.
|
| - const std::string& public_id() const;
|
| -
|
| - // Device Type.
|
| - sync_pb::SyncEnums::DeviceType device_type() const;
|
| -
|
| - // Device_id that is stable until user signs out. This device_id is used for
|
| - // annotating login scoped refresh token.
|
| - const std::string& signin_scoped_device_id() const;
|
| -
|
| - // Gets the OS in string form.
|
| - std::string GetOSString() const;
|
| -
|
| - // Gets the device type in string form.
|
| - std::string GetDeviceTypeString() const;
|
| -
|
| - // Compares this object's fields with another's.
|
| - bool Equals(const DeviceInfo& other) const;
|
| -
|
| - // Apps can set ids for a device that is meaningful to them but
|
| - // not unique enough so the user can be tracked. Exposing |guid|
|
| - // would lead to a stable unique id for a device which can potentially
|
| - // be used for tracking.
|
| - void set_public_id(std::string id);
|
| -
|
| - // Converts the |DeviceInfo| values to a JS friendly DictionaryValue,
|
| - // which extension APIs can expose to third party apps.
|
| - base::DictionaryValue* ToValue();
|
| -
|
| - // Gets the local device name and passes it as a parameter to callback.
|
| - static void GetClientName(const GetClientNameCallback& callback);
|
| -
|
| - private:
|
| - const std::string guid_;
|
| -
|
| - const std::string client_name_;
|
| -
|
| - const std::string chrome_version_;
|
| -
|
| - const std::string sync_user_agent_;
|
| -
|
| - const sync_pb::SyncEnums::DeviceType device_type_;
|
| -
|
| - std::string signin_scoped_device_id_;
|
| -
|
| - // Exposing |guid| would lead to a stable unique id for a device which
|
| - // can potentially be used for tracking. Public ids are privacy safe
|
| - // ids in that the same device will have different id for different apps
|
| - // and they are also reset when app/extension is uninstalled.
|
| - std::string public_id_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(DeviceInfo);
|
| -};
|
| -
|
| -} // namespace browser_sync
|
| -
|
| -#endif // CHROME_BROWSER_SYNC_GLUE_DEVICE_INFO_H_
|
|
|