Commit Graph

69 Commits

Author SHA1 Message Date
Ben Turner
ebf1496aa4 Fix union type stuff for linux too 2009-09-14 17:55:00 -07:00
Ben Turner
c3980cd06f Fix union type constructors to be explicit to avoid msvc choosing cheaper code paths 2009-09-14 14:44:06 -07:00
Ben Turner
4c2446fda0 Fix recursive locking when unblocking an RPC channel for a sync message and add minimal error handling for sync messages. 2009-09-14 13:00:31 -07:00
Chris Jones
4adeb30006 modify the generated C++ enum representing the constituent types of IPDL unions so that they can represent a "not assigned" state 2009-09-12 17:18:56 -05:00
Chris Jones
af6b29815d fix the internal C++ union of generated IPDL unions so that they can contain non-POD types 2009-09-12 15:40:26 -05:00
Chris Jones
657a5413be fix isUnion/isUnionType schizophrenia introduced by d3e90292fd30 2009-09-12 15:11:35 -05:00
Benjamin Smedberg
0129b07555 Followup to changeset d3e90292fd30, discriminated union types: bustage fix when passing an actor 2009-09-11 12:05:26 -04:00
Chris Jones
e20692ab9b add discriminated union types to IPDL 2009-09-10 23:55:03 -05:00
Ben Turner
c6ad60ed4d Remove 'Protocol' suffix from IPDL-generated files 2009-09-09 15:59:06 -07:00
Chris Jones
f9ec84bb5f bug 515365: fix actor types as message params. also refactor actor naming so that the "Protocol" suffix can be removed. 2009-09-09 15:25:05 -05:00
Chris Jones
9b4c68bafb bug 515242: finish FE support for actor types specified to be in "any" state (by adding State.ANY). fix IPDL handling of carriage return, remove them from new code 2009-09-09 01:58:08 -05:00
Chris Jones
fb7a868fa4 fix build bustage; include prtime.h in IPDL code and avoid conflicting CaseInsensitiveCompare decls 2009-09-01 10:01:50 -05:00
Chris Jones
fead1e7116 bug 511440: leak count the protocol actor classes. Patch from robin_bb, thanks! r=cjones 2009-08-31 12:54:25 -05:00
Chris Jones
c39afb1faf drop the banhammer on sync parent-to-child messages 2009-08-25 18:52:12 -05:00
Chris Jones
84a5be73c6 add IPDL front-end support for transitioning to one of a set of states 2009-08-19 21:21:46 -05:00
Chris Jones
42f8bccd1d add real front-end support for multiple start states in IPDL 2009-08-19 18:35:22 -05:00
Chris Jones
569858dd00 enable the actor before calling the ctor hook 2009-08-19 18:14:24 -05:00
Chris Jones
da80f6aaa1 add RecvCtor() hooks to match RecvDtor() 2009-08-19 17:54:54 -05:00
Chris Jones
36b0a7b68e require IPDL filename Foo.ipdl to define protocol Foo 2009-08-19 16:08:21 -05:00
Chris Jones
a02df7b5d1 allow empty sub-protocols 2009-08-19 15:50:46 -05:00
Chris Jones
2c1f6f0ee8 add "power-user" ctor interface method that accepts pre-constructed actors 2009-08-19 15:39:10 -05:00
Chris Jones
77d8bb116e allow implementations to be notified when a dtor message is received 2009-08-14 16:46:49 -05:00
Chris Jones
f55e41544a add dummy |start state| syntax 2009-08-14 15:38:25 -05:00
Chris Jones
752addc386 bug 510344: each translation unit needs its own symbol table. also fixed some parser error reporting and removed debugging |print|s 2009-08-13 21:22:55 -05:00
Benjamin Smedberg
3727beac48 Bug 510025 - make TestShell a subprotocol of ContentProcess so that it is useful for prototyping 2009-08-12 14:31:48 -04:00
Chris Jones
c077cb9ee4 bug 510041: subprotocols should implement the toplevel-protocols listener interface even if they do not need that send semantics. dummy methods that error out are generated 2009-08-12 17:53:08 -05:00
Chris Jones
5fdc15d93a forward-declare non-managed actors 2009-08-12 15:51:39 -05:00
Chris Jones
ca83130e42 fix regression from refactoring error message construction 2009-08-12 13:59:00 -05:00
Chris Jones
2c2245395b fix typos in type error format args 2009-08-12 13:46:05 -05:00
Chris Jones
1b2a01962c generate C++ typdefs for namespaced protocols 2009-08-12 13:40:09 -05:00
Chris Jones
fc4f1b8507 bug 509588: in actor ctor skeleton, return null instead of NS_ERROR_NYI 2009-08-11 17:26:06 -05:00
Chris Jones
4a80615b13 bug 509581: generate direct error return stmt instead of switch stmt with only default case when there are no dispatched messages. 2009-08-11 17:20:28 -05:00
Chris Jones
bb36d29db4 backout bad fix 2009-08-11 17:12:42 -05:00
Chris Jones
be276f51f5 bug 509581: only generate dispatch statement if we have a non-default case 2009-08-11 17:09:13 -05:00
Chris Jones
973633505a bug 509579: use ALLOW_THIS() macro to squash msvc warnings 2009-08-11 16:52:37 -05:00
Chris Jones
a225933c92 make it easier to control whether logging code is emitted 2009-08-07 16:10:57 -05:00
Ben Turner
d4bb2883d3 Use mozilla strings instead of std::string in IPDL 2009-07-29 14:12:15 -07:00
Chris Jones
bdd002ffe7 bug 506983: allow template types in param lists 2009-07-28 17:04:01 -05:00
Chris Jones
76fb6c8a37 bug 506983: bare minimum support for C++ template types in IPDL 2009-07-28 16:26:14 -05:00
Chris Jones
d8a8dca284 bug 506788: fix stupid typo 2009-07-27 20:49:32 -05:00
Chris Jones
9d6b44828f Bug 506075: eliminate handshaking async constructor protocol, use smarter routing ID assignment 2009-07-24 18:24:27 -05:00
Chris Jones
beee1565fe bug 506075: shoehorn support for async ctors/dtors into IPDL. 2009-07-23 20:31:56 -05:00
Chris Jones
f349133c54 add message logging, as far as is possible with current build setup; -fshort-char breaks it. reinstate async/sync message dispatchers. fix 64-bit int printf bug in chromium. 2009-07-21 01:14:58 -05:00
Chris Jones
8959227f99 implement protocol manager support for all channel types, not just RPC 2009-07-20 11:59:51 -05:00
Chris Jones
6a1b89d424 stop flirting with MSVC8 name resolution bug. 2009-07-20 11:37:18 -05:00
Chris Jones
822eab83c8 fix small parser regression. edit test-harness code to match online guide 2009-07-17 23:00:01 -05:00
Chris Jones
be1ba467e4 check that protocol state machines are race-free. fix race in test-harness (whoops). 2009-07-17 18:10:10 -05:00
Chris Jones
af893a5060 check reachability of states in IPDL protocols. clean up type checking a little. 2009-07-17 14:22:18 -05:00
Chris Jones
d7947d5455 add IPDL test harness and the mountains of code that entails. add |bool| type to IPDL. fix bugs in nascent async/sync channels. 2009-07-14 00:12:50 -05:00
Chris Jones
65a5143fa4 first cut at AsyncChannel and SyncChannel. only RPCChannel is currently under warranty. 2009-07-13 16:55:04 -05:00