Home
last modified time | relevance | path

Searched refs:pref_id (Results 1 – 25 of 33) sorted by relevance

12

/external/chromium_org/chrome/browser/media_galleries/
Dmedia_galleries_permission_controller.cc186 MediaGalleryPrefId pref_id = GetPrefId(iter->first); in GetSectionEntries() local
188 existing == ContainsKey(pref_permitted_galleries_, pref_id)) { in GetSectionEntries()
308 GalleryDialogId gallery_id = GetDialogId(gallery.pref_id); in FileSelected()
331 gallery.pref_id = GetDialogId(gallery.pref_id); in FileSelected()
332 new_galleries_[gallery.pref_id] = Entry(gallery, true); in FileSelected()
378 MediaGalleryPrefId pref_id) { in OnGalleryInfoUpdated() argument
383 pref_galleries.find(pref_id); in OnGalleryInfoUpdated()
401 GalleryDialogId gallery_id = GetDialogId(gallery.pref_id); in InitializePermissions()
403 known_galleries_[gallery_id].pref_info.pref_id = gallery_id; in InitializePermissions()
429 MediaGalleryPrefId pref_id = GetPrefId(iter->first); in SavePermissions() local
[all …]
Dmedia_galleries_scan_result_controller.cc176 MediaGalleryPrefId pref_id, bool selected) { in DidToggleEntry() argument
177 DCHECK(ContainsKey(scan_results_, pref_id)); in DidToggleEntry()
178 ScanResults::iterator entry = scan_results_.find(pref_id); in DidToggleEntry()
183 MediaGalleryPrefId pref_id) { in DidClickOpenFolderViewer() argument
184 ScanResults::const_iterator entry = scan_results_.find(pref_id); in DidClickOpenFolderViewer()
193 MediaGalleryPrefId pref_id) { in DidForgetEntry() argument
195 results_to_remove_.insert(pref_id); in DidForgetEntry()
196 scan_results_.erase(pref_id); in DidForgetEntry()
274 !ContainsKey(permitted, gallery.pref_id) && in UpdateScanResultsFromPreferences()
275 !ContainsKey(ignore_list, gallery.pref_id)) { in UpdateScanResultsFromPreferences()
[all …]
Dmedia_galleries_permission_controller.h100 GalleryDialogId GetDialogId(MediaGalleryPrefId pref_id);
130 MediaGalleryPrefId pref_id) OVERRIDE;
133 MediaGalleryPrefId pref_id) OVERRIDE;
135 MediaGalleryPrefId pref_id) OVERRIDE;
137 MediaGalleryPrefId pref_id) OVERRIDE;
139 MediaGalleryPrefId pref_id) OVERRIDE;
168 GalleryDialogId GetDialogId(MediaGalleryPrefId pref_id);
Dmedia_file_system_registry.cc240 MediaGalleryPrefId pref_id, in MediaFileSystemInfo() argument
247 pref_id(pref_id), in MediaFileSystemInfo()
361 const MediaGalleryPrefId& pref_id = *pref_id_it; in GetMediaFileSystemsForAttachedDevices() local
363 galleries_info.find(pref_id)->second; in GetMediaFileSystemsForAttachedDevices()
369 pref_id_map_.find(pref_id); in GetMediaFileSystemsForAttachedDevices()
380 profile_path_, extension_id_, pref_id); in GetMediaFileSystemsForAttachedDevices()
388 pref_id, in GetMediaFileSystemsForAttachedDevices()
393 pref_id_map_[pref_id] = new_entry; in GetMediaFileSystemsForAttachedDevices()
416 profile_path_, extension_id_, gallery.pref_id); in RegisterAttachedMediaFileSystem()
420 if (ContainsKey(pref_id_map_, gallery.pref_id)) { in RegisterAttachedMediaFileSystem()
[all …]
Dmedia_galleries_preferences.h41 MediaGalleryPrefId pref_id; member
66 MediaGalleryPrefId pref_id; member
145 MediaGalleryPrefId pref_id) {} in OnPermissionAdded() argument
149 MediaGalleryPrefId pref_id) {} in OnPermissionRemoved() argument
152 MediaGalleryPrefId pref_id) {} in OnGalleryAdded() argument
155 MediaGalleryPrefId pref_id) {} in OnGalleryRemoved() argument
158 MediaGalleryPrefId pref_id) {} in OnGalleryInfoUpdated() argument
248 MediaGalleryPrefId pref_id,
Dmedia_galleries_preferences.cc178 MediaGalleryPrefId pref_id; in PopulateGalleryPrefInfoFromDictionary() local
194 if (!GetPrefId(dict, &pref_id) || in PopulateGalleryPrefInfoFromDictionary()
224 out_gallery_info->pref_id = pref_id; in PopulateGalleryPrefInfoFromDictionary()
245 base::Uint64ToString(gallery.pref_id)); in CreateGalleryPrefInfoDictionary()
293 base::StringToUint64(string_id, &out_permission->pref_id) && in GetMediaGalleryPermissionFromDictionary()
321 : pref_id(kInvalidMediaGalleryPrefId), in MediaGalleryPrefInfo()
567 MediaGalleryPrefId pref_id; in UpdateDeviceIDForSingletonType() local
568 if (GetPrefId(*dict, &pref_id)) { in UpdateDeviceIDForSingletonType()
571 OnGalleryInfoUpdated(this, pref_id)); in UpdateDeviceIDForSingletonType()
637 known_galleries_[gallery_info.pref_id] = gallery_info; in InitFromPrefs()
[all …]
Dmedia_file_system_registry.h49 MediaGalleryPrefId pref_id,
59 MediaGalleryPrefId pref_id; member
89 MediaGalleryPrefId pref_id,
118 MediaGalleryPrefId pref_id) OVERRIDE;
120 MediaGalleryPrefId pref_id) OVERRIDE;
Dmedia_gallery_context_menu.h16 typedef base::Callback<void(MediaGalleryPrefId pref_id)>
22 void set_pref_id(MediaGalleryPrefId pref_id) { in set_pref_id() argument
23 pref_id_ = pref_id; in set_pref_id()
Dmedia_galleries_scan_result_controller.h120 MediaGalleryPrefId pref_id) OVERRIDE;
123 MediaGalleryPrefId pref_id) OVERRIDE;
125 MediaGalleryPrefId pref_id) OVERRIDE;
127 MediaGalleryPrefId pref_id) OVERRIDE;
129 MediaGalleryPrefId pref_id) OVERRIDE;
Dmedia_galleries_scan_result_controller_unittest.cc348 EXPECT_EQ(selected, results[0].pref_info.pref_id); in TEST_F()
350 EXPECT_EQ(selected_update, results[1].pref_info.pref_id); in TEST_F()
354 EXPECT_EQ(unselected, results[2].pref_info.pref_id); in TEST_F()
356 EXPECT_EQ(unselected_update, results[3].pref_info.pref_id); in TEST_F()
418 EXPECT_EQ(first, results[0].pref_info.pref_id); in TEST_F()
419 EXPECT_EQ(second, results[1].pref_info.pref_id); in TEST_F()
420 EXPECT_EQ(third, results[2].pref_info.pref_id); in TEST_F()
421 EXPECT_EQ(fourth, results[3].pref_info.pref_id); in TEST_F()
422 EXPECT_EQ(fifth, results[4].pref_info.pref_id); in TEST_F()
Dmedia_scan_manager.cc42 : pref_id(kInvalidMediaGalleryPrefId), in LocationInfo()
44 LocationInfo(MediaGalleryPrefId pref_id, MediaGalleryPrefInfo::Type type, in LocationInfo()
46 : pref_id(pref_id), type(type), path(path) {} in LocationInfo()
52 return pref_id > rhs.pref_id; in operator <()
59 MediaGalleryPrefId pref_id; member
87 all_locations.push_back(LocationInfo(it->second.pref_id, it->second.type, in PartitionChildScanResults()
100 current.pref_id == kInvalidMediaGalleryPrefId && in PartitionChildScanResults()
Dmedia_galleries_permission_controller_unittest.cc114 GalleryDialogId GetDialogIdFromPrefId(MediaGalleryPrefId pref_id);
174 MediaGalleryPrefId pref_id) { in GetDialogIdFromPrefId() argument
175 return controller_->GetDialogId(pref_id); in GetDialogIdFromPrefId()
221 EXPECT_EQ(forget_preserves_pref_id, retrieved_info.pref_id == forgotten1); in TestForgottenType()
256 gallery.pref_id = 1; in TEST_F()
Dmedia_galleries_permissions_unittest.cc25 permission.pref_id = gallery; in AddGalleryPermission()
131 EXPECT_EQ(test_data[i].expectation->at(permission_entry).pref_id, in Verify()
132 actual[permission_entry].pref_id); in Verify()
/external/chromium_org/chrome/browser/media_galleries/fileapi/
Dmedia_file_system_backend.cc62 MediaGalleryPrefId pref_id, in OnPreferencesInit() argument
66 registry->RegisterMediaFileSystemForExtension(rvh, extension, pref_id, in OnPreferencesInit()
92 MediaGalleryPrefId pref_id = kInvalidMediaGalleryPrefId; in AttemptAutoMountOnUIThread() local
97 &pref_id) && in AttemptAutoMountOnUIThread()
98 pref_id != kInvalidMediaGalleryPrefId) { in AttemptAutoMountOnUIThread()
103 base::Bind(&OnPreferencesInit, rvh, extension, pref_id, callback)); in AttemptAutoMountOnUIThread()
167 MediaGalleryPrefId pref_id) { in ConstructMountName() argument
173 if (pref_id != kInvalidMediaGalleryPrefId) in ConstructMountName()
174 name.append(base::Uint64ToString(pref_id)); in ConstructMountName()
/external/chromium_org/components/translate/core/browser/
Dtranslate_prefs.h125 bool IsValueBlacklisted(const char* pref_id, const std::string& value) const;
126 void BlacklistValue(const char* pref_id, const std::string& value);
127 void RemoveValueFromBlacklist(const char* pref_id, const std::string& value);
130 bool IsListEmpty(const char* pref_id) const;
131 bool IsDictionaryEmpty(const char* pref_id) const;
Dtranslate_prefs.cc501 bool TranslatePrefs::IsValueBlacklisted(const char* pref_id, in IsValueBlacklisted() argument
503 const base::ListValue* blacklist = prefs_->GetList(pref_id); in IsValueBlacklisted()
507 void TranslatePrefs::BlacklistValue(const char* pref_id, in BlacklistValue() argument
510 ListPrefUpdate update(prefs_, pref_id); in BlacklistValue()
520 void TranslatePrefs::RemoveValueFromBlacklist(const char* pref_id, in RemoveValueFromBlacklist() argument
522 ListPrefUpdate update(prefs_, pref_id); in RemoveValueFromBlacklist()
532 bool TranslatePrefs::IsListEmpty(const char* pref_id) const { in IsListEmpty()
533 const base::ListValue* blacklist = prefs_->GetList(pref_id); in IsListEmpty()
537 bool TranslatePrefs::IsDictionaryEmpty(const char* pref_id) const { in IsDictionaryEmpty()
538 const base::DictionaryValue* dict = prefs_->GetDictionary(pref_id); in IsDictionaryEmpty()
/external/chromium_org/chrome/browser/extensions/api/media_galleries_private/
Dmedia_galleries_private_api.cc60 MediaGalleryPrefId pref_id; in GetGalleryFilePathAndId() local
61 if (!base::StringToUint64(gallery_id, &pref_id)) in GetGalleryFilePathAndId()
66 preferences->LookUpGalleryPathForExtension(pref_id, extension, false)); in GetGalleryFilePathAndId()
69 *gallery_pref_id = pref_id; in GetGalleryFilePathAndId()
182 const std::string& pref_id) { in OnPreferencesInit() argument
185 if (!GetGalleryFilePathAndId(pref_id, in OnPreferencesInit()
260 const std::string& pref_id) { in OnPreferencesInit() argument
263 if (!GetGalleryFilePathAndId(pref_id, in OnPreferencesInit()
Dmedia_galleries_private_api.h94 void OnPreferencesInit(const std::string& pref_id);
114 void OnPreferencesInit(const std::string& pref_id);
/external/chromium_org/chrome/browser/ui/cocoa/extensions/
Dmedia_gallery_list_entry_view.h18 virtual void OnCheckboxToggled(MediaGalleryPrefId pref_id, bool checked) {} in OnCheckboxToggled() argument
19 virtual void OnFolderViewerClicked(MediaGalleryPrefId pref_id) {} in OnFolderViewerClicked() argument
20 virtual ui::MenuModel* GetContextMenu(MediaGalleryPrefId pref_id);
Dmedia_galleries_dialog_cocoa.h52 virtual void OnCheckboxToggled(MediaGalleryPrefId pref_id,
55 virtual ui::MenuModel* GetContextMenu(MediaGalleryPrefId pref_id) OVERRIDE;
Dmedia_galleries_dialog_cocoa_unittest.mm40 MediaGalleryPrefInfo MakePrefInfoForTesting(MediaGalleryPrefId pref_id) {
42 gallery.pref_id = pref_id;
45 base::Int64ToString(pref_id));
Dmedia_galleries_dialog_cocoa.mm262 void MediaGalleriesDialogCocoa::OnCheckboxToggled(MediaGalleryPrefId pref_id,
264 controller_->DidToggleEntry(pref_id, checked);
276 MediaGalleryPrefId pref_id) {
277 return controller_->GetContextMenu(pref_id);
/external/chromium_org/chrome/browser/extensions/api/media_galleries/
Dmedia_galleries_api.cc173 base::Uint64ToString(filesystems[i].pref_id)); in ConstructFileSystemList()
538 metadata.gallery_id = base::Uint64ToString(gallery.pref_id); in OnGetGalleries()
608 MediaGalleryPrefId pref_id = in OnDirectorySelected() local
611 preferences->SetGalleryPermissionForExtension(*GetExtension(), pref_id, true); in OnDirectorySelected()
616 pref_id)); in OnDirectorySelected()
620 MediaGalleryPrefId pref_id, in ReturnGalleriesAndId() argument
630 if (pref_id != kInvalidMediaGalleryPrefId) { in ReturnGalleriesAndId()
632 if (filesystems[i].pref_id == pref_id) { in ReturnGalleriesAndId()
668 MediaGalleryPrefId pref_id; in RunAsync() local
669 if (!base::StringToUint64(params->gallery_id, &pref_id)) { in RunAsync()
[all …]
Dmedia_galleries_apitest.cc204 void MakeSingleFakeGallery(MediaGalleryPrefId* pref_id) { in MakeSingleFakeGallery() argument
223 if (pref_id) in MakeSingleFakeGallery()
224 *pref_id = id; in MakeSingleFakeGallery()
650 MediaGalleryPrefId pref_id; in IN_PROC_BROWSER_TEST_F() local
651 MakeSingleFakeGallery(&pref_id); in IN_PROC_BROWSER_TEST_F()
654 custom_args.AppendInteger(base::checked_cast<int>(pref_id)); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/media_galleries/win/
Dmtp_device_delegate_impl_win_unittest.cc47 ASSERT_FALSE(ContainsKey(*results, file_systems[i].pref_id)); in GetGalleryInfoCallback()
48 (*results)[file_systems[i].pref_id] = file_systems[i]; in GetGalleryInfoCallback()
148 EXPECT_NE(0UL, info.pref_id); in CheckGalleryInfo()

12