Closed
Bug 1285103
Opened 8 years ago
Closed 8 years ago
Refactor TableUpdate to support V2 and V4
Categories
(Toolkit :: Safe Browsing, defect)
Toolkit
Safe Browsing
Tracking
()
RESOLVED
DUPLICATE
of bug 1284204
People
(Reporter: hchang, Assigned: hchang)
References
Details
(Whiteboard: #sbv4-m1)
Attachments
(1 file)
TableUpdate is a structure that carries the info to update the table. Even though the update instruction is essentially different between v2 and v4, it's still convenient to make TableUpdateV2 and TableUpdateV4 extend from the same base class. Besides, since RTTI is not allowed, we use a tag to implement a lightweight downcasting.
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → hchang
Assignee | ||
Updated•8 years ago
|
Blocks: safebrowsingv4
Assignee | ||
Comment 1•8 years ago
|
||
Assignee | ||
Comment 2•8 years ago
|
||
Comment on attachment 8768649 [details] [diff] [review] 0001-Bug-1285103-Refactor-TableUpdate-to-support-v2-and-v.patch Hi Francois, The main purpose of this patch is to make TableUpdate as abstract as possible so that it can be passed around functions for updating. To be honest, it's a little over-designed since there's few common behavior for TableUpdate v2 and v4. However, this tiny change makes the least intermediary code change. (For example, TableUpdate will be stored in somewhere and be passed to many other objects. If we don't have this abstract TableUpdate class, we might have to duplicate every single function for propagating TableUpdate.) The actual TableUpdateV4 specific interface is not fully designed yet. But with this patch, I can start working on "generating" TableUpdateV4 and Dimi can start working on "applying TableUpdateV4". Both of us can gradually check in code based on this patch with no dependencies. I am very glad to discuss this bug with you on irc if I haven't made everything clear enough. Thanks!
Attachment #8768649 -
Flags: review?(francois)
Comment 3•8 years ago
|
||
Comment on attachment 8768649 [details] [diff] [review] 0001-Bug-1285103-Refactor-TableUpdate-to-support-v2-and-v.patch Review of attachment 8768649 [details] [diff] [review]: ----------------------------------------------------------------- Should this be moved into and reviewed alongside another bug?
Attachment #8768649 -
Flags: review?(francois)
Assignee | ||
Updated•8 years ago
|
Whiteboard: #sbv4-m1
Comment 4•8 years ago
|
||
The component is self-explained. Not necessary to identify SafeBrowsing in the title.
Summary: [SafeBrowsing] Refactor TableUpdate to support V2 and V4 → Refactor TableUpdate to support V2 and V4
Updated•8 years ago
|
No longer blocks: safebrowsingv4
Assignee | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•