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

Issue 2891023002: [cast_channel] Make CastSocket not inherit from ApiResource (Closed)

Created:
3 years, 7 months ago by zhaobin
Modified:
3 years, 7 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 CastSocket not inherit from ApiResource We are moving cast_channel related files from //extensions to //components and need to remove extensions dependencies. Add CastChannelService as BrowserContextKeyedService to replace extensions::ApiResourceManager and manage cast sockets. BUG=723944 Review-Url: https://codereview.chromium.org/2891023002 Cr-Commit-Position: refs/heads/master@{#475057} Committed: https://chromium.googlesource.com/chromium/src/+/6d0877aff7c0a14b421d2635cf60da4c4d25a948

Patch Set 1 #

Total comments: 34

Patch Set 2 : resolve code review comments from Mark #

Total comments: 6

Patch Set 3 : resolve code review comments from Mark #

Total comments: 12

Patch Set 4 : resolve code review comments from Derek #

Patch Set 5 : resolve code review comments from Derek #

Unified diffs Side-by-side diffs Delta from patch set Stats (+363 lines, -80 lines) Patch
M extensions/browser/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/BUILD.gn View 1 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.h View 1 2 3 6 chunks +6 lines, -11 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.cc View 1 2 3 7 chunks +21 lines, -22 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket.h View 1 2 3 7 chunks +4 lines, -21 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_socket.cc View 1 2 3 3 chunks +1 line, -23 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_socket_service.h View 1 2 1 chunk +77 lines, -0 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_socket_service.cc View 1 2 1 chunk +62 lines, -0 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_socket_service_factory.h View 1 1 chunk +49 lines, -0 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_socket_service_factory.cc View 1 1 chunk +56 lines, -0 lines 0 comments Download
A extensions/browser/api/cast_channel/cast_socket_service_unittest.cc View 1 2 3 4 1 chunk +81 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_test_util.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 38 (24 generated)
zhaobin
3 years, 7 months ago (2017-05-18 03:46:43 UTC) #2
mark a. foltz
Partial comments (didn't complete review, apologies) https://codereview.chromium.org/2891023002/diff/1/extensions/browser/api/cast_channel/cast_channel_service.cc File extensions/browser/api/cast_channel/cast_channel_service.cc (right): https://codereview.chromium.org/2891023002/diff/1/extensions/browser/api/cast_channel/cast_channel_service.cc#newcode22 extensions/browser/api/cast_channel/cast_channel_service.cc:22: int id = ...
3 years, 7 months ago (2017-05-18 18:02:27 UTC) #3
mark a. foltz
Remaining comments https://codereview.chromium.org/2891023002/diff/1/extensions/browser/api/cast_channel/cast_channel_service.cc File extensions/browser/api/cast_channel/cast_channel_service.cc (right): https://codereview.chromium.org/2891023002/diff/1/extensions/browser/api/cast_channel/cast_channel_service.cc#newcode34 extensions/browser/api/cast_channel/cast_channel_service.cc:34: DCHECK_CALLED_ON_VALID_THREAD(thread_checker_); DCHECK(channel_id > 0) https://codereview.chromium.org/2891023002/diff/1/extensions/browser/api/cast_channel/cast_channel_service_factory.cc File extensions/browser/api/cast_channel/cast_channel_service_factory.cc ...
3 years, 7 months ago (2017-05-18 19:12:05 UTC) #4
zhaobin
+imcheng@ https://codereview.chromium.org/2891023002/diff/1/extensions/browser/api/cast_channel/cast_channel_service.cc File extensions/browser/api/cast_channel/cast_channel_service.cc (right): https://codereview.chromium.org/2891023002/diff/1/extensions/browser/api/cast_channel/cast_channel_service.cc#newcode22 extensions/browser/api/cast_channel/cast_channel_service.cc:22: int id = sockets_.size() + 1; On 2017/05/18 ...
3 years, 7 months ago (2017-05-24 01:51:40 UTC) #6
mark a. foltz
LGTM with a couple of nit picks https://codereview.chromium.org/2891023002/diff/1/extensions/browser/api/cast_channel/cast_channel_service.cc File extensions/browser/api/cast_channel/cast_channel_service.cc (right): https://codereview.chromium.org/2891023002/diff/1/extensions/browser/api/cast_channel/cast_channel_service.cc#newcode43 extensions/browser/api/cast_channel/cast_channel_service.cc:43: DCHECK_CURRENTLY_ON(content::BrowserThread::IO); On ...
3 years, 7 months ago (2017-05-24 17:44:10 UTC) #7
mark a. foltz
Quick comment on lifetime. Most keyed services are created in advance (on browser startup) and ...
3 years, 7 months ago (2017-05-24 17:46:14 UTC) #8
zhaobin
https://codereview.chromium.org/2891023002/diff/1/extensions/browser/api/cast_channel/cast_channel_service.cc File extensions/browser/api/cast_channel/cast_channel_service.cc (right): https://codereview.chromium.org/2891023002/diff/1/extensions/browser/api/cast_channel/cast_channel_service.cc#newcode43 extensions/browser/api/cast_channel/cast_channel_service.cc:43: DCHECK_CURRENTLY_ON(content::BrowserThread::IO); On 2017/05/24 17:44:10, mark a. foltz wrote: > ...
3 years, 7 months ago (2017-05-24 18:12:58 UTC) #10
imcheng
Looks good, just a couple of questions that I need some clarifying. https://codereview.chromium.org/2891023002/diff/1/extensions/browser/api/cast_channel/cast_socket.h File extensions/browser/api/cast_channel/cast_socket.h ...
3 years, 7 months ago (2017-05-24 20:24:32 UTC) #14
zhaobin
https://codereview.chromium.org/2891023002/diff/1/extensions/browser/api/cast_channel/cast_socket.h File extensions/browser/api/cast_channel/cast_socket.h (right): https://codereview.chromium.org/2891023002/diff/1/extensions/browser/api/cast_channel/cast_socket.h#newcode112 extensions/browser/api/cast_channel/cast_socket.h:112: virtual const std::string& owner_extension_id() const = 0; On 2017/05/24 ...
3 years, 7 months ago (2017-05-24 22:15:07 UTC) #16
imcheng
lgtm https://codereview.chromium.org/2891023002/diff/40001/extensions/browser/api/cast_channel/cast_socket_service_unittest.cc File extensions/browser/api/cast_channel/cast_socket_service_unittest.cc (right): https://codereview.chromium.org/2891023002/diff/40001/extensions/browser/api/cast_channel/cast_socket_service_unittest.cc#newcode28 extensions/browser/api/cast_channel/cast_socket_service_unittest.cc:28: auto* registry = cast_socket_service_.GetOrCreateSocketRegistry(); On 2017/05/24 22:15:07, zhaobin ...
3 years, 7 months ago (2017-05-25 20:20:17 UTC) #20
zhaobin
+rdevlin.cronin@ to review: extensions/browser/BUILD.gn https://codereview.chromium.org/2891023002/diff/40001/extensions/browser/api/cast_channel/cast_socket_service_unittest.cc File extensions/browser/api/cast_channel/cast_socket_service_unittest.cc (right): https://codereview.chromium.org/2891023002/diff/40001/extensions/browser/api/cast_channel/cast_socket_service_unittest.cc#newcode28 extensions/browser/api/cast_channel/cast_socket_service_unittest.cc:28: auto* registry = cast_socket_service_.GetOrCreateSocketRegistry(); On ...
3 years, 7 months ago (2017-05-25 22:16:21 UTC) #24
Devlin
extensions/browser/BUILD.gn lgtm
3 years, 7 months ago (2017-05-26 00:43:52 UTC) #25
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/2891023002/80001
3 years, 7 months ago (2017-05-26 17:56:34 UTC) #34
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 18:03:53 UTC) #38
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/6d0877aff7c0a14b421d2635cf60...

Powered by Google App Engine
This is Rietveld 408576698