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

Issue 6594138: Block event processing on host/client until the client has authenticated. (Closed)

Created:
9 years, 9 months ago by garykac
Modified:
9 years, 6 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, dmaclach+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Block event processing on host/client until the client has authenticated. Input events: * Client will not send them * Host will not process them Control events: * Client will only process BeginSessionResponse * Host will only process BeginSessionRequest All other control messages will be ignored. BUG=72466 TEST=manual+tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76974

Patch Set 1 #

Patch Set 2 : Remove debugging stuff #

Patch Set 3 : fix mock objects for unittests #

Total comments: 22

Patch Set 4 : changes from review comments #

Patch Set 5 : add missing source files #

Total comments: 20

Patch Set 6 : review comments #

Total comments: 4

Patch Set 7 : fix constructor #

Patch Set 8 : fix merge conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -61 lines) Patch
M remoting/client/chromoting_client.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M remoting/client/plugin/pepper_input_handler.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/chromoting_host.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 1 2 5 chunks +27 lines, -13 lines 0 comments Download
M remoting/host/screen_recorder_unittest.cc View 1 2 3 chunks +11 lines, -1 line 0 comments Download
M remoting/protocol/client_message_dispatcher.cc View 1 2 3 4 5 1 chunk +24 lines, -10 lines 0 comments Download
M remoting/protocol/client_stub.h View 1 2 3 4 5 1 chunk +16 lines, -2 lines 0 comments Download
A remoting/protocol/client_stub.cc View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
M remoting/protocol/connection_to_client.h View 1 2 3 4 5 2 chunks +7 lines, -3 lines 0 comments Download
M remoting/protocol/connection_to_client.cc View 1 2 3 4 5 4 chunks +16 lines, -4 lines 0 comments Download
M remoting/protocol/connection_to_host.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M remoting/protocol/connection_to_host.cc View 1 2 3 4 5 6 7 3 chunks +16 lines, -2 lines 0 comments Download
M remoting/protocol/host_message_dispatcher.cc View 1 2 3 4 5 1 chunk +34 lines, -18 lines 0 comments Download
M remoting/protocol/host_stub.h View 1 2 3 4 5 2 chunks +17 lines, -3 lines 0 comments Download
A remoting/protocol/host_stub.cc View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
M remoting/protocol/input_stub.h View 1 2 3 4 5 2 chunks +17 lines, -2 lines 0 comments Download
A remoting/protocol/input_stub.cc View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.h View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M remoting/protocol/protocol_mock_objects.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
garykac
Nothing earth-shattering here. I played with a few variants before settling on having the connection_to_host|client ...
9 years, 9 months ago (2011-03-03 03:43:37 UTC) #1
garykac
On 2011/03/03 03:43:37, garykac wrote: > Nothing earth-shattering here. I played with a few variants ...
9 years, 9 months ago (2011-03-04 00:29:09 UTC) #2
dmac
http://codereview.chromium.org/6594138/diff/3015/remoting/protocol/client_stub.h File remoting/protocol/client_stub.h (right): http://codereview.chromium.org/6594138/diff/3015/remoting/protocol/client_stub.h#newcode26 remoting/protocol/client_stub.h:26: virtual ~ClientStub() {} as this is no longer pure ...
9 years, 9 months ago (2011-03-04 01:36:27 UTC) #3
dmac
sorry I didn't get the review done earlier.
9 years, 9 months ago (2011-03-04 01:36:40 UTC) #4
ajwong
we do need to out-of-line any non-pure-virtual functions, and any constructors/destructors for classes that aren't ...
9 years, 9 months ago (2011-03-04 01:45:31 UTC) #5
garykac
http://codereview.chromium.org/6594138/diff/3015/remoting/protocol/client_stub.h File remoting/protocol/client_stub.h (right): http://codereview.chromium.org/6594138/diff/3015/remoting/protocol/client_stub.h#newcode26 remoting/protocol/client_stub.h:26: virtual ~ClientStub() {} On 2011/03/04 01:36:27, dmac wrote: > ...
9 years, 9 months ago (2011-03-04 05:33:23 UTC) #6
Wez
Some drive-by comments. :) http://codereview.chromium.org/6594138/diff/12001/remoting/client/chromoting_client.cc File remoting/client/chromoting_client.cc (right): http://codereview.chromium.org/6594138/diff/12001/remoting/client/chromoting_client.cc#newcode238 remoting/client/chromoting_client.cc:238: connection_->SetClientAuthenticated(msg->success()); I'd recommend SetClientAuthenticated(bool) -> ...
9 years, 9 months ago (2011-03-04 12:09:37 UTC) #7
garykac
http://codereview.chromium.org/6594138/diff/12001/remoting/client/chromoting_client.cc File remoting/client/chromoting_client.cc (right): http://codereview.chromium.org/6594138/diff/12001/remoting/client/chromoting_client.cc#newcode238 remoting/client/chromoting_client.cc:238: connection_->SetClientAuthenticated(msg->success()); On 2011/03/04 12:09:38, Wez wrote: > I'd recommend ...
9 years, 9 months ago (2011-03-04 20:28:02 UTC) #8
dmac
LGTM with nits http://codereview.chromium.org/6594138/diff/9005/remoting/protocol/host_stub.cc File remoting/protocol/host_stub.cc (right): http://codereview.chromium.org/6594138/diff/9005/remoting/protocol/host_stub.cc#newcode15 remoting/protocol/host_stub.cc:15: : authenticated_(false) { indent four? nit ...
9 years, 9 months ago (2011-03-04 20:32:17 UTC) #9
garykac
9 years, 9 months ago (2011-03-04 20:35:43 UTC) #10
http://codereview.chromium.org/6594138/diff/9005/remoting/protocol/host_stub.cc
File remoting/protocol/host_stub.cc (right):

http://codereview.chromium.org/6594138/diff/9005/remoting/protocol/host_stub....
remoting/protocol/host_stub.cc:15: : authenticated_(false) {
On 2011/03/04 20:32:17, dmac wrote:
> indent four? nit does this actually need to be wrapped?

Moved onto single line.

http://codereview.chromium.org/6594138/diff/9005/remoting/protocol/input_stub.cc
File remoting/protocol/input_stub.cc (right):

http://codereview.chromium.org/6594138/diff/9005/remoting/protocol/input_stub...
remoting/protocol/input_stub.cc:15: : authenticated_(false) {
On 2011/03/04 20:32:17, dmac wrote:
> does it need wrap? should it be indented four?

Moved onto single line.

Powered by Google App Engine
This is Rietveld 408576698