Closed
Bug 914826
Opened 11 years ago
Closed 11 years ago
clean up generated protocol headers a little bit
Categories
(Core :: IPC, defect)
Core
IPC
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: froydnj, Unassigned)
Details
Attachments
(6 files, 2 obsolete files)
800 bytes,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
2.33 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
1.52 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
737 bytes,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
2.54 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
10.26 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Comment 1•11 years ago
|
||
COMPILE_ASSERT was chromium's static_assert. Use the new hotness.
Attachment #802566 -
Flags: review?(ehsan)
Reporter | ||
Comment 2•11 years ago
|
||
We're going to add includes for only cpp files in later patches.
Attachment #802568 -
Flags: review?(bent.mozilla)
Reporter | ||
Comment 3•11 years ago
|
||
No need to include nsIFile in headers just so we can declare things for parent
processes. The condition is copied from the condition guarding the declaration
of GetMinidump further down; I wanted to factor out the condition, but the
latter condition also guards other things, so I left as-is.
Attachment #802570 -
Flags: review?(bent.mozilla)
Reporter | ||
Comment 4•11 years ago
|
||
These files aren't actually needed in the generated headers; let's just include
them in the source files.
Attachment #802572 -
Flags: review?(bent.mozilla)
Reporter | ||
Comment 5•11 years ago
|
||
Various bits of Gecko bootleg do_CreateInstance and do_GetService from the ipdl headers.
Make them stop so we can sanely refactor the generated headers.
I see that this patch doesn't fully compile on x86-64 Linux, though it does on Android.
I'd like to request a blanket rs+ on similar changes to these that are required to fix
up compile errors I discover when pushing this to try or similar.
Reporter | ||
Comment 6•11 years ago
|
||
We don't use anything from these headers in the generated headers.
Attachment #802574 -
Flags: review?(bent.mozilla)
Reporter | ||
Comment 7•11 years ago
|
||
Comment on attachment 802573 [details] [diff] [review]
part 5 - fix source files that were bootlegging XPCOM do_* functions via generated ipdl headers
Please see patch comment or comment 5.
Attachment #802573 -
Flags: review?(ehsan)
Comment 8•11 years ago
|
||
Comment on attachment 802566 [details] [diff] [review]
part 1 - use static_assert instead of COMPILE_ASSERT in IPCMessageStart.h
Review of attachment 802566 [details] [diff] [review]:
-----------------------------------------------------------------
This is hot stuff! ;-)
Attachment #802566 -
Flags: review?(ehsan) → review+
Comment 9•11 years ago
|
||
Comment on attachment 802573 [details] [diff] [review]
part 5 - fix source files that were bootlegging XPCOM do_* functions via generated ipdl headers
Review of attachment 802573 [details] [diff] [review]:
-----------------------------------------------------------------
r+rs=me
Attachment #802573 -
Flags: review?(ehsan) → review+
Updated•11 years ago
|
Attachment #802568 -
Flags: review?(bent.mozilla) → review+
Updated•11 years ago
|
Attachment #802570 -
Flags: review?(bent.mozilla) → review+
Comment 10•11 years ago
|
||
Comment on attachment 802572 [details] [diff] [review]
part 4 - provide for cpp-only include files, starting with nsIFile.h and GeckoProfiler.h
Review of attachment 802572 [details] [diff] [review]:
-----------------------------------------------------------------
::: ipc/ipdl/ipdl/lower.py
@@ +2575,4 @@
> cf.addthings((
> [ Whitespace.NL ]
> + + cppheaders
> + + [ Whitespace.NL ]
Please #include these at the very end of the #include list, to make sure that they won't declare names used by the other headers later in the list.
Attachment #802572 -
Flags: review?(bent.mozilla) → review-
Comment 11•11 years ago
|
||
Comment on attachment 802574 [details] [diff] [review]
part 6 - don't include basictypes.h or nscore.h in ipdl headers
Review of attachment 802574 [details] [diff] [review]:
-----------------------------------------------------------------
I've seen basictypes.h provide PrintfIncludeMacros.h stuff which is sometimes used in b2g specific code. r=me if this builds. :-)
Attachment #802574 -
Flags: review?(bent.mozilla) → review+
Reporter | ||
Comment 12•11 years ago
|
||
OK, let's put them at the end, then!
Attachment #802572 -
Attachment is obsolete: true
Attachment #803682 -
Flags: review?(ehsan)
Reporter | ||
Comment 13•11 years ago
|
||
This seems to compile on Try.
Attachment #802573 -
Attachment is obsolete: true
Attachment #803683 -
Flags: review+
Reporter | ||
Comment 14•11 years ago
|
||
(In reply to :Ehsan Akhgari (needinfo? me!) from comment #11)
> I've seen basictypes.h provide PrintfIncludeMacros.h stuff which is
> sometimes used in b2g specific code. r=me if this builds. :-)
Should start using whatever's in mfbt...but it builds:
https://tbpl.mozilla.org/?tree=Try&rev=c6debde04d98
Updated•11 years ago
|
Attachment #803682 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 15•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/52b319afe965
https://hg.mozilla.org/integration/mozilla-inbound/rev/58d96448609a
https://hg.mozilla.org/integration/mozilla-inbound/rev/5b4ce1d4d09b
https://hg.mozilla.org/integration/mozilla-inbound/rev/b28cb0ae1853
https://hg.mozilla.org/integration/mozilla-inbound/rev/d16460fc0518
https://hg.mozilla.org/integration/mozilla-inbound/rev/a4a029c13179
Pushed after green try: https://tbpl.mozilla.org/?tree=Try&rev=7cc165920e0f Ideally there won't have been too many header switcharounds since this morning...
Flags: in-testsuite-
Comment 16•11 years ago
|
||
Interestingly, this was busted on ASAN builds. Backed out.
https://hg.mozilla.org/integration/mozilla-inbound/rev/e16e1dae3315
https://tbpl.mozilla.org/php/getParsedLog.php?id=27845091&tree=Mozilla-Inbound
Reporter | ||
Comment 17•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/011a9b6b8457
https://hg.mozilla.org/integration/mozilla-inbound/rev/f0bf7e9815ff
https://hg.mozilla.org/integration/mozilla-inbound/rev/19f9a0020632
https://hg.mozilla.org/integration/mozilla-inbound/rev/b7667dd91087
https://hg.mozilla.org/integration/mozilla-inbound/rev/50719d4df698
https://hg.mozilla.org/integration/mozilla-inbound/rev/0dde02a8bc25
Green builds on try, unlike last time: https://tbpl.mozilla.org/?tree=Try&rev=b86ad5197f8c
https://hg.mozilla.org/mozilla-central/rev/011a9b6b8457
https://hg.mozilla.org/mozilla-central/rev/f0bf7e9815ff
https://hg.mozilla.org/mozilla-central/rev/19f9a0020632
https://hg.mozilla.org/mozilla-central/rev/b7667dd91087
https://hg.mozilla.org/mozilla-central/rev/50719d4df698
https://hg.mozilla.org/mozilla-central/rev/0dde02a8bc25
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Comment 19•11 years ago
|
||
This broke YouTube playback on Firefox OS on trunk, which breaks a daily smoketest. See bug 922334 a followup.
You need to log in
before you can comment on or make changes to this bug.
Description
•