New issue
Advanced search Search tips

Issue 807724 link

Starred by 5 users

Issue metadata

Status: Started
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 714018



Sign in to add a comment

Use net::CompletionOnceCallback in place of net::CompletionCallback

Project Member Reported by eroman@chromium.org, Jan 31 2018

Issue description

Most uses of net::CompletionCallback can be translated to net::CompletionOnceCallback.

This refactor is part of the //net migration from base::Bind() --> base::BindOnce() / base::BindRepeating() (Issue 714018)

For more details see:
https://groups.google.com/a/chromium.org/d/msg/net-dev/mNBAw0tYZ2E/fCQL1DJvBwAJ
 

Comment 1 by eroman@chromium.org, Jan 31 2018

Blocking: 714018

Comment 2 by eroman@chromium.org, Jan 31 2018

Description: Show this description
Project Member

Comment 3 by bugdroid1@chromium.org, Feb 1 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d

commit bc1de2973401b6b13b3ab1b2b2a12981f0daa42d
Author: Bence Béky <bnc@chromium.org>
Date: Thu Feb 01 15:48:03 2018

Use base::ResetAndReturn() in //net.

This is in preparation for the transition to CompletionOnceCallback:
many of these lines would need to be touched anyway, and using
ResetAndReturn() is more concise, elegant, and agnostic to callback
type.

Bug: 807724
Change-Id: I5b2f06905c152931e41713ae72bd515592e86550
Reviewed-on: https://chromium-review.googlesource.com/895783
Reviewed-by: Randy Smith <rdsmith@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#533677}
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/dns/dns_transaction.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/dns/mock_mdns_socket_factory.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/dns/mojo_host_resolver_impl_unittest.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/ftp/ftp_network_transaction.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/http/http_auth_controller.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/http/http_auth_handler_mock.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/http/http_auth_handler_negotiate.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/http/http_network_transaction.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/http/http_proxy_client_socket.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/http/http_response_body_drainer_unittest.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/http/http_stream_parser.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/http/mock_http_cache.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/http/partial_data.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/proxy_resolution/mock_pac_file_fetcher.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/proxy_resolution/multi_threaded_proxy_resolver.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/socket/socket_test_util.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/socket/ssl_client_socket_impl.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/socket/ssl_server_socket_unittest.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/socket/udp_socket_posix.cc
[modify] https://crrev.com/bc1de2973401b6b13b3ab1b2b2a12981f0daa42d/net/spdy/chromium/spdy_proxy_client_socket.cc

Project Member

Comment 4 by bugdroid1@chromium.org, Feb 1 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/70b4186498db125f0d31438d0fc125c5362c1a4c

commit 70b4186498db125f0d31438d0fc125c5362c1a4c
Author: Bence Béky <bnc@chromium.org>
Date: Thu Feb 01 15:50:55 2018

Use CompletionOnceCallback in //net/spdy.

Use the shiny new CompletionOnceCallback introduced in
https://crrev.com/c/853092 instead of the
not-quite-obsolete CompletionCallback, in //net/spdy, wherever possible
without changing code outside //net/spdy.

Bug: 807724
Change-Id: I770427a3273ad15c6d215277a3f1cf1e050e19cc
Reviewed-on: https://chromium-review.googlesource.com/895706
Reviewed-by: Randy Smith <rdsmith@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#533679}
[modify] https://crrev.com/70b4186498db125f0d31438d0fc125c5362c1a4c/net/spdy/chromium/spdy_http_stream.cc
[modify] https://crrev.com/70b4186498db125f0d31438d0fc125c5362c1a4c/net/spdy/chromium/spdy_http_stream.h
[modify] https://crrev.com/70b4186498db125f0d31438d0fc125c5362c1a4c/net/spdy/chromium/spdy_session.cc
[modify] https://crrev.com/70b4186498db125f0d31438d0fc125c5362c1a4c/net/spdy/chromium/spdy_session.h
[modify] https://crrev.com/70b4186498db125f0d31438d0fc125c5362c1a4c/net/spdy/chromium/spdy_session_unittest.cc
[modify] https://crrev.com/70b4186498db125f0d31438d0fc125c5362c1a4c/net/spdy/chromium/spdy_test_util_common.cc
[modify] https://crrev.com/70b4186498db125f0d31438d0fc125c5362c1a4c/net/spdy/chromium/spdy_test_util_common.h

Project Member

Comment 5 by bugdroid1@chromium.org, Feb 5 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd

commit cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd
Author: Matt Menke <mmenke@chromium.org>
Date: Mon Feb 05 18:27:33 2018

Make net::UploadElementsReader API use net::CompletionOnceCallbacks.

Also switch net::ElementsUploadDataStream over to using OnceCallbacks
when calling into net::FileStream (Which was switched to taking
OnceCallbacks in an earlier CL).

This is part of the effort to remove use of base::Bind / base::Callback
in favor of the Once / Repeating variants.

Bug: 807724
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: I5583c4b0c58245a775f8f9e18037a5da0b483279
Reviewed-on: https://chromium-review.googlesource.com/897125
Commit-Queue: Matt Menke <mmenke@chromium.org>
Reviewed-by: Bence Béky <bnc@chromium.org>
Reviewed-by: David Vallet <dvallet@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#534430}
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/content/browser/devtools/devtools_url_interceptor_request_job.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/headless/public/util/generic_url_request_job_test.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/base/elements_upload_data_stream.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/base/elements_upload_data_stream_unittest.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/base/upload_bytes_element_reader.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/base/upload_bytes_element_reader.h
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/base/upload_bytes_element_reader_unittest.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/base/upload_data_stream.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/base/upload_data_stream.h
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/base/upload_element_reader.h
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/base/upload_file_element_reader.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/base/upload_file_element_reader.h
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/http/http_network_transaction.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/http/http_network_transaction_unittest.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/http/http_stream_parser.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/quic/chromium/quic_http_stream.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/net/spdy/chromium/spdy_http_stream.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/services/network/data_pipe_element_reader.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/services/network/data_pipe_element_reader.h
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/services/network/throttling/throttling_upload_data_stream.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/storage/browser/blob/blob_reader.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/storage/browser/blob/blob_reader.h
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/storage/browser/blob/upload_blob_element_reader.cc
[modify] https://crrev.com/cc1d3a90ec47c50215f2e1eadbe072ee2fc884dd/storage/browser/blob/upload_blob_element_reader.h

Project Member

Comment 6 by bugdroid1@chromium.org, Feb 11 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9983223cfdb9d43428c1749caaa5a01cb28cfa01

commit 9983223cfdb9d43428c1749caaa5a01cb28cfa01
Author: Bence Béky <bnc@chromium.org>
Date: Sun Feb 11 04:21:00 2018

Make ProxyClientSocket::RestartWithAuth() take CompletionOnceCallback.

Bug: 807724
Change-Id: Ieb4afbaf6986261bbd795051b18a8eb148aa0ad1
Reviewed-on: https://chromium-review.googlesource.com/908868
Reviewed-by: Eric Roman <eroman@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#535996}
[modify] https://crrev.com/9983223cfdb9d43428c1749caaa5a01cb28cfa01/net/http/http_proxy_client_socket.cc
[modify] https://crrev.com/9983223cfdb9d43428c1749caaa5a01cb28cfa01/net/http/http_proxy_client_socket.h
[modify] https://crrev.com/9983223cfdb9d43428c1749caaa5a01cb28cfa01/net/http/http_proxy_client_socket_wrapper.cc
[modify] https://crrev.com/9983223cfdb9d43428c1749caaa5a01cb28cfa01/net/http/http_proxy_client_socket_wrapper.h
[modify] https://crrev.com/9983223cfdb9d43428c1749caaa5a01cb28cfa01/net/http/proxy_client_socket.h
[modify] https://crrev.com/9983223cfdb9d43428c1749caaa5a01cb28cfa01/net/quic/chromium/quic_proxy_client_socket.cc
[modify] https://crrev.com/9983223cfdb9d43428c1749caaa5a01cb28cfa01/net/quic/chromium/quic_proxy_client_socket.h
[modify] https://crrev.com/9983223cfdb9d43428c1749caaa5a01cb28cfa01/net/spdy/chromium/spdy_proxy_client_socket.cc
[modify] https://crrev.com/9983223cfdb9d43428c1749caaa5a01cb28cfa01/net/spdy/chromium/spdy_proxy_client_socket.h

Project Member

Comment 7 by bugdroid1@chromium.org, Feb 11 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d5d65a910253b206e7dd5668fc432e01bd833959

commit d5d65a910253b206e7dd5668fc432e01bd833959
Author: Bence Béky <bnc@chromium.org>
Date: Sun Feb 11 04:28:00 2018

Remove callback argument from HttpBasicState::Initialize().

HttpBasicState::Initialize() always succeeds, so remove callback
argument and change return type to void.

Why convert CompletionCallback to CompletionOnceCallback if one can
safely remove it instead?  :)

Bug: 807724
Change-Id: I16244d0600a278139ba2e112373f95933245a1b2
Reviewed-on: https://chromium-review.googlesource.com/908635
Reviewed-by: Eric Roman <eroman@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#535997}
[modify] https://crrev.com/d5d65a910253b206e7dd5668fc432e01bd833959/net/http/http_basic_state.cc
[modify] https://crrev.com/d5d65a910253b206e7dd5668fc432e01bd833959/net/http/http_basic_state.h
[modify] https://crrev.com/d5d65a910253b206e7dd5668fc432e01bd833959/net/http/http_basic_state_unittest.cc
[modify] https://crrev.com/d5d65a910253b206e7dd5668fc432e01bd833959/net/http/http_basic_stream.cc
[modify] https://crrev.com/d5d65a910253b206e7dd5668fc432e01bd833959/net/websockets/websocket_basic_handshake_stream.cc

Project Member

Comment 8 by bugdroid1@chromium.org, Feb 13 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0

commit a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0
Author: Bence Béky <bnc@chromium.org>
Date: Tue Feb 13 21:13:39 2018

Use CompletionOnceCallback in HttpStream interface.

Take CompletionOnceCallback by value instead of CompletionCallback by
const reference in HttpStream interface and all derived classes.  Change
some private member types accordingly.  Include completion_callback.h in
net/quic/chromium/quic_chromium_client_stream.h which used to rely on it
being included transitively.  Use BindOnce() instead of Bind() for
PostTask() and PostDelayedTask() in files that are touched anyway.
Remove unused scheduled_callback_ member.  Change SpdyProxyClientSocket
private CompletionCallback members' type to CompletionOnceCallback
without changing the interface.

Bug: 807724
Change-Id: I4fb65e01a49efd2e0c4b1693399fe5ca81cbe5b7
Reviewed-on: https://chromium-review.googlesource.com/913790
Commit-Queue: Bence Béky <bnc@chromium.org>
Reviewed-by: Randy Smith <rdsmith@chromium.org>
Cr-Commit-Position: refs/heads/master@{#536477}
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/http/http_basic_stream.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/http/http_basic_stream.h
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/http/http_network_transaction_unittest.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/http/http_response_body_drainer_unittest.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/http/http_stream.h
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/http/http_stream_factory_impl_unittest.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/http/http_stream_parser.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/http/http_stream_parser.h
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/http/proxy_connect_redirect_http_stream.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/http/proxy_connect_redirect_http_stream.h
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/quic/chromium/quic_chromium_client_stream.h
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/quic/chromium/quic_http_stream.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/quic/chromium/quic_http_stream.h
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/quic/chromium/quic_stream_factory_fuzzer.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/quic/chromium/quic_stream_factory_test.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/spdy/chromium/spdy_http_stream.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/spdy/chromium/spdy_http_stream.h
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/spdy/chromium/spdy_http_stream_unittest.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/spdy/chromium/spdy_proxy_client_socket.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/spdy/chromium/spdy_proxy_client_socket.h
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/spdy/chromium/spdy_stream_test_util.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/spdy/chromium/spdy_stream_unittest.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/websockets/websocket_basic_handshake_stream.cc
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/websockets/websocket_basic_handshake_stream.h
[modify] https://crrev.com/a25e3f78429bfa7ef1fadc4a96747cd7b45a94b0/net/websockets/websocket_handshake_stream_create_helper_test.cc

Comment 9 by mmenke@chromium.org, Feb 14 2018

Labels: Network-Triaged
Project Member

Comment 10 by bugdroid1@chromium.org, Apr 25 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/61f756c9b2659a8894615498a787df7b08964327

commit 61f756c9b2659a8894615498a787df7b08964327
Author: Bence Béky <bnc@chromium.org>
Date: Wed Apr 25 14:17:53 2018

Use CompletionRepeatingCallback for io_callback_.

Many classes in //net have a private io_callback_ member that is
initialized upon class construction and is passed every time an async
operation is called.  This CL introduces CompletionRepeatingCallback and
uses it in seven classes, where this member is used multiple times.
(This part is no-op, since currently base::Callback is aliased to
base::RepeatingCallback, and base::Bind to base::BindRepeating.)

The rationale is that both a CompletionRepeatingCallback and a
CompletionOnceCallback has a scoped_refptr<BindStateBase> deep under the
hood (using a scoped_refptr for OnceCallback seems unnecessary, but this
allows efficient cast from RepeatingCallback to OnceCallback).
Instantiating such a scoped_refptr on the heap is more expensive than
copying an existing CompletionRepeatingCallback (which reuses the
BindStateBase object, only increases its reference count).  Therefore it
is better to create and reuse a CompletionRepeatingCallback then to bind
a new CompletionOnceCallback every time in classes that use io_callback_
often.

On the other hand, HttpStreamFactoryImpl::JobController::io_callback_ is
only used once, for proxy resolution, and only if there is a proxy
involved.  Therefore it is better to bind this callback at the call
site.  (This CompletionCallback will later be changed to a
CompletionOnceCallback once ProxyResolutionService::ResolveProxy()
supports that.)

Bug: 807724
Change-Id: Ib342b057b8960789514baa21afcda0820a633404
Reviewed-on: https://chromium-review.googlesource.com/1016671
Reviewed-by: Misha Efimov <mef@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553546}
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/BUILD.gn
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/base/completion_once_callback.h
[add] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/base/completion_repeating_callback.h
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/ftp/ftp_network_transaction.cc
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/ftp/ftp_network_transaction.h
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/http/http_cache_transaction.cc
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/http/http_cache_transaction.h
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/http/http_network_transaction.cc
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/http/http_network_transaction.h
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/http/http_proxy_client_socket.cc
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/http/http_proxy_client_socket.h
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/http/http_stream_factory_job.cc
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/http/http_stream_factory_job.h
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/http/http_stream_factory_job_controller.cc
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/http/http_stream_factory_job_controller.h
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/http/http_stream_parser.cc
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/http/http_stream_parser.h
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/socket/socks5_client_socket.cc
[modify] https://crrev.com/61f756c9b2659a8894615498a787df7b08964327/net/socket/socks5_client_socket.h

Project Member

Comment 11 by bugdroid1@chromium.org, Apr 26 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3a814173438e89ad8e6bc78391adbe2bd5d1404c

commit 3a814173438e89ad8e6bc78391adbe2bd5d1404c
Author: Brad Lassey <lassey@chromium.org>
Date: Thu Apr 26 03:30:21 2018

Move sockets to CompletionOnceCallbacks

changes Socket::Read(), Socket::ReadIfRead(), Socket::Write(), StreamSocket::Connect(), SocketPosix::Accept() & SocketPosix::Connect() to CompletionOnceCallback.

R=bnc@chromium.org, reillyg@chromium.org, sergeyu@chromium.org, sky@chromium.org

Bug: 807724
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo;master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: Ia363b632bf1193c40576e3ccdd93188081aca589
Reviewed-on: https://chromium-review.googlesource.com/907076
Commit-Queue: Brad Lassey <lassey@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: mark a. foltz <mfoltz@chromium.org>
Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
Reviewed-by: Stephen Lanham <slan@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553894}
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/chrome/browser/devtools/device/adb/adb_client_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/chrome/browser/devtools/device/adb/adb_client_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/chrome/browser/devtools/device/usb/android_usb_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/chrome/browser/devtools/device/usb/android_usb_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/chrome/browser/extensions/api/socket/mock_tcp_client_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/chrome/browser/extensions/api/socket/tcp_socket_unittest.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/chrome/browser/extensions/api/socket/tls_socket_unittest.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/chrome/test/chromedriver/net/adb_client_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/chromecast/net/fake_stream_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/chromecast/net/fake_stream_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/chromecast/net/mock_stream_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/components/cast_channel/cast_socket_unittest.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/components/cast_channel/cast_transport_unittest.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/content/browser/renderer_host/p2p/socket_host_test_utils.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/content/browser/renderer_host/p2p/socket_host_test_utils.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/device/bluetooth/bluetooth_socket_net.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/jingle/glue/fake_ssl_client_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/jingle/glue/fake_ssl_client_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/jingle/glue/fake_ssl_client_socket_unittest.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/dns/address_sorter_posix_unittest.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/dns/dns_transaction.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/http/http_proxy_client_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/http/http_proxy_client_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/http/http_proxy_client_socket_wrapper.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/http/http_proxy_client_socket_wrapper.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/quic/chromium/quic_chromium_packet_reader.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/quic/chromium/quic_chromium_packet_writer.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/quic/chromium/quic_proxy_client_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/quic/chromium/quic_proxy_client_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/server/http_server_unittest.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/client_socket_handle.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/client_socket_handle.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/client_socket_pool_base_unittest.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/datagram_client_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/fuzzed_datagram_client_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/fuzzed_datagram_client_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/fuzzed_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/fuzzed_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/fuzzed_socket_factory.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/socket_posix.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/socket_posix.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/socket_test_util.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/socket_test_util.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/socks5_client_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/socks5_client_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/socks_client_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/socks_client_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/ssl_client_socket_impl.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/ssl_client_socket_impl.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/ssl_client_socket_unittest.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/ssl_server_socket_impl.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/ssl_server_socket_unittest.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/stream_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/tcp_client_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/tcp_client_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/tcp_socket_posix.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/tcp_socket_posix.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/tcp_socket_win.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/tcp_socket_win.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/transport_client_socket_pool.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/transport_client_socket_pool_test_util.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/udp_client_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/udp_client_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/udp_socket_posix.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/udp_socket_posix.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/udp_socket_win.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/udp_socket_win.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/unix_domain_client_socket_posix.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/unix_domain_client_socket_posix.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/socket/websocket_endpoint_lock_manager_unittest.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/spdy/chromium/spdy_proxy_client_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/spdy/chromium/spdy_proxy_client_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/net/spdy/chromium/spdy_test_util_common.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/remoting/base/buffered_socket_writer.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/remoting/base/buffered_socket_writer.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/remoting/base/buffered_socket_writer_unittest.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/remoting/protocol/channel_multiplexer.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/remoting/protocol/fake_stream_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/remoting/protocol/fake_stream_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/remoting/protocol/p2p_stream_socket.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/remoting/protocol/pseudotcp_adapter.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/remoting/protocol/pseudotcp_adapter.h
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/remoting/protocol/ssl_hmac_channel_authenticator.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/services/network/proxy_resolving_client_socket.cc
[modify] https://crrev.com/3a814173438e89ad8e6bc78391adbe2bd5d1404c/services/network/proxy_resolving_client_socket.h

Project Member

Comment 12 by bugdroid1@chromium.org, May 21 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/92e231dfbc6e41f5fb39bb65117561b714675620

commit 92e231dfbc6e41f5fb39bb65117561b714675620
Author: Bence Béky <bnc@chromium.org>
Date: Mon May 21 13:07:06 2018

Do not reset callback after moving.

Unlike general move semantics, when a Callback (either OnceCallback or
RepeatingCallback) is moved from, it is guaranteed to be left in a null
state.  (See, for example, [1].)  This CL removes two Reset calls from
a freshly moved-from Callback, and uses std::move instead of assignment
then Reset for a third one.

[1] https://cs.chromium.org/chromium/src/base/callback_helpers.h?l=24

Bug: 807724
Change-Id: I538408b26fc0b6af601b23a669cb5447d2f9b1fe
Reviewed-on: https://chromium-review.googlesource.com/1064019
Reviewed-by: Eric Roman <eroman@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#560260}
[modify] https://crrev.com/92e231dfbc6e41f5fb39bb65117561b714675620/net/disk_cache/blockfile/sparse_control.cc
[modify] https://crrev.com/92e231dfbc6e41f5fb39bb65117561b714675620/net/socket/socket_test_util.cc
[modify] https://crrev.com/92e231dfbc6e41f5fb39bb65117561b714675620/net/spdy/spdy_proxy_client_socket.cc

Project Member

Comment 13 by bugdroid1@chromium.org, May 24 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/96ef0672dcbdc5fedbd8b51e9de44dd754ef7ea8

commit 96ef0672dcbdc5fedbd8b51e9de44dd754ef7ea8
Author: Bence Béky <bnc@chromium.org>
Date: Thu May 24 16:56:49 2018

Do not check if callback is null in test Socket classes.

Do not check if callback is null in test-only AsyncSocket subclasses in
RunCallback().  If the method was supposed to handle the case of null
callback, it should be called MaybeRunCallback() instead.

Add DCHECKs on callback at call sites to document expectations.

Also, avoid double move when unnecessary.

Also, fix GCMConnectionHandlerImplTests.  Calling
MockTCPClientSocket::Connect() with null callback on ASYNC mock data
is not consistent with the async idiom used in //net.  Sure it didn't
use to blow up, because MockClientSocket::RunCallback() special-cased
null callbacks.  :(

Also, use make_unique instead of new throughout
google_apis/gcm/engine/connection_handler_impl_unittest.cc.

Bug: 807724

Change-Id: I3adb8d2a09c87fa004b1b4e7a8cf6f0edff064a6
Reviewed-on: https://chromium-review.googlesource.com/1064193
Commit-Queue: Bence Béky <bnc@chromium.org>
Reviewed-by: Eric Roman <eroman@chromium.org>
Reviewed-by: Nicolas Zea <zea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#561528}
[modify] https://crrev.com/96ef0672dcbdc5fedbd8b51e9de44dd754ef7ea8/google_apis/gcm/engine/connection_handler_impl_unittest.cc
[modify] https://crrev.com/96ef0672dcbdc5fedbd8b51e9de44dd754ef7ea8/net/socket/socket_test_util.cc

Project Member

Comment 14 by bugdroid1@chromium.org, May 25 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cc5b88a2b0a60ed77632a1da38e308a472d80f7a

commit cc5b88a2b0a60ed77632a1da38e308a472d80f7a
Author: Bence Béky <bnc@chromium.org>
Date: Fri May 25 20:24:17 2018

Use CompletionOnceCallback in //net/proxy_resolution.

Change most of arguments of type CompletionCallback by constant reference to
CompletionOnceCallback by value, and change most const or non-const
CompletionCallback type members to non-const CompletionOnceCallback in
//net/proxy_resolution, and in some other places as necessary.  This is part of
//the larger transition effort described on the bug.

In addition to changing type, also:
* avoid move to local variable when unnecessary;
* remove unused MockAsyncProxyResolver::callback() method;
* inline ProxyResolutionService::InitProxyResolver::DoCallback() and
  PacFileDecider::DoCallback(), both only called once;
* include completion_callback.h in //chromeos where
  CompletionCallback is used but was only transitively included.

Bug: 807724
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: Ib9e08f54988abb6655f2efd68fc6169ff12e9b20
Reviewed-on: https://chromium-review.googlesource.com/1066291
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Eric Roman <eroman@chromium.org>
Reviewed-by: Scott Graham <scottmg@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#561992}
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/chromeos/dbus/services/proxy_resolution_service_provider_unittest.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/chromeos/network/dhcp_pac_file_fetcher_chromeos.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/chromeos/network/dhcp_pac_file_fetcher_chromeos.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/http/http_network_transaction_unittest.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/http/http_stream_factory_job_controller_unittest.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/dhcp_pac_file_adapter_fetcher_win.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/dhcp_pac_file_adapter_fetcher_win.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/dhcp_pac_file_fetcher.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/dhcp_pac_file_fetcher.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/dhcp_pac_file_fetcher_factory.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/dhcp_pac_file_fetcher_win.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/dhcp_pac_file_fetcher_win.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/dhcp_pac_file_fetcher_win_unittest.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/mock_pac_file_fetcher.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/mock_pac_file_fetcher.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/mock_proxy_resolver.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/mock_proxy_resolver.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/multi_threaded_proxy_resolver.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/multi_threaded_proxy_resolver.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/multi_threaded_proxy_resolver_unittest.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/network_delegate_error_observer_unittest.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/pac_file_decider.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/pac_file_decider.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/pac_file_decider_unittest.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/pac_file_fetcher.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/pac_file_fetcher_impl.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/pac_file_fetcher_impl.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/pac_file_fetcher_impl_unittest.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolution_service.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolution_service.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolver.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolver_factory.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolver_mac.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolver_mac.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolver_v8_tracing.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolver_v8_tracing.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolver_v8_tracing_unittest.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolver_v8_tracing_wrapper.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolver_v8_tracing_wrapper.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolver_v8_tracing_wrapper_unittest.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolver_v8_unittest.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolver_winhttp.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/proxy_resolution/proxy_resolver_winhttp.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/net/url_request/url_request_ftp_job_unittest.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/services/network/proxy_resolver_factory_mojo.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/services/network/proxy_resolver_factory_mojo.h
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/services/proxy_resolver/proxy_resolver_factory_impl_unittest.cc
[modify] https://crrev.com/cc5b88a2b0a60ed77632a1da38e308a472d80f7a/services/proxy_resolver/proxy_resolver_impl_unittest.cc

Project Member

Comment 15 by bugdroid1@chromium.org, May 26 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/130902aad4e06d6d25aa1bcb2de6d564584adf22

commit 130902aad4e06d6d25aa1bcb2de6d564584adf22
Author: Bence Béky <bnc@chromium.org>
Date: Sat May 26 00:36:01 2018

Store callback in DhcpPacFileFetcherChromeos.

The //net idiom for async calls is that they take a callback, and either
* return ERR_IO_PENDING, and later call this callback (unless
  cancelled), or
* return something other than ERR_IO_PENDING and never call the callback.

DhcpPacFileFetcherChromeos has a Fetch() method which always returns
asynchronously.  This class creates a PacFileFetcher, and in its
ContinueFetch() method calls Fetch() on this PacFileFetcher.
PacFileFetcher::Fetch() can return synchronously or asynchronously.  In
the former case, DhcpPacFileFetcherChromeos must call the callback, in
the latter case, PacFileFetcher will.  Currently this is implemented by
calling AdaptCallbackForRepeating() in
DhcpPacFileFetcherChromeos::ContinueFetch(), which turns the
OnceCallback into a RepeatingCallback so that it can be passed in to
PacFileFetcher::Fetch() while also retained.  However,
AdaptCallbackForRepeating() is not meant to be used other than
temporarily for transitioning from Callback to OnceCallback (which is
exactly what we are doing).

This CL makes DhcpPacFileFetcherChromeos save the callback in a private
member, and passes in a bound method to PacFileFetcher::Fetch().  This
way there is no need to use AdaptCallbackForRepeating().

If DhcpPacFileFetcherChromeos::Fetch() is cancelled (Cancel() is called
or the class instance is destroyed), then PacFileFetcher is
appropriately notified and/or destroyed, so the (invalidated) callback
is never run.

This is a follow-up to
https://crrev.com/c/1066291/9/chromeos/network/dhcp_pac_file_fetcher_chromeos.cc#94.

Bug: 730593, 807724
Change-Id: Ic9597114bf54893a98990d56bdb1682cbf4aef5f
Reviewed-on: https://chromium-review.googlesource.com/1073192
Commit-Queue: Bence Béky <bnc@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#562083}
[modify] https://crrev.com/130902aad4e06d6d25aa1bcb2de6d564584adf22/chromeos/network/dhcp_pac_file_fetcher_chromeos.cc
[modify] https://crrev.com/130902aad4e06d6d25aa1bcb2de6d564584adf22/chromeos/network/dhcp_pac_file_fetcher_chromeos.h

Looking at net/disk_cache ones
Try jobs willing, https://chromium-review.googlesource.com/c/chromium/src/+/1085855 is a NetworkDelegate one.
Project Member

Comment 18 by bugdroid1@chromium.org, Jun 7 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb

commit 4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb
Author: Maks Orlovich <morlovich@chromium.org>
Date: Thu Jun 07 11:39:44 2018

Migrate disk_cache API to CompletionOnceCallback.

The users, including tests were not touched except when they had test subclasses and the like.

Bug: 807724
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Change-Id: Ide1b12faccf01adf252aff3671f5095cb06231cf
Reviewed-on: https://chromium-review.googlesource.com/1077057
Reviewed-by: Antoine Labour <piman@chromium.org>
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Reviewed-by: Bence Béky <bnc@chromium.org>
Commit-Queue: Maks Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565232}
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/content/browser/cache_storage/cache_storage_cache_unittest.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/gpu/ipc/host/shader_disk_cache.h
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/blockfile/backend_impl.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/blockfile/backend_impl.h
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/blockfile/entry_impl.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/blockfile/entry_impl.h
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/blockfile/in_flight_backend_io.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/blockfile/in_flight_backend_io.h
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/blockfile/sparse_control.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/blockfile/sparse_control.h
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/disk_cache.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/disk_cache.h
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/disk_cache_perftest.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/memory/mem_backend_impl.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/memory/mem_backend_impl.h
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/memory/mem_entry_impl.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/memory/mem_entry_impl.h
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/simple/simple_backend_impl.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/simple/simple_backend_impl.h
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/simple/simple_entry_impl.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/simple/simple_entry_impl.h
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/simple/simple_entry_operation.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/simple/simple_entry_operation.h
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/simple/simple_index.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/simple/simple_index.h
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/simple/simple_index_delegate.h
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/disk_cache/simple/simple_index_unittest.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/http/mock_http_cache.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/http/mock_http_cache.h
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/net/tools/disk_cache_memory_test/disk_cache_memory_test.cc
[modify] https://crrev.com/4acf0b580ea8cb8a4763d97dc8a77a4da959e0cb/storage/browser/blob/blob_reader_unittest.cc

Project Member

Comment 19 by bugdroid1@chromium.org, Jun 11 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9acb534c8778bd8ce29858742a7441df47fe60be

commit 9acb534c8778bd8ce29858742a7441df47fe60be
Author: Bence Béky <bnc@chromium.org>
Date: Mon Jun 11 14:15:38 2018

Use CompletionOnceCallback in WebSocketBasicStream::Adapter.

Bug: 807724
Change-Id: Idf518b751e1b0399c14c33f1be485da9be9247aa
Reviewed-on: https://chromium-review.googlesource.com/1091959
Reviewed-by: Adam Rice <ricea@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565991}
[modify] https://crrev.com/9acb534c8778bd8ce29858742a7441df47fe60be/net/websockets/websocket_basic_stream.h
[modify] https://crrev.com/9acb534c8778bd8ce29858742a7441df47fe60be/net/websockets/websocket_basic_stream_adapters.cc
[modify] https://crrev.com/9acb534c8778bd8ce29858742a7441df47fe60be/net/websockets/websocket_basic_stream_adapters.h

Project Member

Comment 21 by bugdroid1@chromium.org, Jun 12 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d1f287bfc69412932176df03ee22815efca2899b

commit d1f287bfc69412932176df03ee22815efca2899b
Author: David Benjamin <davidben@chromium.org>
Date: Tue Jun 12 01:57:20 2018

Switch NetworkDelegate to OnceCallbacks.

Along the way, clear out unnecessary overrides of NetworkDelegateImpl
subclasses that are just using the default no-op behavior anyway. This
exposes that the ChromeNetworkDelegate -> ChromeExtensionsNetworkDelegate
were calling the otherwise private On* hooks. Replace them with Notify*.

This also exposes that LayeredNetworkDelegate was passing the callbacks
into *Internal even though it was not legal for those functions to
call them. Remove those parameters.

Bug: 807724
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I9631c65db376cbacb0f04cc45ff68b9ebe7503cd
Reviewed-on: https://chromium-review.googlesource.com/1085855
Commit-Queue: David Benjamin <davidben@chromium.org>
Reviewed-by: Eugene But <eugenebut@chromium.org>
Reviewed-by: Sergey Volk <servolk@chromium.org>
Reviewed-by: Ryan Sturm <ryansturm@chromium.org>
Reviewed-by: Bo <boliu@chromium.org>
Reviewed-by: Devlin <rdevlin.cronin@chromium.org>
Reviewed-by: Andrei Kapishnikov <kapishnikov@chromium.org>
Reviewed-by: Peter Beverloo <peter@chromium.org>
Reviewed-by: Sami Kyöstilä <skyostil@chromium.org>
Reviewed-by: Eric Roman <eroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#566262}
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/android_webview/browser/net/aw_network_delegate.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/android_webview/browser/net/aw_network_delegate.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/chrome/browser/net/chrome_extensions_network_delegate.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/chrome/browser/net/chrome_extensions_network_delegate.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/chrome/browser/net/chrome_network_delegate.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/chrome/browser/net/chrome_network_delegate.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/chromecast/browser/cast_network_delegate.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/chromecast/browser/cast_network_delegate.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/chromecast/browser/cast_network_delegate_unittest.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/chromecast/browser/cast_network_request_interceptor.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/chromecast/browser/cast_network_request_interceptor.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/components/cronet/cronet_url_request_context.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/components/data_use_measurement/core/data_use_network_delegate.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/components/data_use_measurement/core/data_use_network_delegate.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/content/shell/browser/shell_network_delegate.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/content/shell/browser/shell_network_delegate.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/extensions/browser/api/web_request/web_request_api.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/extensions/browser/api/web_request/web_request_api.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/extensions/shell/browser/shell_network_delegate.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/extensions/shell/browser/shell_network_delegate.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/headless/lib/browser/headless_network_delegate.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/headless/lib/browser/headless_network_delegate.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/ios/chrome/browser/net/ios_chrome_network_delegate.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/ios/chrome/browser/net/ios_chrome_network_delegate.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/ios/web/shell/shell_network_delegate.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/ios/web/shell/shell_network_delegate.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/ios/web_view/internal/web_view_network_delegate.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/ios/web_view/internal/web_view_network_delegate.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/base/layered_network_delegate.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/base/layered_network_delegate.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/base/layered_network_delegate_unittest.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/base/network_delegate.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/base/network_delegate.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/base/network_delegate_impl.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/base/network_delegate_impl.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/proxy_resolution/network_delegate_error_observer_unittest.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/proxy_resolution/pac_file_fetcher_impl_unittest.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/url_request/report_sender_unittest.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/url_request/url_request.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/url_request/url_request.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/url_request/url_request_context_builder.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/url_request/url_request_http_job.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/url_request/url_request_test_util.cc
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/url_request/url_request_test_util.h
[modify] https://crrev.com/d1f287bfc69412932176df03ee22815efca2899b/net/url_request/url_request_unittest.cc

Project Member

Comment 22 by bugdroid1@chromium.org, Jun 12 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/046f8c858f843b440b76d0943f17c6aa439facc4

commit 046f8c858f843b440b76d0943f17c6aa439facc4
Author: Bence Béky <bnc@chromium.org>
Date: Tue Jun 12 02:26:04 2018

Use CompletionOnceCallback in HttpTransaction.

Bug: 807724
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: I91eea9da43ad78ca5f0529d81735a957df9c098b
Reviewed-on: https://chromium-review.googlesource.com/1092931
Commit-Queue: Bence Béky <bnc@chromium.org>
Reviewed-by: Helen Li <xunjieli@chromium.org>
Reviewed-by: Zhongyi Shi <zhongyi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#566278}
[modify] https://crrev.com/046f8c858f843b440b76d0943f17c6aa439facc4/net/http/failing_http_transaction_factory.cc
[modify] https://crrev.com/046f8c858f843b440b76d0943f17c6aa439facc4/net/http/http_cache_transaction.cc
[modify] https://crrev.com/046f8c858f843b440b76d0943f17c6aa439facc4/net/http/http_cache_transaction.h
[modify] https://crrev.com/046f8c858f843b440b76d0943f17c6aa439facc4/net/http/http_network_transaction.cc
[modify] https://crrev.com/046f8c858f843b440b76d0943f17c6aa439facc4/net/http/http_network_transaction.h
[modify] https://crrev.com/046f8c858f843b440b76d0943f17c6aa439facc4/net/http/http_transaction.h
[modify] https://crrev.com/046f8c858f843b440b76d0943f17c6aa439facc4/net/http/http_transaction_test_util.cc
[modify] https://crrev.com/046f8c858f843b440b76d0943f17c6aa439facc4/net/http/http_transaction_test_util.h
[modify] https://crrev.com/046f8c858f843b440b76d0943f17c6aa439facc4/services/network/throttling/throttling_network_transaction.cc
[modify] https://crrev.com/046f8c858f843b440b76d0943f17c6aa439facc4/services/network/throttling/throttling_network_transaction.h

Project Member

Comment 23 by bugdroid1@chromium.org, Jun 13 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8ddc2490dd771577c8478be8681e04b4f99a6956

commit 8ddc2490dd771577c8478be8681e04b4f99a6956
Author: Bence Béky <bnc@chromium.org>
Date: Wed Jun 13 01:02:04 2018

Use CompletionOnceCallback in test helper classes.

Change return value callback method from CompletionCallback to
CompletionOnceCallback in all TestCompletionCallbackBase derived classes
except for TestCompletionCallback, and use BindOnce instead of Bind.
Remove CompletionCallback private members and bind at method call time
instead of construction time.

Bug: 807724
Change-Id: I2931d7a0ff5086a8733b8a27a7940d90f95ae683
Reviewed-on: https://chromium-review.googlesource.com/1097200
Reviewed-by: Zhongyi Shi <zhongyi@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#566667}
[modify] https://crrev.com/8ddc2490dd771577c8478be8681e04b4f99a6956/net/http/http_cache_unittest.cc
[modify] https://crrev.com/8ddc2490dd771577c8478be8681e04b4f99a6956/net/quic/chromium/quic_http_stream_test.cc
[modify] https://crrev.com/8ddc2490dd771577c8478be8681e04b4f99a6956/net/quic/chromium/quic_proxy_client_socket_unittest.cc
[modify] https://crrev.com/8ddc2490dd771577c8478be8681e04b4f99a6956/net/socket/client_socket_pool_base_unittest.cc
[modify] https://crrev.com/8ddc2490dd771577c8478be8681e04b4f99a6956/net/socket/socket_test_util.cc
[modify] https://crrev.com/8ddc2490dd771577c8478be8681e04b4f99a6956/net/socket/socket_test_util.h
[modify] https://crrev.com/8ddc2490dd771577c8478be8681e04b4f99a6956/net/socket/ssl_client_socket_unittest.cc
[modify] https://crrev.com/8ddc2490dd771577c8478be8681e04b4f99a6956/net/socket/transport_client_socket_pool_unittest.cc
[modify] https://crrev.com/8ddc2490dd771577c8478be8681e04b4f99a6956/net/spdy/spdy_http_stream_unittest.cc
[modify] https://crrev.com/8ddc2490dd771577c8478be8681e04b4f99a6956/net/spdy/spdy_network_transaction_unittest.cc
[modify] https://crrev.com/8ddc2490dd771577c8478be8681e04b4f99a6956/net/spdy/spdy_proxy_client_socket_unittest.cc
[modify] https://crrev.com/8ddc2490dd771577c8478be8681e04b4f99a6956/net/websockets/websocket_basic_stream_adapters_test.cc

Project Member

Comment 24 by bugdroid1@chromium.org, Jun 13 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/0f26a5815e108f870a08eadc094e86af9830d72b

commit 0f26a5815e108f870a08eadc094e86af9830d72b
Author: Bence Béky <bnc@chromium.org>
Date: Wed Jun 13 03:18:40 2018

Use CompletionOnceCallback in //net/dns.

Use CompletionOnceCallback in most places in //net/dns, except for
dns_transaction.cc.

Bug: 807724
Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.linux:linux_mojo;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: Ie2a8ad3ed9e5285761d7321ec337e888b55b9dd9
Reviewed-on: https://chromium-review.googlesource.com/1091596
Reviewed-by: Eric Roman <eroman@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Reviewed-by: Helen Li <xunjieli@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#566704}
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/chromeos/network/host_resolver_impl_chromeos.cc
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/chromeos/network/host_resolver_impl_chromeos.h
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/components/cronet/stale_host_resolver.cc
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/components/cronet/stale_host_resolver.h
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/content/test/proxy_service_mojo_unittest.cc
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/dns/address_sorter_unittest.cc
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/dns/dns_transaction.cc
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/dns/host_resolver.h
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/dns/host_resolver_impl.cc
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/dns/host_resolver_impl.h
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/dns/host_resolver_mojo.cc
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/dns/host_resolver_mojo.h
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/dns/mapped_host_resolver.cc
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/dns/mapped_host_resolver.h
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/dns/mock_host_resolver.cc
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/dns/mock_host_resolver.h
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/dns/mojo_host_resolver_impl_unittest.cc
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/http/http_stream_factory_job_controller_unittest.cc
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/proxy_resolution/proxy_resolver_v8_tracing_unittest.cc
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/proxy_resolution/proxy_resolver_v8_tracing_wrapper_unittest.cc
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/socket/socks_client_socket.h
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/net/socket/socks_client_socket_unittest.cc
[modify] https://crrev.com/0f26a5815e108f870a08eadc094e86af9830d72b/services/network/proxy_resolver_factory_mojo_unittest.cc

Project Member

Comment 25 by bugdroid1@chromium.org, Jun 13 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/48f538f44a608635add802fcacfdb463d07718a1

commit 48f538f44a608635add802fcacfdb463d07718a1
Author: Bence Béky <bnc@chromium.org>
Date: Wed Jun 13 11:17:07 2018

Add Backend* to HttpCacheDataRemover.

Instead of creating a unique_ptr<Backend*>, passing around ownership,
and having to worry about lifetime, just use a class member, since the
callback lifetime is already tied to the lifetime of the
HttpCacheDataRemover instance.

This also enables changing callback type from Repeating to Once.

Bug: 807724
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: Iae84f3729ed077c0599f3133cf129624bc02c1d7
Reviewed-on: https://chromium-review.googlesource.com/1093056
Reviewed-by: Helen Li <xunjieli@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#566798}
[modify] https://crrev.com/48f538f44a608635add802fcacfdb463d07718a1/services/network/http_cache_data_remover.cc
[modify] https://crrev.com/48f538f44a608635add802fcacfdb463d07718a1/services/network/http_cache_data_remover.h

Project Member

Comment 26 by bugdroid1@chromium.org, Jun 18 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/358f2b260e0b8081fffe396f9754835d169b58d5

commit 358f2b260e0b8081fffe396f9754835d169b58d5
Author: Bence Béky <bnc@chromium.org>
Date: Mon Jun 18 13:49:46 2018

Use CompletionOnceCallback in FtpTransaction.

Bug: 807724
Change-Id: I018eb874f2e9097dba9d8acdf58d6a18c569cc9d
Reviewed-on: https://chromium-review.googlesource.com/1100354
Reviewed-by: Zhongyi Shi <zhongyi@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567988}
[modify] https://crrev.com/358f2b260e0b8081fffe396f9754835d169b58d5/net/ftp/ftp_network_transaction.cc
[modify] https://crrev.com/358f2b260e0b8081fffe396f9754835d169b58d5/net/ftp/ftp_network_transaction.h
[modify] https://crrev.com/358f2b260e0b8081fffe396f9754835d169b58d5/net/ftp/ftp_transaction.h

Project Member

Comment 27 by bugdroid1@chromium.org, Jun 27 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ed0b9e03161d3c15a4866db5f286c3df38b6393a

commit ed0b9e03161d3c15a4866db5f286c3df38b6393a
Author: Bence Béky <bnc@chromium.org>
Date: Wed Jun 27 18:17:46 2018

Use OnceCallback in ChannelIDService.

Use OnceCallback instead of Callback, and CompletionOnceCallback instead
of CompletionCallback, in ChannelIDService.  Also restructure

ChannelIDService::JoinToInFlightRequest() to use early return if in
flight request in not found.

Bug: 807724
Change-Id: I45b55b0713ca9460fda8480d4f8ac14d5ead4435
Reviewed-on: https://chromium-review.googlesource.com/1117029
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570844}
[modify] https://crrev.com/ed0b9e03161d3c15a4866db5f286c3df38b6393a/net/ssl/channel_id_service.cc
[modify] https://crrev.com/ed0b9e03161d3c15a4866db5f286c3df38b6393a/net/ssl/channel_id_service.h

Project Member

Comment 28 by bugdroid1@chromium.org, Jun 27 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d8a21fc306482e3e739aed85a9c34567afe567d5

commit d8a21fc306482e3e739aed85a9c34567afe567d5
Author: Bence Béky <bnc@chromium.org>
Date: Wed Jun 27 18:29:58 2018

Use CompletionOnceCallback in //net/quic/chromium.

Use CompletionOnceCallback instead of CompletionCallback in
//net/quic/chromium.  Most of these changes are private member
types and method signatures, some are temporaries passed into already
changed APIs, and in one instance an unused member is removed.  In
another instance, CompletionRepeatingCallback is used for a member that
is expected to be used multiple times.

Most affected callback members are already always run through
ResetAndReturn, making it clear that it is safe to change type to
CompletionOnceCallback.

Bug: 807724
Change-Id: I94b57cec2db22bd91a09478b494185a48614266a
Reviewed-on: https://chromium-review.googlesource.com/1116898
Commit-Queue: Ryan Hamilton <rch@chromium.org>
Reviewed-by: Ryan Hamilton <rch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570848}
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/bidirectional_stream_quic_impl_unittest.cc
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/properties_based_quic_server_info.h
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/properties_based_quic_server_info_test.cc
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_chromium_client_session.cc
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_chromium_client_session.h
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_chromium_client_stream.cc
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_chromium_client_stream.h
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_chromium_packet_writer.cc
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_chromium_packet_writer.h
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_end_to_end_unittest.cc
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_http_stream_test.cc
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_network_transaction_unittest.cc
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_proxy_client_socket_unittest.cc
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_server_info.h
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_stream_factory.cc
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_stream_factory.h
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_stream_factory_fuzzer.cc
[modify] https://crrev.com/d8a21fc306482e3e739aed85a9c34567afe567d5/net/quic/chromium/quic_stream_factory_test.cc

Project Member

Comment 30 by bugdroid1@chromium.org, Jun 29 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac

commit 5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac
Author: Bence Béky <bnc@chromium.org>
Date: Fri Jun 29 18:31:55 2018

Use CompletionOnceCallback in net::SourceStream.

Bug: 807724
Change-Id: Iff21f7cc6ba5c3005b440fb7b6d51fdccbbd230b
Reviewed-on: https://chromium-review.googlesource.com/1117325
Reviewed-by: Charlie Harrison <csharrison@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#571558}
[modify] https://crrev.com/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac/chromeos/printing/ppd_line_reader.cc
[modify] https://crrev.com/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac/content/browser/loader/data_pipe_to_source_stream.cc
[modify] https://crrev.com/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac/content/browser/loader/data_pipe_to_source_stream.h
[modify] https://crrev.com/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac/net/filter/filter_source_stream.cc
[modify] https://crrev.com/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac/net/filter/filter_source_stream.h
[modify] https://crrev.com/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac/net/filter/fuzzed_source_stream.cc
[modify] https://crrev.com/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac/net/filter/fuzzed_source_stream.h
[modify] https://crrev.com/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac/net/filter/gzip_source_stream_unittest.cc
[modify] https://crrev.com/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac/net/filter/mock_source_stream.cc
[modify] https://crrev.com/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac/net/filter/mock_source_stream.h
[modify] https://crrev.com/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac/net/filter/source_stream.h
[modify] https://crrev.com/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac/net/tools/content_decoder_tool/content_decoder_tool.cc
[modify] https://crrev.com/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac/net/url_request/url_request_job.cc
[modify] https://crrev.com/5f11548b7ddf26564dbb1bbf5ebf001db48ac6ac/net/url_request/url_request_job.h

Project Member

Comment 31 by bugdroid1@chromium.org, Jul 1

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cd8dc35dcb43610ae1ecb03f2b84b1f678d5dc8a

commit cd8dc35dcb43610ae1ecb03f2b84b1f678d5dc8a
Author: Bence Béky <bnc@chromium.org>
Date: Sun Jul 01 01:46:42 2018

Use OnceCallback and RepeatingCallback in disk_cache_perftest.cc.

Change CompletionCallback argument type to CompletionOnceCallback in
methods that guarantee that the callback will only be called once.

Change CompletionCallback local variables to CompletionRepeatingCallback
where the callback is locally passed to a function, but then called
directly if the function returns synchronously.

Bug: 807724
Change-Id: Ia7768504ce564ef2853662e3e39d752b534fa3a9
Reviewed-on: https://chromium-review.googlesource.com/1120748
Reviewed-by: Eric Roman <eroman@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#571787}
[modify] https://crrev.com/cd8dc35dcb43610ae1ecb03f2b84b1f678d5dc8a/net/disk_cache/disk_cache_perftest.cc

Project Member

Comment 32 by bugdroid1@chromium.org, Jul 3

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5a8662bebfeaf6f688e1ce048c0ed800344d384e

commit 5a8662bebfeaf6f688e1ce048c0ed800344d384e
Author: Bence Béky <bnc@chromium.org>
Date: Tue Jul 03 13:04:03 2018

Use CompletionOnceCallback in RequestSocket().

Bug: 807724
Change-Id: I87cc7b2909df287ae7e70e8726eac63af2e541ab
Reviewed-on: https://chromium-review.googlesource.com/1120745
Reviewed-by: Eric Roman <eroman@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#572184}
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/http/http_network_transaction_unittest.cc
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/http/http_proxy_client_socket_pool.cc
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/http/http_proxy_client_socket_pool.h
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/http/http_stream_factory_unittest.cc
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/socket/client_socket_pool.h
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/socket/client_socket_pool_base.cc
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/socket/client_socket_pool_base.h
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/socket/client_socket_pool_base_unittest.cc
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/socket/socket_test_util.cc
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/socket/socket_test_util.h
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/socket/socks_client_socket_pool.cc
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/socket/socks_client_socket_pool.h
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/socket/ssl_client_socket_pool.cc
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/socket/ssl_client_socket_pool.h
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/socket/transport_client_socket_pool.cc
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/socket/transport_client_socket_pool.h
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/socket/websocket_transport_client_socket_pool.cc
[modify] https://crrev.com/5a8662bebfeaf6f688e1ce048c0ed800344d384e/net/socket/websocket_transport_client_socket_pool.h

Project Member

Comment 33 by bugdroid1@chromium.org, Jul 4

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9387759c8e42d713753033bce21ece2f2b66c009

commit 9387759c8e42d713753033bce21ece2f2b66c009
Author: Bence Béky <bnc@chromium.org>
Date: Wed Jul 04 18:51:33 2018

Use CompletionOnceCallback in CertVerifier.

Bug: 807724
Cq-Include-Trybots: luci.chromium.try:linux_mojo;master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: Ia2e472c92d338030a6da197c4e67c2af9fd4b076
Reviewed-on: https://chromium-review.googlesource.com/1117917
Reviewed-by: Helen Li <xunjieli@chromium.org>
Reviewed-by: Ryan Hamilton <rch@chromium.org>
Reviewed-by: Dmitry Titov <dimich@chromium.org>
Reviewed-by: mark a. foltz <mfoltz@chromium.org>
Reviewed-by: Kunihiko Sakamoto <ksakamoto@chromium.org>
Reviewed-by: Lambros Lambrou <lambroslambrou@chromium.org>
Reviewed-by: Mihai Sardarescu <msarda@chromium.org>
Reviewed-by: Maksim Ivanov <emaxx@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#572629}
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/chrome/browser/chromeos/policy/policy_cert_verifier.cc
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/chrome/browser/chromeos/policy/policy_cert_verifier.h
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/chrome/browser/io_thread.cc
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/chrome/browser/net/trial_comparison_cert_verifier.cc
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/chrome/browser/net/trial_comparison_cert_verifier.h
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/chrome/browser/profiles/profile_io_data.cc
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/components/cast_channel/cast_socket.cc
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/components/cronet/ios/Cronet.mm
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/content/browser/web_package/signed_exchange_handler_unittest.cc
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/google_apis/gcm/tools/mcs_probe.cc
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/net/cert/caching_cert_verifier.cc
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/net/cert/caching_cert_verifier.h
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/net/cert/cert_verifier.h
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/net/cert/client_cert_verifier.h
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/net/cert/mock_cert_verifier.cc
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/net/cert/mock_cert_verifier.h
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/net/cert/mock_client_cert_verifier.cc
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/net/cert/mock_client_cert_verifier.h
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/net/cert/multi_threaded_cert_verifier.cc
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/net/cert/multi_threaded_cert_verifier.h
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/net/quic/chromium/crypto/proof_verifier_chromium_test.cc
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/remoting/protocol/ssl_hmac_channel_authenticator.cc
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/services/network/ignore_errors_cert_verifier.cc
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/services/network/ignore_errors_cert_verifier.h
[modify] https://crrev.com/9387759c8e42d713753033bce21ece2f2b66c009/services/network/network_context.cc

Project Member

Comment 35 by bugdroid1@chromium.org, Jul 16

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/920b13e93ff72ba0ab3d9c83143ebd8e33805701

commit 920b13e93ff72ba0ab3d9c83143ebd8e33805701
Author: Bence Béky <bnc@chromium.org>
Date: Mon Jul 16 13:15:37 2018

Use CompletionOnceCallback in ServerSocket.

Bug: 807724
Cq-Include-Trybots: luci.chromium.try:linux_mojo
Change-Id: Idb037fd78ab3f092af08bef665c4f65c786cdd53
Reviewed-on: https://chromium-review.googlesource.com/1100900
Reviewed-by: Eric Roman <eroman@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
Reviewed-by: Helen Li <xunjieli@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575237}
[modify] https://crrev.com/920b13e93ff72ba0ab3d9c83143ebd8e33805701/content/browser/devtools/devtools_http_handler_unittest.cc
[modify] https://crrev.com/920b13e93ff72ba0ab3d9c83143ebd8e33805701/content/browser/renderer_host/p2p/socket_host_tcp_server.cc
[modify] https://crrev.com/920b13e93ff72ba0ab3d9c83143ebd8e33805701/content/browser/renderer_host/p2p/socket_host_tcp_server.h
[modify] https://crrev.com/920b13e93ff72ba0ab3d9c83143ebd8e33805701/content/browser/renderer_host/p2p/socket_host_tcp_server_unittest.cc
[modify] https://crrev.com/920b13e93ff72ba0ab3d9c83143ebd8e33805701/net/socket/fuzzed_server_socket.cc
[modify] https://crrev.com/920b13e93ff72ba0ab3d9c83143ebd8e33805701/net/socket/fuzzed_server_socket.h
[modify] https://crrev.com/920b13e93ff72ba0ab3d9c83143ebd8e33805701/net/socket/server_socket.h
[modify] https://crrev.com/920b13e93ff72ba0ab3d9c83143ebd8e33805701/net/socket/tcp_server_socket.cc
[modify] https://crrev.com/920b13e93ff72ba0ab3d9c83143ebd8e33805701/net/socket/tcp_server_socket.h
[modify] https://crrev.com/920b13e93ff72ba0ab3d9c83143ebd8e33805701/net/socket/tcp_socket_win.cc
[modify] https://crrev.com/920b13e93ff72ba0ab3d9c83143ebd8e33805701/net/socket/tcp_socket_win.h
[modify] https://crrev.com/920b13e93ff72ba0ab3d9c83143ebd8e33805701/net/socket/unix_domain_server_socket_posix.cc
[modify] https://crrev.com/920b13e93ff72ba0ab3d9c83143ebd8e33805701/net/socket/unix_domain_server_socket_posix.h
[modify] https://crrev.com/920b13e93ff72ba0ab3d9c83143ebd8e33805701/services/network/tcp_socket_unittest.cc

Project Member

Comment 36 by bugdroid1@chromium.org, Jul 16

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/41cb42ce79209c79ae5896feffa50ed1599b4964

commit 41cb42ce79209c79ae5896feffa50ed1599b4964
Author: Bence Béky <bnc@chromium.org>
Date: Mon Jul 16 14:36:25 2018

Revert "Use CompletionOnceCallback in ServerSocket."

This reverts commit 920b13e93ff72ba0ab3d9c83143ebd8e33805701.

Reason for revert: developer reports Chrome crashes on every launch.

Original change's description:
> Use CompletionOnceCallback in ServerSocket.
> 
> Bug: 807724
> Cq-Include-Trybots: luci.chromium.try:linux_mojo
> Change-Id: Idb037fd78ab3f092af08bef665c4f65c786cdd53
> Reviewed-on: https://chromium-review.googlesource.com/1100900
> Reviewed-by: Eric Roman <eroman@chromium.org>
> Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
> Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
> Reviewed-by: Helen Li <xunjieli@chromium.org>
> Commit-Queue: Bence Béky <bnc@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#575237}

TBR=eroman@chromium.org,caseq@chromium.org,sergeyu@chromium.org,bnc@chromium.org,xunjieli@chromium.org

Change-Id: I4f9d3038a48070d2e78b8a2db319f0830abc31d6
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 807724
Cq-Include-Trybots: luci.chromium.try:linux_mojo
Reviewed-on: https://chromium-review.googlesource.com/1138353
Reviewed-by: Bence Béky <bnc@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575252}
[modify] https://crrev.com/41cb42ce79209c79ae5896feffa50ed1599b4964/content/browser/devtools/devtools_http_handler_unittest.cc
[modify] https://crrev.com/41cb42ce79209c79ae5896feffa50ed1599b4964/content/browser/renderer_host/p2p/socket_host_tcp_server.cc
[modify] https://crrev.com/41cb42ce79209c79ae5896feffa50ed1599b4964/content/browser/renderer_host/p2p/socket_host_tcp_server.h
[modify] https://crrev.com/41cb42ce79209c79ae5896feffa50ed1599b4964/content/browser/renderer_host/p2p/socket_host_tcp_server_unittest.cc
[modify] https://crrev.com/41cb42ce79209c79ae5896feffa50ed1599b4964/net/socket/fuzzed_server_socket.cc
[modify] https://crrev.com/41cb42ce79209c79ae5896feffa50ed1599b4964/net/socket/fuzzed_server_socket.h
[modify] https://crrev.com/41cb42ce79209c79ae5896feffa50ed1599b4964/net/socket/server_socket.h
[modify] https://crrev.com/41cb42ce79209c79ae5896feffa50ed1599b4964/net/socket/tcp_server_socket.cc
[modify] https://crrev.com/41cb42ce79209c79ae5896feffa50ed1599b4964/net/socket/tcp_server_socket.h
[modify] https://crrev.com/41cb42ce79209c79ae5896feffa50ed1599b4964/net/socket/tcp_socket_win.cc
[modify] https://crrev.com/41cb42ce79209c79ae5896feffa50ed1599b4964/net/socket/tcp_socket_win.h
[modify] https://crrev.com/41cb42ce79209c79ae5896feffa50ed1599b4964/net/socket/unix_domain_server_socket_posix.cc
[modify] https://crrev.com/41cb42ce79209c79ae5896feffa50ed1599b4964/net/socket/unix_domain_server_socket_posix.h
[modify] https://crrev.com/41cb42ce79209c79ae5896feffa50ed1599b4964/services/network/tcp_socket_unittest.cc

Project Member

Comment 37 by bugdroid1@chromium.org, Jul 17

Project Member

Comment 38 by bugdroid1@chromium.org, Jul 18

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/76366470a6dadda2de95f278f931089b2d889376

commit 76366470a6dadda2de95f278f931089b2d889376
Author: Wang Hui <wanghui07050707@gmail.com>
Date: Wed Jul 18 17:06:01 2018

Using std::move  in chrome/browser/net.

Replace bellow codes with std::move in chrome/browser/net
      const base::Closure callback = callback_;
      callback_.Reset();
      callback.Run();

BUG=807724

Change-Id: I008cf9af9785272ddceb18fff4feba13e62fdac8
Reviewed-on: https://chromium-review.googlesource.com/1134715
Commit-Queue: Matt Menke <mmenke@chromium.org>
Reviewed-by: Matt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576099}
[modify] https://crrev.com/76366470a6dadda2de95f278f931089b2d889376/chrome/browser/net/dns_probe_runner.cc

Owner: b...@chromium.org
Status: Started (was: Available)
Project Member

Comment 40 by bugdroid1@chromium.org, Jul 31

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/df9fd16b4823d0483aaeaa2e3804d835e8a5bd36

commit df9fd16b4823d0483aaeaa2e3804d835e8a5bd36
Author: Bence Béky <bnc@chromium.org>
Date: Tue Jul 31 12:11:18 2018

Use CompletionOnceCallback in URLRequestSimpleJob.

Bug: 807724
Change-Id: I510e6b677606c30265956a1f290ae0b1ef9b0214
Reviewed-on: https://chromium-review.googlesource.com/1155089
Reviewed-by: Charlie Harrison <csharrison@chromium.org>
Reviewed-by: Marijn Kruisselbrink <mek@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Eric Roman <eroman@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579377}
[modify] https://crrev.com/df9fd16b4823d0483aaeaa2e3804d835e8a5bd36/chrome/browser/extensions/chrome_url_request_util.cc
[modify] https://crrev.com/df9fd16b4823d0483aaeaa2e3804d835e8a5bd36/content/browser/loader/resource_dispatcher_host_unittest.cc
[modify] https://crrev.com/df9fd16b4823d0483aaeaa2e3804d835e8a5bd36/extensions/browser/extension_protocols.cc
[modify] https://crrev.com/df9fd16b4823d0483aaeaa2e3804d835e8a5bd36/net/url_request/url_request_data_job.cc
[modify] https://crrev.com/df9fd16b4823d0483aaeaa2e3804d835e8a5bd36/net/url_request/url_request_data_job.h
[modify] https://crrev.com/df9fd16b4823d0483aaeaa2e3804d835e8a5bd36/net/url_request/url_request_simple_job.cc
[modify] https://crrev.com/df9fd16b4823d0483aaeaa2e3804d835e8a5bd36/net/url_request/url_request_simple_job.h
[modify] https://crrev.com/df9fd16b4823d0483aaeaa2e3804d835e8a5bd36/net/url_request/url_request_simple_job_unittest.cc
[modify] https://crrev.com/df9fd16b4823d0483aaeaa2e3804d835e8a5bd36/storage/browser/blob/view_blob_internals_job.cc
[modify] https://crrev.com/df9fd16b4823d0483aaeaa2e3804d835e8a5bd36/storage/browser/blob/view_blob_internals_job.h

Project Member

Comment 41 by bugdroid1@chromium.org, Jul 31

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a

commit 3796f16fde4f93553ce053caf9d6afd3f6d3ba1a
Author: Bence Béky <bnc@chromium.org>
Date: Tue Jul 31 14:11:22 2018

Use CompletionOnceCallback in ServerSocket.

Reland https://crrev.com/c/1100900 with minor modification.

Patch set 1 is identical to https://crrev.com/c/1100900 (that got
reverted).

Patch set 3 and 4 fixes the DCHECK issue in line 125.  Accept() can be called
multiple times on a single instance, and if it returns synchronously, it
should not save |callback|.

Since this CL is identical so already landed (and reverted)
https://crrev.com/c/1100900 except for
net/socket/unix_domain_server_socket_posix.cc, owners of other
directories are TBR'd.

TBR=xunjieli@chromium.org for //services/network/
TBR=caseq@chromium.org for //content/browser/devtools/
TBR=sergeyu@chromium.org for //content/browser/renderer_host/p2p/

Bug: 807724
Cq-Include-Trybots: luci.chromium.try:linux_mojo
Change-Id: Idd9bf763334703eaa258a75cc6ebfd58b6e7ffe3
Reviewed-on: https://chromium-review.googlesource.com/1152047
Commit-Queue: Bence Béky <bnc@chromium.org>
Reviewed-by: Eric Roman <eroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579394}
[modify] https://crrev.com/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a/content/browser/devtools/devtools_http_handler_unittest.cc
[modify] https://crrev.com/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a/content/browser/renderer_host/p2p/socket_host_tcp_server.cc
[modify] https://crrev.com/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a/content/browser/renderer_host/p2p/socket_host_tcp_server.h
[modify] https://crrev.com/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a/content/browser/renderer_host/p2p/socket_host_tcp_server_unittest.cc
[modify] https://crrev.com/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a/net/socket/fuzzed_server_socket.cc
[modify] https://crrev.com/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a/net/socket/fuzzed_server_socket.h
[modify] https://crrev.com/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a/net/socket/server_socket.h
[modify] https://crrev.com/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a/net/socket/tcp_server_socket.cc
[modify] https://crrev.com/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a/net/socket/tcp_server_socket.h
[modify] https://crrev.com/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a/net/socket/tcp_socket_win.cc
[modify] https://crrev.com/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a/net/socket/tcp_socket_win.h
[modify] https://crrev.com/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a/net/socket/unix_domain_server_socket_posix.cc
[modify] https://crrev.com/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a/net/socket/unix_domain_server_socket_posix.h
[modify] https://crrev.com/3796f16fde4f93553ce053caf9d6afd3f6d3ba1a/services/network/tcp_socket_unittest.cc

Project Member

Comment 42 by bugdroid1@chromium.org, Jul 31

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3c5ca5b944795d32ec47e1a352147aa0c494cf47

commit 3c5ca5b944795d32ec47e1a352147aa0c494cf47
Author: Bence Béky <bnc@chromium.org>
Date: Tue Jul 31 18:42:16 2018

Use CompletionOnceCallback in ViewCacheHelper.

Bug: 807724
Change-Id: I065796ef6b9f954f3e623b0c5db800b24889d95b
Reviewed-on: https://chromium-review.googlesource.com/1155088
Reviewed-by: Ryan Hamilton <rch@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579493}
[modify] https://crrev.com/3c5ca5b944795d32ec47e1a352147aa0c494cf47/net/url_request/view_cache_helper.cc
[modify] https://crrev.com/3c5ca5b944795d32ec47e1a352147aa0c494cf47/net/url_request/view_cache_helper.h

Project Member

Comment 43 by bugdroid1@chromium.org, Jul 31

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cd2b196ca8c34712814a8b0bae32f60770e50cde

commit cd2b196ca8c34712814a8b0bae32f60770e50cde
Author: Bence Béky <bnc@chromium.org>
Date: Tue Jul 31 20:47:26 2018

Use CompletionOnceCallback in DnsTransaction.

Bug: 807724
Change-Id: I5972e59d700236f845c2eb2cc578d6781c602b85
Reviewed-on: https://chromium-review.googlesource.com/1154693
Commit-Queue: Ryan Hamilton <rch@chromium.org>
Reviewed-by: Ryan Hamilton <rch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579558}
[modify] https://crrev.com/cd2b196ca8c34712814a8b0bae32f60770e50cde/net/dns/dns_transaction.cc

Project Member

Comment 44 by bugdroid1@chromium.org, Aug 1

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5095654727c74d2883e188fa37698c4470d25f30

commit 5095654727c74d2883e188fa37698c4470d25f30
Author: Bence Béky <bnc@chromium.org>
Date: Wed Aug 01 03:26:49 2018

Use CompletionOnceCallback in InitSocketHandle*.

Bug: 807724
Change-Id: I2c8ec3cabdd0f3b502d9dfccd8f72a0973330fa4
Reviewed-on: https://chromium-review.googlesource.com/1156852
Reviewed-by: Ryan Hamilton <rch@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579684}
[modify] https://crrev.com/5095654727c74d2883e188fa37698c4470d25f30/net/socket/client_socket_pool_manager.cc
[modify] https://crrev.com/5095654727c74d2883e188fa37698c4470d25f30/net/socket/client_socket_pool_manager.h

Project Member

Comment 46 by bugdroid1@chromium.org, Aug 1

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7236fb7258ccb4095b21fd16219236b4835dd849

commit 7236fb7258ccb4095b21fd16219236b4835dd849
Author: Bence Béky <bnc@chromium.org>
Date: Wed Aug 01 14:35:09 2018

Use CompletionOnceCallback in GenerateAuthToken() methods.

Use CompletionOnceCallback in GenerateAuthToken() and related methods:
GenerateAuthTokenImpl() and MaybeGenerateAuthToken().

Bug: 807724
Change-Id: I96b54b5fd0cf9068bb08a539a8e7725c6e71f4f0
Reviewed-on: https://chromium-review.googlesource.com/1154348
Commit-Queue: Bence Béky <bnc@chromium.org>
Reviewed-by: Eric Roman <eroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579797}
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/android/http_auth_negotiate_android.cc
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/android/http_auth_negotiate_android.h
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_cache_unittest.cc
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_controller.cc
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_controller.h
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_controller_unittest.cc
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_gssapi_posix.cc
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_gssapi_posix.h
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_gssapi_posix_unittest.cc
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_handler.cc
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_handler.h
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_handler_basic.cc
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_handler_basic.h
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_handler_digest.cc
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_handler_digest.h
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_handler_mock.cc
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_handler_mock.h
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_handler_negotiate.cc
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_handler_negotiate.h
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_handler_ntlm.cc
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_handler_ntlm.h
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_sspi_win.cc
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_sspi_win.h
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_auth_sspi_win_unittest.cc
[modify] https://crrev.com/7236fb7258ccb4095b21fd16219236b4835dd849/net/http/http_network_transaction_unittest.cc

Project Member

Comment 47 by bugdroid1@chromium.org, Aug 1

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3397ed1ad32fc7064d2f59f1e643da4673d0d9be

commit 3397ed1ad32fc7064d2f59f1e643da4673d0d9be
Author: Bence Béky <bnc@chromium.org>
Date: Wed Aug 01 22:07:57 2018

Use CompletionOnceCallback in struct WaitingForRead.

Since CompletionOnceCallback is non-copyable, therefore WaitingForRead
becomes non-copyable.  This Cl adds a move constructor so that
WaitingForRead can be put in a std::map.

Bug: 807724
Change-Id: I57dce65d46626ce0c39cd3e2e738ad9d6979165c
Reviewed-on: https://chromium-review.googlesource.com/1156862
Reviewed-by: Ryan Hamilton <rch@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579961}
[modify] https://crrev.com/3397ed1ad32fc7064d2f59f1e643da4673d0d9be/net/http/http_cache_writers.cc
[modify] https://crrev.com/3397ed1ad32fc7064d2f59f1e643da4673d0d9be/net/http/http_cache_writers.h

Project Member

Comment 48 by bugdroid1@chromium.org, Aug 2

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d5e474c40e2564070a08282ac18d5da302f73ceb

commit d5e474c40e2564070a08282ac18d5da302f73ceb
Author: Bence Béky <bnc@chromium.org>
Date: Thu Aug 02 18:45:08 2018

Use OnceCallback in AddressSorter.

Use OnceCallback instead of Callback (which is an alias for
RepeatedCallback) in AddressSorter, take it by value instead of const
ref in Sort() method.  While this does not directly involve changing a
CompletionCallback into a Callback, it still belongs to that bug,
because this is blocking changing TestCompletionCallback::callback()
return type (at Bind() in AddressSorterTest.Sort).

Bug: 807724
Change-Id: Ib5b366143657e1a7bbb14be3583825831ecc0001
Reviewed-on: https://chromium-review.googlesource.com/1160385
Reviewed-by: Ryan Hamilton <rch@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580268}
[modify] https://crrev.com/d5e474c40e2564070a08282ac18d5da302f73ceb/net/dns/address_sorter.h
[modify] https://crrev.com/d5e474c40e2564070a08282ac18d5da302f73ceb/net/dns/address_sorter_posix.cc
[modify] https://crrev.com/d5e474c40e2564070a08282ac18d5da302f73ceb/net/dns/address_sorter_posix.h
[modify] https://crrev.com/d5e474c40e2564070a08282ac18d5da302f73ceb/net/dns/address_sorter_posix_unittest.cc
[modify] https://crrev.com/d5e474c40e2564070a08282ac18d5da302f73ceb/net/dns/address_sorter_unittest.cc
[modify] https://crrev.com/d5e474c40e2564070a08282ac18d5da302f73ceb/net/dns/address_sorter_win.cc
[modify] https://crrev.com/d5e474c40e2564070a08282ac18d5da302f73ceb/net/dns/dns_test_util.cc
[modify] https://crrev.com/d5e474c40e2564070a08282ac18d5da302f73ceb/net/dns/host_resolver_impl.cc

Project Member

Comment 49 by bugdroid1@chromium.org, Aug 3

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/74838e5d44f411d2228f06d538bf4e6dcacf6353

commit 74838e5d44f411d2228f06d538bf4e6dcacf6353
Author: Bence Béky <bnc@chromium.org>
Date: Fri Aug 03 19:25:23 2018

Modify int64_t* ownership in PartialData.

Modify ownership model of |int64_t* start| in
PartialData::ShouldValidateCache() and
PartialData::GetAvailableRangeCompleted().  Previously ownership was
passed into a callback, which outlived the GetAvailableRange() call.
However, when using a CompletionOnceCallback, that is destroyed as soon
as GetAvailableRange() returns asynchronously, so a different ownership
model is needed for |start| to provide the same lifetime guarantee.

Bug: 807724
Change-Id: Ibd4bae1be23d6570618d2abdb93e398cd97c35e6
Reviewed-on: https://chromium-review.googlesource.com/1161963
Reviewed-by: Eric Roman <eroman@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580624}
[modify] https://crrev.com/74838e5d44f411d2228f06d538bf4e6dcacf6353/net/http/partial_data.cc
[modify] https://crrev.com/74838e5d44f411d2228f06d538bf4e6dcacf6353/net/http/partial_data.h

Project Member

Comment 50 by bugdroid1@chromium.org, Aug 6

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/77a712dbd80cebbc6762a8e9664b8b048a6a2d2c

commit 77a712dbd80cebbc6762a8e9664b8b048a6a2d2c
Author: Bence Béky <bnc@chromium.org>
Date: Mon Aug 06 21:05:06 2018

Do not use CompletionCallback in HttpCache::PendingOp.

This is a lot of work just to avoid using CompletionCallback in
HttpCache::PendingOp.  Of course one could have used
CompletionRepeatingCallback instead, but that is not idiomatic, since
the callback is only meant to be called once.  No functional change is
intended.

I wonder why PendingOps cannot be deleted in HttpCache destructor.
I guess Backend or WorkItem must outlive HttpCache for whatever reason.
I decided it is better not to introduce functional change here.

Bug: 807724
Change-Id: Idd7e304702ff31de11073c0a77d041f678fb6ae4
Reviewed-on: https://chromium-review.googlesource.com/1161971
Commit-Queue: Bence Béky <bnc@chromium.org>
Reviewed-by: Josh Karlin <jkarlin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580986}
[modify] https://crrev.com/77a712dbd80cebbc6762a8e9664b8b048a6a2d2c/net/http/http_cache.cc

Project Member

Comment 51 by bugdroid1@chromium.org, Aug 7

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f7f0831aba6a8afced482a5ba4be3851c024fbe9

commit f7f0831aba6a8afced482a5ba4be3851c024fbe9
Author: Bence Béky <bnc@chromium.org>
Date: Tue Aug 07 01:53:37 2018

Use CompletionOnceCallback in //storage/browser/database.

Use CompletionOnceCallback instead of CompletionCallback in
//storage/browser/database.

Bug: 807724
Change-Id: I002d97b34d9871d3d5360da200222ccbdc81777b
Reviewed-on: https://chromium-review.googlesource.com/1163312
Commit-Queue: Bence Béky <bnc@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581090}
[modify] https://crrev.com/f7f0831aba6a8afced482a5ba4be3851c024fbe9/storage/browser/database/database_quota_client_unittest.cc
[modify] https://crrev.com/f7f0831aba6a8afced482a5ba4be3851c024fbe9/storage/browser/database/database_tracker.cc
[modify] https://crrev.com/f7f0831aba6a8afced482a5ba4be3851c024fbe9/storage/browser/database/database_tracker.h
[modify] https://crrev.com/f7f0831aba6a8afced482a5ba4be3851c024fbe9/storage/browser/database/database_tracker_unittest.cc

Project Member

Comment 52 by bugdroid1@chromium.org, Aug 7

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/bcb12a7ae1228d78fe497bdf205dc3749cb70aad

commit bcb12a7ae1228d78fe497bdf205dc3749cb70aad
Author: Bence Béky <bnc@chromium.org>
Date: Tue Aug 07 15:46:55 2018

Use CompletionOnceCallback in //service/network.

Use CompletionOnceCallback instead of CompletionCallback in
//service/network.

Bug: 807724
Cq-Include-Trybots: luci.chromium.try:linux_mojo
Change-Id: I6f4575d4bcdbacde4726dfd1a6788f12d8ded014
Reviewed-on: https://chromium-review.googlesource.com/1164319
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581236}
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/data_pipe_element_reader_unittest.cc
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/http_cache_data_remover.h
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/ignore_errors_cert_verifier.cc
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/ignore_errors_cert_verifier.h
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/ignore_errors_cert_verifier_unittest.cc
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/p2p/socket_manager.cc
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/p2p/socket_tcp.h
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/p2p/socket_test_utils.cc
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/proxy_resolving_client_socket.h
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/proxy_resolving_socket_mojo.h
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/proxy_resolving_socket_mojo_unittest.cc
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/socket_data_pump.h
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/tcp_connected_socket.h
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/tcp_socket_unittest.cc
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/throttling/throttling_controller_unittest.cc
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/throttling/throttling_upload_data_stream.h
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/tls_client_socket_unittest.cc
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/udp_socket.cc
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/udp_socket.h
[modify] https://crrev.com/bcb12a7ae1228d78fe497bdf205dc3749cb70aad/services/network/udp_socket_unittest.cc

Project Member

Comment 53 by bugdroid1@chromium.org, Aug 7

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/bdbb0e79925912d7157d6f81fe1668282d00f55f

commit bdbb0e79925912d7157d6f81fe1668282d00f55f
Author: Bence Béky <bnc@chromium.org>
Date: Tue Aug 07 21:42:59 2018

Use CompletionOnceCallback for default constructed in tests.

Use default constructed (null) CompletionOnceCallbacks instead of
default constructed (null) CompletionCallbacks in tests.  Since this
compiles, that means that all APIs have already been converted to take
CompletionOnceCallbacks, and the CompletionCallbacks (alias for
CompletionRepeatingCallback) before this CL were immediately cast into
CompletionOnceCallbacks anyway, so this change really does not modify
behavior.

Bug: 807724
Change-Id: I03c3b5dc1f77e76d7780748a4334b743053d69ef
Reviewed-on: https://chromium-review.googlesource.com/1159200
Reviewed-by: Eric Roman <eroman@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581346}
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/base/elements_upload_data_stream_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/disk_cache/backend_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/disk_cache/entry_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/http/http_proxy_client_socket_pool_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/http/http_stream_parser_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/socket/client_socket_pool_base_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/socket/client_socket_pool_manager.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/socket/sequenced_socket_data_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/socket/socket_bio_adapter_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/socket/socks_client_socket_pool.h
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/socket/socks_client_socket_pool_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/socket/ssl_client_socket_pool.h
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/socket/ssl_client_socket_pool_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/socket/ssl_server_socket_impl.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/socket/ssl_server_socket_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/spdy/spdy_network_transaction_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/spdy/spdy_proxy_client_socket_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/spdy/spdy_session_pool_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/spdy/spdy_session_unittest.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/url_request/test_url_fetcher_factory.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/websockets/websocket_basic_stream_adapters_test.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/websockets/websocket_basic_stream_test.cc
[modify] https://crrev.com/bdbb0e79925912d7157d6f81fe1668282d00f55f/net/websockets/websocket_handshake_stream_create_helper_test.cc

Project Member

Comment 54 by bugdroid1@chromium.org, Aug 9

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0

commit 6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0
Author: Bence Béky <bnc@chromium.org>
Date: Thu Aug 09 14:39:28 2018

Use CompletionOnceCallback in //content/browser/appcache.

Use CompletionOnceCallback instead of CompletionCallback, and
CancelableCompletionOnceCallback instead of CancelableCompletionCallback
in //content/browser/appcache.

Bug: 807724
Change-Id: Ie2f25a0e78a198b29f2dd1af7f55c918812cd3b3
Reviewed-on: https://chromium-review.googlesource.com/1163933
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>

[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/appcache_disk_cache.cc
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/appcache_disk_cache.h
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/appcache_disk_cache_unittest.cc
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/appcache_quota_client.cc
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/appcache_quota_client.h
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/appcache_request_handler.cc
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/appcache_response.cc
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/appcache_response.h
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/appcache_service_impl.cc
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/appcache_service_impl.h
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/appcache_service_unittest.cc
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/appcache_storage.h
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/appcache_update_job.cc
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/appcache_update_job.h
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/mock_appcache_service.cc
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/mock_appcache_service.h
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/browser/appcache/mock_appcache_storage.h
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/content/public/browser/appcache_service.h
[modify] https://crrev.com/6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0/net/base/completion_callback.h

Project Member

Comment 55 by bugdroid1@chromium.org, Aug 9

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/23c8024e5a0d7c6b46f91691cb146ed32badff43

commit 23c8024e5a0d7c6b46f91691cb146ed32badff43
Author: Bence Béky <bnc@chromium.org>
Date: Thu Aug 09 14:49:41 2018

Use OnceCallback for SnapshotFileCallback.

Define SnapshotFileCallback as a OnceCallback<> instead of a Callback<>.
While this CL does not directly touch any net::CompletionCallbacks, it
is a prerequisite for transitioning to net::CompletionOnceCallbacks in
//storage/browser/fileapi.

Bug: 807724
Change-Id: I73817841265e7e324f114efd5623e71a755db9a9
Reviewed-on: https://chromium-review.googlesource.com/1165828
Reviewed-by: Taiju Tsuiki <tzik@chromium.org>

[modify] https://crrev.com/23c8024e5a0d7c6b46f91691cb146ed32badff43/chrome/browser/chromeos/file_manager/snapshot_manager.cc
[modify] https://crrev.com/23c8024e5a0d7c6b46f91691cb146ed32badff43/chrome/browser/sync_file_system/local/syncable_file_system_operation.cc
[modify] https://crrev.com/23c8024e5a0d7c6b46f91691cb146ed32badff43/chrome/browser/sync_file_system/local/syncable_file_system_operation.h
[modify] https://crrev.com/23c8024e5a0d7c6b46f91691cb146ed32badff43/storage/browser/fileapi/file_system_operation.h
[modify] https://crrev.com/23c8024e5a0d7c6b46f91691cb146ed32badff43/storage/browser/fileapi/file_system_operation_impl.cc
[modify] https://crrev.com/23c8024e5a0d7c6b46f91691cb146ed32badff43/storage/browser/fileapi/file_system_operation_impl.h
[modify] https://crrev.com/23c8024e5a0d7c6b46f91691cb146ed32badff43/storage/browser/fileapi/file_system_operation_impl_unittest.cc
[modify] https://crrev.com/23c8024e5a0d7c6b46f91691cb146ed32badff43/storage/browser/fileapi/file_system_operation_runner.cc
[modify] https://crrev.com/23c8024e5a0d7c6b46f91691cb146ed32badff43/storage/browser/fileapi/file_system_operation_runner.h

Project Member

Comment 56 by bugdroid1@chromium.org, Aug 9

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b67b1ab6af7601c79760e389bb7f50b66534c7a2

commit b67b1ab6af7601c79760e389bb7f50b66534c7a2
Author: Andrii Shyshkalov <tandrii@chromium.org>
Date: Thu Aug 09 19:15:24 2018

Revert "Use OnceCallback for SnapshotFileCallback."

This reverts commit 23c8024e5a0d7c6b46f91691cb146ed32badff43.

Reason for revert: Due to Gerrit outage  http://crbug.com/872722 , we are reverting this CL. Please, re-land it after all clear is given. If you have questions, please ask on the bug. Sorry for the inconvenience.
Original change's description:
> Use OnceCallback for SnapshotFileCallback.
> 
> Define SnapshotFileCallback as a OnceCallback<> instead of a Callback<>.
> While this CL does not directly touch any net::CompletionCallbacks, it
> is a prerequisite for transitioning to net::CompletionOnceCallbacks in
> //storage/browser/fileapi.
> 
> Bug: 807724
> Change-Id: I73817841265e7e324f114efd5623e71a755db9a9
> Reviewed-on: https://chromium-review.googlesource.com/1165828
> Reviewed-by: Taiju Tsuiki <tzik@chromium.org>

TBR=bnc@chromium.org,tzik@chromium.org

Change-Id: Ia84e721cfa8d05cc0a7428b90efc48304560b5c0
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 807724
Reviewed-on: https://chromium-review.googlesource.com/1169845
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>

[modify] https://crrev.com/b67b1ab6af7601c79760e389bb7f50b66534c7a2/chrome/browser/chromeos/file_manager/snapshot_manager.cc
[modify] https://crrev.com/b67b1ab6af7601c79760e389bb7f50b66534c7a2/chrome/browser/sync_file_system/local/syncable_file_system_operation.cc
[modify] https://crrev.com/b67b1ab6af7601c79760e389bb7f50b66534c7a2/chrome/browser/sync_file_system/local/syncable_file_system_operation.h
[modify] https://crrev.com/b67b1ab6af7601c79760e389bb7f50b66534c7a2/storage/browser/fileapi/file_system_operation.h
[modify] https://crrev.com/b67b1ab6af7601c79760e389bb7f50b66534c7a2/storage/browser/fileapi/file_system_operation_impl.cc
[modify] https://crrev.com/b67b1ab6af7601c79760e389bb7f50b66534c7a2/storage/browser/fileapi/file_system_operation_impl.h
[modify] https://crrev.com/b67b1ab6af7601c79760e389bb7f50b66534c7a2/storage/browser/fileapi/file_system_operation_impl_unittest.cc
[modify] https://crrev.com/b67b1ab6af7601c79760e389bb7f50b66534c7a2/storage/browser/fileapi/file_system_operation_runner.cc
[modify] https://crrev.com/b67b1ab6af7601c79760e389bb7f50b66534c7a2/storage/browser/fileapi/file_system_operation_runner.h

Project Member

Comment 57 by bugdroid1@chromium.org, Aug 9

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930

commit c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930
Author: Andrii Shyshkalov <tandrii@chromium.org>
Date: Thu Aug 09 19:17:12 2018

Revert "Use CompletionOnceCallback in //content/browser/appcache."

This reverts commit 6b2ace6e0bb70c5c5f6d35f84e62c84207059ac0.

Reason for revert: Due to Gerrit outage  http://crbug.com/872722 , we are reverting this CL. Please, re-land it after all clear is given. If you have questions, please ask on the bug. Sorry for the inconvenience.

Original change's description:
> Use CompletionOnceCallback in //content/browser/appcache.
> 
> Use CompletionOnceCallback instead of CompletionCallback, and
> CancelableCompletionOnceCallback instead of CancelableCompletionCallback
> in //content/browser/appcache.
> 
> Bug: 807724
> Change-Id: Ie2f25a0e78a198b29f2dd1af7f55c918812cd3b3
> Reviewed-on: https://chromium-review.googlesource.com/1163933
> Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>

TBR=kinuko@chromium.org,bnc@chromium.org

Change-Id: Ic119529fd6ea191e063371e860804d7436f0658a
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 807724
Reviewed-on: https://chromium-review.googlesource.com/1169847
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>

[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/appcache_disk_cache.cc
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/appcache_disk_cache.h
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/appcache_disk_cache_unittest.cc
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/appcache_quota_client.cc
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/appcache_quota_client.h
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/appcache_request_handler.cc
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/appcache_response.cc
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/appcache_response.h
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/appcache_service_impl.cc
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/appcache_service_impl.h
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/appcache_service_unittest.cc
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/appcache_storage.h
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/appcache_update_job.cc
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/appcache_update_job.h
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/mock_appcache_service.cc
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/mock_appcache_service.h
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/browser/appcache/mock_appcache_storage.h
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/content/public/browser/appcache_service.h
[modify] https://crrev.com/c94ad1746a9bd0dc8fbdf7b21a4ac89bf1545930/net/base/completion_callback.h

Project Member

Comment 58 by bugdroid1@chromium.org, Aug 9

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a5829b9cbd936303e715fd59e50f028853fbc7f6

commit a5829b9cbd936303e715fd59e50f028853fbc7f6
Author: Bence Béky <bnc@chromium.org>
Date: Thu Aug 09 21:30:57 2018

Use CompletionOnceCallback in //content/browser/appcache.

Use CompletionOnceCallback instead of CompletionCallback, and
CancelableCompletionOnceCallback instead of CancelableCompletionCallback
in //content/browser/appcache.

Bug: 807724

This exact CL has been reviewed and approved at
https://crrev.com/c/1163933.  However, due to a bug in Gerrit, I
inadvertently submitted that CL skipping the CQ.  See
 https://crbug.com/872722 .  That CL was reverted, and now I am relanding
it properly in this CL, through CQ this time.  Original reviewer is
TBR'd.

TBR=kinuko@chromium.org

Change-Id: Ie1d8e275e754cc51457aca6537ad08b228cfaaac
Reviewed-on: https://chromium-review.googlesource.com/1169307
Reviewed-by: Bence Béky <bnc@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581894}
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/appcache_disk_cache.cc
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/appcache_disk_cache.h
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/appcache_disk_cache_unittest.cc
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/appcache_quota_client.cc
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/appcache_quota_client.h
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/appcache_request_handler.cc
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/appcache_response.cc
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/appcache_response.h
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/appcache_service_impl.cc
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/appcache_service_impl.h
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/appcache_service_unittest.cc
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/appcache_storage.h
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/appcache_update_job.cc
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/appcache_update_job.h
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/mock_appcache_service.cc
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/mock_appcache_service.h
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/browser/appcache/mock_appcache_storage.h
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/content/public/browser/appcache_service.h
[modify] https://crrev.com/a5829b9cbd936303e715fd59e50f028853fbc7f6/net/base/completion_callback.h

Project Member

Comment 59 by bugdroid1@chromium.org, Aug 10

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a4a5093b5b6a8323bc1894b0f7443eac300b675d

commit a4a5093b5b6a8323bc1894b0f7443eac300b675d
Author: Bence Béky <bnc@chromium.org>
Date: Fri Aug 10 13:39:41 2018

Use CompletionOnceCallback in //net.

Use CompletionOnceCallback instead of CompletionCallback everywhere in
//net, except for TestCompletionCallback that still has consumers
outside //net.

Bug: 807724
Change-Id: Iec756bd8cc40acbeecacfe0e5c3eee949325afb6
Reviewed-on: https://chromium-review.googlesource.com/1167462
Commit-Queue: Bence Béky <bnc@chromium.org>
Reviewed-by: Ryan Hamilton <rch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#582137}
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/base/elements_upload_data_stream.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/base/file_stream_unittest.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/base/test_completion_callback_unittest.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/disk_cache/entry_unittest.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/http/bidirectional_stream_unittest.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/http/http_cache_lookup_manager.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/http/http_cache_lookup_manager.h
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/http/http_cache_transaction.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/http/http_cache_transaction.h
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/http/http_cache_unittest.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/http/http_cache_writers.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/http/http_cache_writers.h
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/http/http_response_body_drainer.h
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/http/http_stream_factory_job_controller.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/http/partial_data.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/http/partial_data.h
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/proxy_resolution/network_delegate_error_observer_unittest.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/proxy_resolution/pac_file_fetcher_impl_unittest.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/proxy_resolution/proxy_resolution_service_unittest.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/server/http_server_unittest.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/client_socket_handle.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/client_socket_handle.h
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/client_socket_pool_base_unittest.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/sequenced_socket_data_unittest.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/socket_bio_adapter.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/socket_bio_adapter.h
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/socks_client_socket_pool.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/socks_client_socket_pool.h
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/ssl_client_socket_pool.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/ssl_client_socket_pool.h
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/ssl_server_socket.h
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/ssl_server_socket_impl.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/ssl_server_socket_impl.h
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/udp_socket_posix_unittest.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/socket/websocket_transport_client_socket_pool_unittest.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/spdy/spdy_session_unittest.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/spdy/spdy_test_util_common.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/test/embedded_test_server/http_connection.cc
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/test/embedded_test_server/http_connection.h
[modify] https://crrev.com/a4a5093b5b6a8323bc1894b0f7443eac300b675d/net/tools/disk_cache_memory_test/disk_cache_memory_test.cc

Project Member

Comment 60 by bugdroid1@chromium.org, Aug 10

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/651950b2d5b30fa30db90355f12d75930950798b

commit 651950b2d5b30fa30db90355f12d75930950798b
Author: Bence Béky <bnc@chromium.org>
Date: Fri Aug 10 13:40:19 2018

Use OnceCallback for SnapshotFileCallback.

Define SnapshotFileCallback as a OnceCallback<> instead of a Callback<>.
While this CL does not directly touch any net::CompletionCallbacks, it
is a prerequisite for transitioning to net::CompletionOnceCallbacks in
//storage/browser/fileapi.

Bug: 807724

This exact CL has been reviewed and approved at
https://crrev.com/c/1165828.  However, due to a bug in Gerrit, I
inadvertently submitted that CL skipping the CQ.  See
 https://crbug.com/872722 .  Then I reverted that CL at
https://crrev.com/c/1169344.

In the aftermath of Gerrit issue, the original CL was automatically
reverted at https://crrev.com/c/1169845 to give the author (me) a
heads up that it needs to be relanded.  Before that, of course, the
revert was automatically reverted (that is, the original CL relanded)
at https://crrev.com/c/1169868 for the same reason.

Now that the outage is over, I can reland this CL properly,
using the CQ.  Original reviewer is TBR'd.

TBR=tzik@chromium.org

Change-Id: I1a6fdfb53e0d38e8fd1d6618a4a79f52dcf4739b
Reviewed-on: https://chromium-review.googlesource.com/1169308
Commit-Queue: Bence Béky <bnc@chromium.org>
Reviewed-by: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#582138}
[modify] https://crrev.com/651950b2d5b30fa30db90355f12d75930950798b/chrome/browser/chromeos/file_manager/snapshot_manager.cc
[modify] https://crrev.com/651950b2d5b30fa30db90355f12d75930950798b/chrome/browser/sync_file_system/local/syncable_file_system_operation.cc
[modify] https://crrev.com/651950b2d5b30fa30db90355f12d75930950798b/chrome/browser/sync_file_system/local/syncable_file_system_operation.h
[modify] https://crrev.com/651950b2d5b30fa30db90355f12d75930950798b/storage/browser/fileapi/file_system_operation.h
[modify] https://crrev.com/651950b2d5b30fa30db90355f12d75930950798b/storage/browser/fileapi/file_system_operation_impl.cc
[modify] https://crrev.com/651950b2d5b30fa30db90355f12d75930950798b/storage/browser/fileapi/file_system_operation_impl.h
[modify] https://crrev.com/651950b2d5b30fa30db90355f12d75930950798b/storage/browser/fileapi/file_system_operation_impl_unittest.cc
[modify] https://crrev.com/651950b2d5b30fa30db90355f12d75930950798b/storage/browser/fileapi/file_system_operation_runner.cc
[modify] https://crrev.com/651950b2d5b30fa30db90355f12d75930950798b/storage/browser/fileapi/file_system_operation_runner.h

Project Member

Comment 61 by bugdroid1@chromium.org, Aug 10

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8f278afb682ba974c72bcd98dcc56dea64453118

commit 8f278afb682ba974c72bcd98dcc56dea64453118
Author: Bence Béky <bnc@chromium.org>
Date: Fri Aug 10 15:14:27 2018

Use CompletionOnceCallback in //content/browser/appcache.

Use CompletionOnceCallback instead of CompletionCallback, and
CancelableCompletionOnceCallback instead of CancelableCompletionCallback
in //content/browser/appcache.

I originally landed this CL at https://crrev.com/c/1163933.  However,
that was during Gerrit outage.  The "submit to CQ" button had been
replaced by a "submit" button.  After I realized that I have
inadvertently skipped the CQ, I manually reverted the change at
https://crrev.com/c/1169442 and submitted that, again, skipping the CQ.

As part of the remediation of the Gerrit outage, all the above CLs have
been erased from git history.  But before that, they were reverted in
reverse order to trigger e-mails to CL authors:
https://crrev.com/c/1169442 (revert of original CL) got reverted
(original CL relanded) at https://crrev.com/c/1169867; then
https://crrev.com/c/1163933 (original CL) got reverted at
https://crrev.com/c/1169867.

Before that, still during the outage, I uploaded
https://crrev.com/c/1169307 and enqueued it to the CQ.  This landed
after the tree was re-opened.

Then it was thought that https://crrev.com/c/1169867, the revert,
originally happened because there was a problem with the original CL, so
they reverted its revert, https://crrev.com/c/1169867, which was a
reland, at https://crrev.com/c/1169929.

Now that the dust settled, the original CL is ready to be relanded
again.  Here is goes.

TBR=kinuko@chromium.org

Bug: 807724
Change-Id: Ie128adba22500c590cb04c5f5a6deed0e4b9cf6b
Reviewed-on: https://chromium-review.googlesource.com/1170583
Reviewed-by: Bence Béky <bnc@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#582166}
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/appcache_disk_cache.cc
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/appcache_disk_cache.h
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/appcache_disk_cache_unittest.cc
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/appcache_quota_client.cc
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/appcache_quota_client.h
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/appcache_request_handler.cc
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/appcache_response.cc
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/appcache_response.h
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/appcache_service_impl.cc
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/appcache_service_impl.h
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/appcache_service_unittest.cc
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/appcache_storage.h
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/appcache_update_job.cc
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/appcache_update_job.h
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/mock_appcache_service.cc
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/mock_appcache_service.h
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/browser/appcache/mock_appcache_storage.h
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/content/public/browser/appcache_service.h
[modify] https://crrev.com/8f278afb682ba974c72bcd98dcc56dea64453118/net/base/completion_callback.h

Project Member

Comment 62 by bugdroid1@chromium.org, Aug 20

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7e87de14dbbee0542aac052cff0fe3f610284e19

commit 7e87de14dbbee0542aac052cff0fe3f610284e19
Author: Bence Béky <bnc@chromium.org>
Date: Mon Aug 20 19:40:24 2018

Use CompletionOnceCallback in //storage/browser.

Use CompletionOnceCallback instead of CompletionCallback in
//storage/browser.

Bug: 807724
Change-Id: Ieadbb2e82c1035900ee672e3bb4994359143bc04
Reviewed-on: https://chromium-review.googlesource.com/1167366
Reviewed-by: Naoki Fukino <fukino@chromium.org>
Reviewed-by: Jian Li <jianli@chromium.org>
Reviewed-by: Taiju Tsuiki <tzik@chromium.org>
Reviewed-by: Zentaro Kavanagh <zentaro@chromium.org>
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Commit-Queue: Bence Béky <bnc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#584538}
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_stream_reader.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_stream_reader.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_file_stream_reader.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_file_stream_reader.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/drive/drive_file_stream_reader.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/drive/drive_file_stream_reader.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/drive/fileapi/webkit_file_stream_reader_impl.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/drive/fileapi/webkit_file_stream_reader_impl.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/drive/fileapi/webkit_file_stream_writer_impl.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/drive/fileapi/webkit_file_stream_writer_impl.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_writer.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_writer.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_writer_unittest.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/file_system_provider/provided_file_system.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/chromeos/smb_client/smb_file_system.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/components/drive/local_file_reader.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/components/drive/local_file_reader.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/components/drive/local_file_reader_unittest.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/storage/browser/blob/blob_reader_unittest.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/storage/browser/fileapi/file_stream_reader.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/storage/browser/fileapi/file_stream_writer.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/storage/browser/fileapi/file_system_file_stream_reader.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/storage/browser/fileapi/file_system_file_stream_reader.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/storage/browser/fileapi/local_file_stream_reader.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/storage/browser/fileapi/local_file_stream_reader.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/storage/browser/fileapi/local_file_stream_writer.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/storage/browser/fileapi/local_file_stream_writer.h
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/storage/browser/fileapi/sandbox_file_stream_writer.cc
[modify] https://crrev.com/7e87de14dbbee0542aac052cff0fe3f610284e19/storage/browser/fileapi/sandbox_file_stream_writer.h

Sign in to add a comment