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

Issue 2891923004: [cast_channel] Make cast_channel related files not depend on "cast_channel.h" (Closed)

Created:
3 years, 7 months ago by zhaobin
Modified:
3 years, 6 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, mfoltz+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[cast_channel] Make cast_channel related files not depend on "cast_channel.h" We are moving cast_channel related files from //extensions to //components and need to remove extensions dependencies. - Added internal enum class ::cast_channel::ReadyState, ::cast_channel::ChannelError, ::cast_channel::ChannelAuthType and type conversion util functions - Use internal enum class instead of enums in cast_channel.idl BUG=723944 Review-Url: https://codereview.chromium.org/2891923004 Cr-Commit-Position: refs/heads/master@{#475733} Committed: https://chromium.googlesource.com/chromium/src/+/13da92ea84809980287797b7829007e8b1953ffc

Patch Set 1 #

Patch Set 2 : resolve code review comments from Mark #

Total comments: 18

Patch Set 3 : resolve code review comments from Derek #

Patch Set 4 : rename cast_channel_type to cast_channel_enum #

Total comments: 9

Patch Set 5 : resolve code review comments from Mark #

Patch Set 6 : rebase with master #

Patch Set 7 : fix windows compile errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+570 lines, -223 lines) Patch
A components/cast_channel/BUILD.gn View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
A components/cast_channel/OWNERS View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
A components/cast_channel/cast_channel_enum.h View 1 2 3 4 5 6 1 chunk +48 lines, -0 lines 0 comments Download
A components/cast_channel/cast_channel_enum.cc View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/BUILD.gn View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.h View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.cc View 1 2 3 4 5 11 chunks +30 lines, -25 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_apitest.cc View 1 7 chunks +41 lines, -45 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_channel_enum_util.h View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_channel_enum_util.cc View 1 2 3 4 5 6 1 chunk +87 lines, -0 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_channel_enum_util_unittest.cc View 1 2 3 4 5 6 1 chunk +67 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_framer.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M extensions/browser/api/cast_channel/cast_framer.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_framer_unittest.cc View 1 5 chunks +10 lines, -7 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket.h View 1 2 3 4 5 2 chunks +10 lines, -1 line 0 comments Download
M extensions/browser/api/cast_channel/cast_socket.cc View 1 2 3 4 5 6 19 chunks +39 lines, -29 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket_unittest.cc View 1 2 3 4 5 6 21 chunks +62 lines, -67 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_transport.h View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M extensions/browser/api/cast_channel/cast_transport.cc View 1 2 3 4 5 6 13 chunks +27 lines, -25 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_transport_unittest.cc View 1 2 3 4 5 6 8 chunks +10 lines, -7 lines 0 comments Download
M extensions/browser/api/cast_channel/keep_alive_delegate.cc View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M extensions/browser/api/cast_channel/keep_alive_delegate_unittest.cc View 1 2 3 4 5 6 6 chunks +7 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (21 generated)
zhaobin
3 years, 7 months ago (2017-05-18 18:50:06 UTC) #2
mark a. foltz
Is the plan to move the *Internal enums to //components along with the Cast Socket ...
3 years, 7 months ago (2017-05-22 20:01:00 UTC) #3
zhaobin
On 2017/05/22 20:01:00, mark a. foltz wrote: > Is the plan to move the *Internal ...
3 years, 7 months ago (2017-05-23 17:37:26 UTC) #5
zhaobin
+ imcheng@
3 years, 7 months ago (2017-05-23 17:38:01 UTC) #7
imcheng
https://codereview.chromium.org/2891923004/diff/40001/components/cast_channel/BUILD.gn File components/cast_channel/BUILD.gn (right): https://codereview.chromium.org/2891923004/diff/40001/components/cast_channel/BUILD.gn#newcode1 components/cast_channel/BUILD.gn:1: # Copyright 2016 The Chromium Authors. All rights reserved. ...
3 years, 7 months ago (2017-05-24 22:11:24 UTC) #8
mark a. foltz
Looks good with Derek's comments addressed. https://codereview.chromium.org/2891923004/diff/40001/components/cast_channel/cast_channel_type.cc File components/cast_channel/cast_channel_type.cc (right): https://codereview.chromium.org/2891923004/diff/40001/components/cast_channel/cast_channel_type.cc#newcode29 components/cast_channel/cast_channel_type.cc:29: return kReadyStates[static_cast<int>(ready_state)]; On ...
3 years, 7 months ago (2017-05-24 22:46:36 UTC) #9
zhaobin
https://codereview.chromium.org/2891923004/diff/40001/components/cast_channel/BUILD.gn File components/cast_channel/BUILD.gn (right): https://codereview.chromium.org/2891923004/diff/40001/components/cast_channel/BUILD.gn#newcode1 components/cast_channel/BUILD.gn:1: # Copyright 2016 The Chromium Authors. All rights reserved. ...
3 years, 7 months ago (2017-05-25 00:49:23 UTC) #10
imcheng
lgtm
3 years, 7 months ago (2017-05-25 16:36:10 UTC) #11
mark a. foltz
lgtm You'll need to get a components/OWNERS to also review and approve. https://codereview.chromium.org/2891923004/diff/80001/components/cast_channel/cast_channel_enum_unittest.cc File components/cast_channel/cast_channel_enum_unittest.cc ...
3 years, 7 months ago (2017-05-26 16:55:51 UTC) #12
mark a. foltz
https://codereview.chromium.org/2891923004/diff/80001/components/cast_channel/cast_channel_enum.cc File components/cast_channel/cast_channel_enum.cc (right): https://codereview.chromium.org/2891923004/diff/80001/components/cast_channel/cast_channel_enum.cc#newcode24 components/cast_channel/cast_channel_enum.cc:24: NOTREACHED(); Also << "Unknown ready_state " << ready_state here ...
3 years, 7 months ago (2017-05-26 16:56:43 UTC) #13
mark a. foltz
Finally, can you add a components/cast_channel/OWNERS file that references the existing OWNERS file in extensions/? ...
3 years, 7 months ago (2017-05-26 16:57:37 UTC) #14
imcheng
lgtm https://codereview.chromium.org/2891923004/diff/80001/components/cast_channel/cast_channel_enum.cc File components/cast_channel/cast_channel_enum.cc (right): https://codereview.chromium.org/2891923004/diff/80001/components/cast_channel/cast_channel_enum.cc#newcode23 components/cast_channel/cast_channel_enum.cc:23: default: Maybe get rid of the default case? ...
3 years, 7 months ago (2017-05-26 17:43:36 UTC) #15
zhaobin
+jochen@ to review components/cast_channel/* +rdevlin.cronin@ to review extensions/browser/BUILD.gn https://codereview.chromium.org/2891923004/diff/80001/components/cast_channel/cast_channel_enum.cc File components/cast_channel/cast_channel_enum.cc (right): https://codereview.chromium.org/2891923004/diff/80001/components/cast_channel/cast_channel_enum.cc#newcode23 components/cast_channel/cast_channel_enum.cc:23: default: ...
3 years, 6 months ago (2017-05-27 03:08:38 UTC) #23
jochen (gone - plz use gerrit)
lgtm
3 years, 6 months ago (2017-05-29 14:15:51 UTC) #30
mark a. foltz
Can you update the patch description to match the current patchset? Thanks :-)
3 years, 6 months ago (2017-05-30 21:20:08 UTC) #31
Devlin
extensions/browser/BUILD.gn lgtm
3 years, 6 months ago (2017-05-30 22:35:13 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2891923004/140001
3 years, 6 months ago (2017-05-30 22:41:16 UTC) #36
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 01:50:37 UTC) #39
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/13da92ea84809980287797b78290...

Powered by Google App Engine
This is Rietveld 408576698