OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_USER_MANAGER_USER_IMAGE_USER_IMAGE_H_ | 5 #ifndef COMPONENTS_USER_MANAGER_USER_IMAGE_USER_IMAGE_H_ |
6 #define COMPONENTS_USER_MANAGER_USER_IMAGE_USER_IMAGE_H_ | 6 #define COMPONENTS_USER_MANAGER_USER_IMAGE_USER_IMAGE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/memory/scoped_ptr.h" |
12 #include "components/user_manager/user_manager_export.h" | 13 #include "components/user_manager/user_manager_export.h" |
13 #include "ui/gfx/image/image_skia.h" | 14 #include "ui/gfx/image/image_skia.h" |
14 #include "url/gurl.h" | 15 #include "url/gurl.h" |
15 | 16 |
16 namespace user_manager { | 17 namespace user_manager { |
17 | 18 |
18 // Wrapper class storing a still image and its bytes representation for | 19 // Wrapper class storing a still image and its bytes representation for |
19 // WebUI in a web-compatible format such as JPEG. Could be used for storing | 20 // WebUI in a web-compatible format such as JPEG. Could be used for storing |
20 // profile images and user wallpapers. | 21 // profile images and user wallpapers. |
21 class USER_MANAGER_EXPORT UserImage { | 22 class USER_MANAGER_EXPORT UserImage { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // If image was loaded from the local file, file path is stored here. | 78 // If image was loaded from the local file, file path is stored here. |
78 base::FilePath file_path_; | 79 base::FilePath file_path_; |
79 bool is_safe_format_; | 80 bool is_safe_format_; |
80 | 81 |
81 DISALLOW_COPY_AND_ASSIGN(UserImage); | 82 DISALLOW_COPY_AND_ASSIGN(UserImage); |
82 }; | 83 }; |
83 | 84 |
84 } // namespace user_manager | 85 } // namespace user_manager |
85 | 86 |
86 #endif // COMPONENTS_USER_MANAGER_USER_IMAGE_USER_IMAGE_H_ | 87 #endif // COMPONENTS_USER_MANAGER_USER_IMAGE_USER_IMAGE_H_ |
OLD | NEW |