Home | History | Annotate | Download | only in media_galleries

Lines Matching refs:MediaGalleryPrefInfo

122              MediaGalleryPrefInfo::Type* type) {
128 *type = MediaGalleryPrefInfo::kUserAdded;
132 *type = MediaGalleryPrefInfo::kAutoDetected;
136 *type = MediaGalleryPrefInfo::kBlackListed;
140 *type = MediaGalleryPrefInfo::kScanResult;
144 *type = MediaGalleryPrefInfo::kRemovedScan;
151 const char* TypeToStringValue(MediaGalleryPrefInfo::Type type) {
154 case MediaGalleryPrefInfo::kUserAdded:
157 case MediaGalleryPrefInfo::kAutoDetected:
160 case MediaGalleryPrefInfo::kBlackListed:
163 case MediaGalleryPrefInfo::kScanResult:
166 case MediaGalleryPrefInfo::kRemovedScan:
177 const base::DictionaryValue& dict, MediaGalleryPrefInfo* out_gallery_info) {
182 MediaGalleryPrefInfo::Type type = MediaGalleryPrefInfo::kInvalidType;
242 const MediaGalleryPrefInfo& gallery) {
320 MediaGalleryPrefInfo::MediaGalleryPrefInfo()
331 MediaGalleryPrefInfo::~MediaGalleryPrefInfo() {}
333 base::FilePath MediaGalleryPrefInfo::AbsolutePath() const {
339 bool MediaGalleryPrefInfo::IsBlackListedType() const {
343 base::string16 MediaGalleryPrefInfo::GetGalleryDisplayName() const {
376 base::string16 MediaGalleryPrefInfo::GetGalleryTooltip() const {
380 base::string16 MediaGalleryPrefInfo::GetGalleryAdditionalDetails() const {
399 bool MediaGalleryPrefInfo::IsGalleryAvailable() const {
497 MediaGalleryPrefInfo::kAutoDetected,
530 MediaGalleryPrefInfo::kAutoDetected,
610 base::FilePath(), MediaGalleryPrefInfo::kAutoDetected,
633 MediaGalleryPrefInfo gallery_info;
662 MediaGalleryPrefInfo::kAutoDetected, info.storage_label(),
669 MediaGalleryPrefInfo* gallery_info) const {
687 *gallery_info = MediaGalleryPrefInfo();
697 const MediaGalleryPrefInfo& gallery = known_galleries_.find(*it)->second;
717 gallery_info->type = MediaGalleryPrefInfo::kInvalidType;
757 MediaGalleryPrefInfo::Type type,
776 const base::FilePath& relative_path, MediaGalleryPrefInfo::Type type,
781 DCHECK(type == MediaGalleryPrefInfo::kUserAdded ||
782 type == MediaGalleryPrefInfo::kAutoDetected ||
783 type == MediaGalleryPrefInfo::kScanResult);
792 const MediaGalleryPrefInfo& existing =
798 MediaGalleryPrefInfo::Type new_type = existing.type;
799 if (type == MediaGalleryPrefInfo::kUserAdded) {
800 if (existing.type == MediaGalleryPrefInfo::kBlackListed) {
801 new_type = MediaGalleryPrefInfo::kAutoDetected;
804 if (existing.type == MediaGalleryPrefInfo::kRemovedScan) {
805 new_type = MediaGalleryPrefInfo::kUserAdded;
830 new_type != MediaGalleryPrefInfo::kRemovedScan &&
831 new_type != MediaGalleryPrefInfo::kBlackListed &&
885 MediaGalleryPrefInfo gallery_info;
917 const base::FilePath& path, MediaGalleryPrefInfo::Type type) {
919 MediaGalleryPrefInfo gallery_info;
964 MediaGalleryPrefInfo::Type type;
966 (type == MediaGalleryPrefInfo::kAutoDetected ||
967 type == MediaGalleryPrefInfo::kScanResult)) {
968 if (type == MediaGalleryPrefInfo::kAutoDetected) {
997 MediaGalleryPrefInfo::kAutoDetected);
1032 if (it->second.type == MediaGalleryPrefInfo::kAutoDetected)
1070 if (gallery_info->second.type == MediaGalleryPrefInfo::kAutoDetected)