Confirmed users
512
edits
(Hmmm) |
(Actual thought and research put into the design this time) |
||
| Line 9: | Line 9: | ||
void clearWatch(long watchId); | void clearWatch(long watchId); | ||
The | The nsGeolocation class can be split into chrome and content objects, with all of the current functionality moving into chrome. | ||
When content calls the above functions, the content process can create an actor that encapsulates and dispatches an asynchronous operation to the chrome process. The encapsulating actor on the chrome side runs the requested action, passing specially-implemented callbacks that send a serialized position update or error message to the child. The child actor stores the content callbacks and executes them accordingly. | |||