IDB: Rename FileInfo/FileManager classes
Categories
(Core :: Storage: IndexedDB, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox91 | --- | fixed |
People
(Reporter: janv, Assigned: janv)
Details
Attachments
(6 files)
|
Bug 1711663 - Rename FileInfo to DatabaseFileInfo and TestFileInfo to SimpleFileInfo; r=#dom-storage
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
I want to add a new functionality to FileManager but I always keep forgetting how the new FileInfo/FileManager template classes and non-template classes work together. I think we should do some renaming to make it a bit easier to understand how they are connected.
| Assignee | ||
Comment 1•5 years ago
•
|
||
Currently we have these classes:
template <FileManager> FileInfoT
template <FileManager> FileManagerBase
FileInfo
FileManager
TestFileManager
and these files:
FileInfo.cpp
FileInfoFwd.h
FileInfoT.h
FileInfoTImpl.h
FileManager.h
FileManagerBase.h
TestFileInfo.cpp
I think these classes would be easier to remember and understand:
template FileInfo
template FileInfoManager
DatabaseFileInfo
DatabaseFileManager
SimpleFileInfo
SimpleFileManager
and these files:
FileInfo.h
FileInfoImpl.h
FileInfoManager.h
DatabaseFileInfo.cpp
DatabaseFileInfo.h
DatabaseFileInfoFwd.h
DatabaseFileManager.h
TestSimpleFileInfo.cpp
| Assignee | ||
Comment 2•5 years ago
|
||
Depends on D115153
| Assignee | ||
Comment 3•5 years ago
|
||
Depends on D115356
| Assignee | ||
Comment 4•5 years ago
|
||
Depends on D115357
| Assignee | ||
Comment 5•5 years ago
|
||
Depends on D115358
| Assignee | ||
Comment 6•5 years ago
|
||
Depends on D115359
| Assignee | ||
Comment 7•5 years ago
|
||
Depends on D115360
| Assignee | ||
Comment 8•5 years ago
•
|
||
Method arguments, member variables and method names were not renamed (on purpose), for example:
aFileInfo wasn't renamed to aDatabaseFileInfo or aSimpleFileInfo
mFileInfo wasn't renamed to mDatabaseFileInfo or mSimpleFileInfo
FileInfoPtr wasn't renamed to DatabaseFileInfoPtr or SimpleFileInfoPtr
Here's an explanation for that:
We know that there are no other FileInfo and FileManager based classes in ActorsParent.cpp, only DatabaseFileInfo and DatabaseFileManager, so we don't need to prefix method arguments, member variables and method names with Database. There are other similar types for which we use similar logic for naming like here or here
| Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
| Assignee | ||
Updated•5 years ago
|
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
| Assignee | ||
Updated•5 years ago
|
Comment 15•5 years ago
|
||
| bugherder | ||
Comment 16•5 years ago
|
||
This change from comment 9 also landed on central (only the push from comment 10 was backed out):
https://hg.mozilla.org/mozilla-central/rev/dcb9ea543b7c
Comment 17•5 years ago
|
||
| bugherder | ||
Description
•