Closed Bug 910942 Opened 11 years ago Closed 11 years ago

Don't include unnecessary things in netwerk/.../Dashboard

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: valentin, Assigned: catalinn.iordache)

References

Details

Attachments

(1 file, 2 obsolete files)

Many of the headers included in Dashboard related files are not needed.
Let's forward declare everything we can.

Related: Header dependency graph - https://bug901132.bugzilla.mozilla.org/attachment.cgi?id=785612
Attached patch forwardDeclaration.patch (obsolete) — Splinter Review
This is what I think we can forward declaration. I'm trying to find more. Hope this is a good start and I'm not doing anything wrong
Attachment #799525 - Flags: feedback?(valentin.gosu)
Attached patch forwardDeclarationV2.patch (obsolete) — Splinter Review
Attachment #799525 - Attachment is obsolete: true
Attachment #799525 - Flags: feedback?(valentin.gosu)
Attachment #799809 - Flags: review?(valentin.gosu)
Comment on attachment 799809 [details] [diff] [review]
forwardDeclarationV2.patch

Review of attachment 799809 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me. Adding Patrick as a necko peer needs to sign off on this.
Attachment #799809 - Flags: review?(valentin.gosu)
Attachment #799809 - Flags: review?(mcmanus)
Attachment #799809 - Flags: review+
Comment on attachment 799809 [details] [diff] [review]
forwardDeclarationV2.patch

Review of attachment 799809 [details] [diff] [review]:
-----------------------------------------------------------------

nice - thank you.

::: netwerk/base/src/Dashboard.cpp
@@ +8,5 @@
>  #include "nsCxPusher.h"
> +#include "nsIDNSService.h"
> +#include "nsSocketTransport2.h"
> +#include "nsIThread.h"
> +#include "nsHttp.h"

please keep these alphabetized - assuming things still compile :)

::: netwerk/base/src/Dashboard.h
@@ +10,5 @@
>  #include "nsITimer.h"
>  #include "nsIDNSListener.h"
> +#include "nsIServiceManager.h"
> +#include "mozilla/net/DashboardTypes.h"
> +#include "mozilla/Mutex.h"

again, order them if you can
Attachment #799809 - Flags: review?(mcmanus) → review+
Made changes which were specified in review by Patrick.
Ready for checkin
Attachment #799809 - Attachment is obsolete: true
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/238ff32d423b
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: