Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Issue 19714002: Add serialization to PairingRegistry. (Closed)

Created:
7 years, 5 months ago by Jamie
Modified:
7 years, 5 months ago
Reviewers:
Lambros
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Add serialization to PairingRegistry. To implement this, PairingRegistry maintains a queue of pending requests. Each public method wraps the original callback inside an interstitial callback that runs the next pending request in addition to invoking the original callback. BUG=156182 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212553

Patch Set 1 #

Total comments: 16

Patch Set 2 : Reviewer feedback. #

Total comments: 4

Patch Set 3 : Reviewer feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -42 lines) Patch
M remoting/protocol/pairing_registry.h View 1 4 chunks +24 lines, -0 lines 0 comments Download
M remoting/protocol/pairing_registry.cc View 1 3 chunks +104 lines, -15 lines 0 comments Download
M remoting/protocol/pairing_registry_unittest.cc View 1 6 chunks +86 lines, -22 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.h View 1 1 chunk +22 lines, -0 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.cc View 1 2 3 chunks +32 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Jamie
PTAL. I haven't implemented the dtor behaviour we discussed to ensure that the callback is ...
7 years, 5 months ago (2013-07-18 00:15:07 UTC) #1
Lambros
https://codereview.chromium.org/19714002/diff/1/remoting/protocol/pairing_registry.h File remoting/protocol/pairing_registry.h (right): https://codereview.chromium.org/19714002/diff/1/remoting/protocol/pairing_registry.h#newcode188 remoting/protocol/pairing_registry.h:188: bool servicing_request_; Suggestion: if you keep the currently-serviced request ...
7 years, 5 months ago (2013-07-18 20:34:51 UTC) #2
Jamie
PTAL. Note that I've also removed the private PairingRegistry methods that I added purely to ...
7 years, 5 months ago (2013-07-18 22:44:56 UTC) #3
Lambros
lgtm with comments https://codereview.chromium.org/19714002/diff/8001/remoting/protocol/pairing_registry.cc File remoting/protocol/pairing_registry.cc (right): https://codereview.chromium.org/19714002/diff/8001/remoting/protocol/pairing_registry.cc#newcode278 remoting/protocol/pairing_registry.cc:278: request.Run(); |request| temporary not needed anymore? ...
7 years, 5 months ago (2013-07-19 01:54:21 UTC) #4
Jamie
fyi https://codereview.chromium.org/19714002/diff/8001/remoting/protocol/pairing_registry.cc File remoting/protocol/pairing_registry.cc (right): https://codereview.chromium.org/19714002/diff/8001/remoting/protocol/pairing_registry.cc#newcode278 remoting/protocol/pairing_registry.cc:278: request.Run(); On 2013/07/19 01:54:21, Lambros wrote: > |request| ...
7 years, 5 months ago (2013-07-19 02:10:13 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/19714002/12002
7 years, 5 months ago (2013-07-19 02:10:37 UTC) #6
commit-bot: I haz the power
7 years, 5 months ago (2013-07-19 09:01:39 UTC) #7
Message was sent while issue was closed.
Change committed as 212553

Powered by Google App Engine
This is Rietveld 408576698