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

Issue 23453025: Refactor PPB_NetworkMonitor_Private interface to use CompletionCallback. (Closed)

Created:
7 years, 3 months ago by Sergey Ulanov
Modified:
7 years, 3 months ago
Reviewers:
yzshen1
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, yusukes+watch_chromium.org, hclam+watch_chromium.org, sergeyu+watch_chromium.org, amit, sanjeevr, jam, garykac+watch_chromium.org, yzshen+watch_chromium.org, joi+watch-content_chromium.org, wez+watch_chromium.org, lambroslambrou+watch_chromium.org, darin-cc_chromium.org, raymes+watch_chromium.org, weitaosu+watch_chromium.org, piman+watch_chromium.org, alexeypa+watch_chromium.org, rmsousa+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Refactor PPB_NetworkMonitor_Private interface to use CompletionCallback. Previously NetworkMonitor required that a callback is passed to the Create() method. It was hard to use and inconsistent with other APIs. Added new UpdateNetworkList() method which accepts a CompletionCallback to be called when network list changes. BUG=281781 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221582

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 16

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+327 lines, -382 lines) Patch
M chrome/test/ppapi/ppapi_browsertest.cc View 4 chunks +0 lines, -4 lines 0 comments Download
M content/renderer/pepper/resource_creation_impl.h View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M content/renderer/pepper/resource_creation_impl.cc View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M ppapi/api/private/ppb_network_monitor_private.idl View 1 2 3 1 chunk +30 lines, -29 lines 0 comments Download
M ppapi/c/private/ppb_network_monitor_private.h View 1 2 3 4 chunks +32 lines, -40 lines 0 comments Download
M ppapi/cpp/private/network_monitor_private.h View 1 2 3 1 chunk +7 lines, -4 lines 0 comments Download
M ppapi/cpp/private/network_monitor_private.cc View 1 2 3 1 chunk +19 lines, -10 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 5 chunks +31 lines, -2 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ppapi/ppapi_sources.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_network_monitor_private_proxy.h View 1 2 3 3 chunks +4 lines, -9 lines 0 comments Download
M ppapi/proxy/ppb_network_monitor_private_proxy.cc View 1 2 3 5 chunks +61 lines, -43 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 1 chunk +3 lines, -6 lines 0 comments Download
M ppapi/shared_impl/resource.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ppapi/tests/test_network_monitor_private.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/tests/test_network_monitor_private.cc View 1 2 3 4 chunks +43 lines, -79 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private_no_permissions.h View 1 chunk +2 lines, -2 lines 0 comments Download
A ppapi/thunk/ppb_network_monitor_api.h View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_network_monitor_private_api.h View 1 2 3 1 chunk +0 lines, -22 lines 0 comments Download
M ppapi/thunk/ppb_network_monitor_private_thunk.cc View 1 2 3 1 chunk +31 lines, -14 lines 0 comments Download
M ppapi/thunk/resource_creation_api.h View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
D ppapi/utility/private/DEPS View 1 chunk +0 lines, -3 lines 0 comments Download
D ppapi/utility/private/network_list_observer_private.h View 1 chunk +0 lines, -49 lines 0 comments Download
D ppapi/utility/private/network_list_observer_private.cc View 1 chunk +0 lines, -33 lines 0 comments Download
M remoting/client/plugin/pepper_network_manager.h View 3 chunks +4 lines, -1 line 0 comments Download
M remoting/client/plugin/pepper_network_manager.cc View 2 chunks +21 lines, -11 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Sergey Ulanov
7 years, 3 months ago (2013-09-03 23:44:27 UTC) #1
yzshen1
https://codereview.chromium.org/23453025/diff/7001/ppapi/api/private/ppb_network_monitor_private.idl File ppapi/api/private/ppb_network_monitor_private.idl (right): https://codereview.chromium.org/23453025/diff/7001/ppapi/api/private/ppb_network_monitor_private.idl#newcode32 ppapi/api/private/ppb_network_monitor_private.idl:32: * Gets current network configuration. When called for the ...
7 years, 3 months ago (2013-09-04 19:52:01 UTC) #2
Sergey Ulanov
https://codereview.chromium.org/23453025/diff/7001/ppapi/api/private/ppb_network_monitor_private.idl File ppapi/api/private/ppb_network_monitor_private.idl (right): https://codereview.chromium.org/23453025/diff/7001/ppapi/api/private/ppb_network_monitor_private.idl#newcode32 ppapi/api/private/ppb_network_monitor_private.idl:32: * Gets current network configuration. When called for the ...
7 years, 3 months ago (2013-09-04 22:22:31 UTC) #3
yzshen1
LGTM Thanks! https://codereview.chromium.org/23453025/diff/21001/ppapi/thunk/ppb_network_monitor_api.h File ppapi/thunk/ppb_network_monitor_api.h (right): https://codereview.chromium.org/23453025/diff/21001/ppapi/thunk/ppb_network_monitor_api.h#newcode22 ppapi/thunk/ppb_network_monitor_api.h:22: PP_Resource* network_list, wrong indent.
7 years, 3 months ago (2013-09-05 18:45:19 UTC) #4
Sergey Ulanov
https://codereview.chromium.org/23453025/diff/21001/ppapi/thunk/ppb_network_monitor_api.h File ppapi/thunk/ppb_network_monitor_api.h (right): https://codereview.chromium.org/23453025/diff/21001/ppapi/thunk/ppb_network_monitor_api.h#newcode22 ppapi/thunk/ppb_network_monitor_api.h:22: PP_Resource* network_list, On 2013/09/05 18:45:20, yzshen1 wrote: > wrong ...
7 years, 3 months ago (2013-09-05 18:56:52 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/23453025/55001
7 years, 3 months ago (2013-09-05 18:58:27 UTC) #6
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 05:30:29 UTC) #7
Message was sent while issue was closed.
Change committed as 221582

Powered by Google App Engine
This is Rietveld 408576698