RESOLVED INVALID 147833
Implement MediaDeviceIdentifierStorageDirectory
https://bugs.webkit.org/show_bug.cgi?id=147833
Summary Implement MediaDeviceIdentifierStorageDirectory
Matthew Daiter
Reported 2015-08-10 11:41:41 PDT
Needed to create a legacy storage directory for placing MediaDeviceIdentifierKeys
Attachments
Patch (10.98 KB, patch)
2015-08-10 12:05 PDT, Matthew Daiter
no flags
Patch (14.11 KB, patch)
2015-08-10 13:34 PDT, Matthew Daiter
no flags
Patch (14.74 KB, patch)
2015-08-10 15:46 PDT, Matthew Daiter
no flags
Rebased patch (13.81 KB, patch)
2015-11-09 09:37 PST, Eric Carlson
no flags
Updated patch (14.99 KB, patch)
2015-11-09 11:11 PST, Eric Carlson
no flags
Updated patch (15.02 KB, patch)
2015-11-09 12:53 PST, Eric Carlson
no flags
Matthew Daiter
Comment 1 2015-08-10 12:05:03 PDT
Matthew Daiter
Comment 2 2015-08-10 13:34:47 PDT
Matthew Daiter
Comment 3 2015-08-10 15:46:57 PDT
Eric Carlson
Comment 4 2015-11-09 09:37:14 PST
Created attachment 265063 [details] Rebased patch
Radar WebKit Bug Importer
Comment 5 2015-11-09 09:43:50 PST
Darin Adler
Comment 6 2015-11-09 09:45:40 PST
Comment on attachment 265063 [details] Rebased patch View in context: https://bugs.webkit.org/attachment.cgi?id=265063&action=review > Source/WebKit2/UIProcess/API/APIProcessPoolConfiguration.cpp:57 > - > + Please don’t make this whitespace change. > Source/WebKit2/UIProcess/API/APIProcessPoolConfiguration.h:89 > + const WTF::String& mediaDeviceIdentifierStorageDirectory() const { return m_mediaDeviceIdentifierStorageDirectory; } > + void setMediaDeviceIdentifierStorageDirectory(const WTF::String& mediaDeviceIdentifierStorageDirectory) { m_mediaDeviceIdentifierStorageDirectory = mediaDeviceIdentifierStorageDirectory; } Not sure why this file calls it WTF::String instead of String. > Source/WebKit2/UIProcess/API/APIWebsiteDataStore.cpp:116 > + // FIXME: Implement Normally it’s a period at the end of each of these. I don’t understand the status of these functions. Do these really need to be implemented? Or should this be oure virtual instead. Seems a little bit mysterious what the plan is for non-Cocoa, non-GTK platforms. I don’t think our platform independence strategy here is very good.
Eric Carlson
Comment 7 2015-11-09 10:36:08 PST
Comment on attachment 265063 [details] Rebased patch View in context: https://bugs.webkit.org/attachment.cgi?id=265063&action=review >> Source/WebKit2/UIProcess/API/APIProcessPoolConfiguration.cpp:57 >> + > > Please don’t make this whitespace change. Fixed. >> Source/WebKit2/UIProcess/API/APIProcessPoolConfiguration.h:89 >> + void setMediaDeviceIdentifierStorageDirectory(const WTF::String& mediaDeviceIdentifierStorageDirectory) { m_mediaDeviceIdentifierStorageDirectory = mediaDeviceIdentifierStorageDirectory; } > > Not sure why this file calls it WTF::String instead of String. A "String" in this file is an "API::String", which can't be automatically converted to WTF::String. All of the existing methods that return a directory path return "const WTF::String&". >> Source/WebKit2/UIProcess/API/APIWebsiteDataStore.cpp:116 >> + // FIXME: Implement > > Normally it’s a period at the end of each of these. > > I don’t understand the status of these functions. Do these really need to be implemented? Or should this be oure virtual instead. Seems a little bit mysterious what the plan is for non-Cocoa, non-GTK platforms. I don’t think our platform independence strategy here is very good. All of the methods in this class that return Strings (directories) are static (defaultApplicationCacheDirectory, defaultNetworkCacheDirectory, etc). I don't know why it is done this way, but I will talk to Anders.
Eric Carlson
Comment 8 2015-11-09 11:11:48 PST
Created attachment 265075 [details] Updated patch
Eric Carlson
Comment 9 2015-11-09 12:53:29 PST
Created attachment 265083 [details] Updated patch
Brent Fulgham
Comment 10 2016-03-10 10:16:05 PST
Comment on attachment 265083 [details] Updated patch View in context: https://bugs.webkit.org/attachment.cgi?id=265083&action=review r=me > Source/WebKit2/UIProcess/API/APIWebsiteDataStore.cpp:116 > + // FIXME: Implement notImplemented()?
Eric Carlson
Comment 11 2016-03-10 11:34:25 PST
Comment on attachment 265083 [details] Updated patch This is no longer needed.
Note You need to log in before you can comment on or make changes to this bug.