[Presentation API] Use connection proxy to change connection state to 'closed'
blink connection.close()
connection_proxy.close()
---> mojo call
target_connection_proxy.OnClose() // change both sides' blink connection to 'closed'
For 1-UA, it works for both controller and receiver connection.
For 2-UA, browser_connection_proxy has no-op OnClose(), and state change is still handled by MRP.
Also change message_request_queue_ to std::deque and erase pending send message requests from message queue when closing connection.
BUG=
688233
Review-Url:
https://codereview.chromium.org/2714693002
Cr-Commit-Position: refs/heads/master@{#454391}
Committed:
https://chromium.googlesource.com/chromium/src/+/fb7c75d163e22589351f06fbef424f94d6e216f8