Home | History | Annotate | Download | only in signedin_devices
      1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SIGNEDIN_DEVICES_SIGNEDIN_DEVICES_API_H__
      6 #define CHROME_BROWSER_EXTENSIONS_API_SIGNEDIN_DEVICES_SIGNEDIN_DEVICES_API_H__
      7 
      8 #include <string>
      9 #include <vector>
     10 
     11 #include "base/memory/scoped_vector.h"
     12 
     13 namespace browser_sync {
     14 class DeviceInfo;
     15 }  // namespace browser_sync
     16 
     17 namespace extensions {
     18 class ExtensionPrefs;
     19 }  // namespace extensions
     20 
     21 class Profile;
     22 class ProfileSyncService;
     23 
     24 namespace extensions {
     25 
     26 // Gets the list of signed in devices. The returned scoped vector will be
     27 // filled with the list of devices associated with the account signed into this
     28 // |profile|. This function needs the |extension_id| because the
     29 // public device ids are set per extension.
     30 ScopedVector<browser_sync::DeviceInfo> GetAllSignedInDevices(
     31     const std::string& extension_id,
     32     Profile* profile);
     33 
     34 ScopedVector<browser_sync::DeviceInfo> GetAllSignedInDevices(
     35     const std::string& extension_id,
     36     ProfileSyncService* pss,
     37     ExtensionPrefs* extension_prefs);
     38 
     39 }  // namespace extensions
     40 
     41 #endif  // CHROME_BROWSER_EXTENSIONS_API_SIGNEDIN_DEVICES_SIGNEDIN_DEVICES_API_H__
     42