/external/chromium_org/chrome/browser/media_galleries/ |
H A D | gallery_watch_manager_observer.h | 17 MediaGalleryPrefId gallery_id) = 0; 22 MediaGalleryPrefId gallery_id) = 0;
|
H A D | gallery_watch_manager.cc | 128 MediaGalleryPrefId gallery_id) 131 gallery_id(gallery_id) { 136 extension_id < other.extension_id || gallery_id < other.gallery_id; 194 MediaGalleryPrefId gallery_id, 200 WatchOwner owner(browser_context, extension->id(), gallery_id); 210 if (!ContainsKey(preferences->known_galleries(), gallery_id)) { 217 if (!ContainsKey(permitted, gallery_id)) { 223 preferences->known_galleries().find(gallery_id) 126 WatchOwner(BrowserContext* browser_context, const std::string& extension_id, MediaGalleryPrefId gallery_id) argument 192 AddWatch(BrowserContext* browser_context, const extensions::Extension* extension, MediaGalleryPrefId gallery_id, const ResultCallback& callback) argument 257 RemoveWatch(BrowserContext* browser_context, const std::string& extension_id, MediaGalleryPrefId gallery_id) argument [all...] |
H A D | gallery_watch_manager.h | 60 // Add a watch for |gallery_id|. 63 MediaGalleryPrefId gallery_id, 66 // Remove the watch for |gallery_id|. It is valid to call this method on 70 MediaGalleryPrefId gallery_id); 87 MediaGalleryPrefId gallery_id); 91 MediaGalleryPrefId gallery_id; member in struct:GalleryWatchManager::WatchOwner
|
H A D | media_galleries_permission_controller.cc | 229 GalleryDialogId gallery_id, bool selected) { 231 GalleryPermissionsMap::iterator iter = known_galleries_.find(gallery_id); 237 toggled_galleries_[gallery_id] = selected; 241 iter = new_galleries_.find(gallery_id); 251 GalleryDialogId gallery_id) { 256 GalleryDialogId gallery_id) { 258 if (!new_galleries_.erase(gallery_id)) { 259 DCHECK(ContainsKey(known_galleries_, gallery_id)); 260 forgotten_galleries_.insert(gallery_id); 308 GalleryDialogId gallery_id local 228 DidToggleEntry( GalleryDialogId gallery_id, bool selected) argument 250 DidClickOpenFolderViewer( GalleryDialogId gallery_id) argument 255 DidForgetEntry( GalleryDialogId gallery_id) argument 401 GalleryDialogId gallery_id = GetDialogId(gallery.pref_id); local 411 GalleryDialogId gallery_id = GetDialogId(*iter); local 504 GetContextMenu( GalleryDialogId gallery_id) argument [all...] |
H A D | media_galleries_permission_controller.h | 67 virtual void DidToggleEntry(GalleryDialogId gallery_id, 69 virtual void DidClickOpenFolderViewer(GalleryDialogId gallery_id) OVERRIDE; 70 virtual void DidForgetEntry(GalleryDialogId gallery_id) OVERRIDE; 73 virtual ui::MenuModel* GetContextMenu(GalleryDialogId gallery_id) OVERRIDE;
|
H A D | media_galleries_preferences.h | 215 // |gallery_id|. Returns an empty file path if the |gallery_id| is invalid. 223 MediaGalleryPrefId gallery_id, 349 // Sets permission for the media galleries identified by |gallery_id| for the 352 MediaGalleryPrefId gallery_id, 356 // |gallery_id| for the extension in the given |prefs|. 359 MediaGalleryPrefId gallery_id); 367 // specified by |gallery_id|. 368 void RemoveGalleryPermissionsFromPrefs(MediaGalleryPrefId gallery_id);
|
H A D | gallery_watch_manager_unittest.cc | 130 void AddAndConfirmWatch(MediaGalleryPrefId gallery_id) { argument 134 gallery_id, local 152 MediaGalleryPrefId gallery_id) OVERRIDE { 158 MediaGalleryPrefId gallery_id) OVERRIDE {
|
H A D | media_galleries_preferences.cc | 830 MediaGalleryPrefId gallery_id, 836 !ContainsKey(GalleriesForExtension(*extension), gallery_id)) 840 known_galleries_.find(gallery_id); 1341 MediaGalleryPrefId gallery_id, 1360 if (perm.pref_id == gallery_id) { 1372 dict->SetString(kMediaGalleryIdKey, base::Uint64ToString(gallery_id)); 1380 MediaGalleryPrefId gallery_id) { 1397 if (perm.pref_id == gallery_id) { 1432 MediaGalleryPrefId gallery_id) { 1446 UnsetGalleryPermissionInPrefs(iter.key(), gallery_id); 829 LookUpGalleryPathForExtension( MediaGalleryPrefId gallery_id, const extensions::Extension* extension, bool include_unpermitted_galleries) argument 1339 SetGalleryPermissionInPrefs( const std::string& extension_id, MediaGalleryPrefId gallery_id, bool has_access) argument 1378 UnsetGalleryPermissionInPrefs( const std::string& extension_id, MediaGalleryPrefId gallery_id) argument 1431 RemoveGalleryPermissionsFromPrefs( MediaGalleryPrefId gallery_id) argument [all...] |
/external/chromium_org/chrome/browser/extensions/api/media_galleries_private/ |
H A D | gallery_watch_state_tracker.cc | 44 MediaGalleryPrefId gallery_id; local 45 if (base::StringToUint64(gallery_id_str, &gallery_id)) 46 gallery_ids.insert(gallery_id); 104 MediaGalleryPrefId gallery_id) { 107 if (HasGalleryWatchInfo(extension_id, gallery_id, false)) 108 SetupGalleryWatch(extension_id, gallery_id, preferences); 114 MediaGalleryPrefId gallery_id) { 117 if (HasGalleryWatchInfo(extension_id, gallery_id, true)) 118 RemoveGalleryWatch(extension_id, gallery_id, preferences); 122 MediaGalleryPrefId gallery_id) { 101 OnPermissionAdded( MediaGalleriesPreferences* preferences, const std::string& extension_id, MediaGalleryPrefId gallery_id) argument 111 OnPermissionRemoved( MediaGalleriesPreferences* preferences, const std::string& extension_id, MediaGalleryPrefId gallery_id) argument 121 OnGalleryRemoved(MediaGalleriesPreferences* pref, MediaGalleryPrefId gallery_id) argument 164 OnGalleryWatchAdded( const std::string& extension_id, MediaGalleryPrefId gallery_id) argument 174 OnGalleryWatchRemoved( const std::string& extension_id, MediaGalleryPrefId gallery_id) argument 253 SetupGalleryWatch( const std::string& extension_id, MediaGalleryPrefId gallery_id, MediaGalleriesPreferences* preferences) argument 282 RemoveGalleryWatch( const std::string& extension_id, MediaGalleryPrefId gallery_id, MediaGalleriesPreferences* preferences) argument 302 HasGalleryWatchInfo( const std::string& extension_id, MediaGalleryPrefId gallery_id, bool has_active_watcher) argument 313 HandleSetupGalleryWatchResponse( const std::string& extension_id, MediaGalleryPrefId gallery_id, bool success) argument 323 AddWatchedGalleryIdInfoForExtension( const std::string& extension_id, MediaGalleryPrefId gallery_id) argument [all...] |
H A D | gallery_watch_state_tracker.h | 49 MediaGalleryPrefId gallery_id); 54 MediaGalleryPrefId gallery_id); 61 MediaGalleryPrefId gallery_id) OVERRIDE; 65 MediaGalleryPrefId gallery_id) OVERRIDE; 68 MediaGalleryPrefId gallery_id) OVERRIDE; 109 MediaGalleryPrefId gallery_id, 115 MediaGalleryPrefId gallery_id, 121 MediaGalleryPrefId gallery_id, 128 MediaGalleryPrefId gallery_id, 131 // Adds the watched |gallery_id| i [all...] |
H A D | media_galleries_private_event_router.h | 35 void OnGalleryChanged(MediaGalleryPrefId gallery_id,
|
H A D | media_galleries_private_event_router.cc | 33 MediaGalleryPrefId gallery_id, 44 details.gallery_id = gallery_id; 32 OnGalleryChanged( MediaGalleryPrefId gallery_id, const std::set<std::string>& extension_ids) argument
|
H A D | gallery_watch_manager.h | 39 // |gallery_id| specifies the gallery identifier. 44 MediaGalleryPrefId gallery_id, 69 // the |extension_id|. |gallery_id| specifies the gallery identifier and 73 MediaGalleryPrefId gallery_id,
|
H A D | media_galleries_private_api.cc | 53 // |gallery_id| is valid and returns false otherwise. 54 bool GetGalleryFilePathAndId(const std::string& gallery_id, argument 60 if (!base::StringToUint64(gallery_id, &pref_id)) 175 params->gallery_id)); 216 MediaGalleryPrefId gallery_id, 220 result.gallery_id = base::Uint64ToString(gallery_id); 229 state_tracker->OnGalleryWatchAdded(extension_id(), gallery_id); local 258 params->gallery_id)); 215 HandleResponse( MediaGalleryPrefId gallery_id, bool success) argument
|
H A D | gallery_watch_manager.cc | 39 MediaGalleryPrefId gallery_id, 43 event_router->OnGalleryChanged(gallery_id, extension_ids); 63 MediaGalleryPrefId gallery_id, 129 MediaGalleryPrefId gallery_id, 134 gallery_id_(gallery_id), 281 MediaGalleryPrefId gallery_id, 287 gallery_id, watch_path, extension_id, event_router); 320 MediaGalleryPrefId gallery_id, 335 event_router, gallery_id, watch_path, extension_id, 37 SendGalleryChangedEventOnUIThread( base::WeakPtr<MediaGalleriesPrivateEventRouter> event_router, MediaGalleryPrefId gallery_id, const std::set<std::string>& extension_ids) argument 127 GalleryFilePathWatcher( base::WeakPtr<MediaGalleriesPrivateEventRouter> event_router, MediaGalleryPrefId gallery_id, const base::FilePath& path, const std::string& extension_id, const base::Closure& on_destroyed_callback) argument 279 SetupGalleryWatch( void* profile_id, MediaGalleryPrefId gallery_id, const base::FilePath& watch_path, const std::string& extension_id, base::WeakPtr<MediaGalleriesPrivateEventRouter> event_router) argument 319 StartGalleryWatch( MediaGalleryPrefId gallery_id, const base::FilePath& watch_path, const std::string& extension_id, base::WeakPtr<MediaGalleriesPrivateEventRouter> event_router) argument
|
H A D | media_galleries_private_api.h | 97 void HandleResponse(MediaGalleryPrefId gallery_id, bool success);
|
/external/chromium_org/chrome/browser/extensions/api/media_galleries/ |
H A D | media_galleries_api.cc | 130 // |gallery_id| is valid and returns false otherwise. 131 bool GetGalleryFilePathAndId(const std::string& gallery_id, argument 137 if (!base::StringToUint64(gallery_id, &pref_id)) 425 const std::string& extension_id, MediaGalleryPrefId gallery_id) { 428 details.gallery_id = base::Uint64ToString(gallery_id); 436 const std::string& extension_id, MediaGalleryPrefId gallery_id) { 439 details.gallery_id = gallery_id; 619 metadata.gallery_id 424 OnGalleryChanged( const std::string& extension_id, MediaGalleryPrefId gallery_id) argument 435 OnGalleryWatchDropped( const std::string& extension_id, MediaGalleryPrefId gallery_id) argument 1143 HandleResponse( MediaGalleryPrefId gallery_id, const std::string& error) argument [all...] |
H A D | media_galleries_api.h | 91 MediaGalleryPrefId gallery_id) OVERRIDE; 93 MediaGalleryPrefId gallery_id) OVERRIDE; 315 void HandleResponse(MediaGalleryPrefId gallery_id, const std::string& error);
|