Home | History | Annotate | Download | only in login
      1 // Copyright (c) 2011 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 #pragma once
      6 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_
      7 #define CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_
      8 
      9 #include <cstddef>  // for size_t
     10 #include <string>
     11 
     12 namespace chromeos {
     13 
     14 // Returns path to default user image with specified index.
     15 // The path is used in Local State to distinguish default images.
     16 std::string GetDefaultImagePath(int index);
     17 
     18 // Checks if given path is one of the default ones. If it is, returns true
     19 // and its index through |image_id|. If not, returns false.
     20 bool IsDefaultImagePath(const std::string& path, int* image_id);
     21 
     22 // Returns URL to default user image with specifided index.
     23 std::string GetDefaultImageUrl(int index);
     24 
     25 // Checks if the given URL points to one of the default images. If it is,
     26 // returns true and its index through |image_id|. If not, returns false.
     27 bool IsDefaultImageUrl(const std::string url, int* image_id);
     28 
     29 // Resource IDs of default user images.
     30 extern const int kDefaultImageResources[];
     31 
     32 // Number of default images.
     33 extern const int kDefaultImagesCount;
     34 
     35 }  // namespace chromeos
     36 
     37 #endif  // CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_
     38