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

Issue 241673005: [fsp] Initial implementation of timeout logic for requests. (Closed)

Created:
6 years, 8 months ago by mtomasz
Modified:
6 years, 8 months ago
Reviewers:
hashimoto
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

[fsp] Initial implementation of timeout logic for requests. This patch introduces a basic mechanism for timing out stale requests. If none of callbacks are called within a fixed amount of time, then the request is considered as stale, and aborted with an FILE_ERROR_ABORT error code. TEST=unit_test: FileSystemProviderRequestManagerTest.AbortOnTimeout BUG=248427 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264773

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed comments. #

Patch Set 3 : Fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -10 lines) Patch
M chrome/browser/chromeos/file_system_provider/request_manager.h View 1 2 2 chunks +19 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager.cc View 1 2 5 chunks +43 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager_unittest.cc View 1 3 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
mtomasz
@hashimoto: PTAL. Thanks.
6 years, 8 months ago (2014-04-18 04:50:07 UTC) #1
hashimoto
https://codereview.chromium.org/241673005/diff/1/chrome/browser/chromeos/file_system_provider/request_manager.cc File chrome/browser/chromeos/file_system_provider/request_manager.cc (right): https://codereview.chromium.org/241673005/diff/1/chrome/browser/chromeos/file_system_provider/request_manager.cc#newcode21 chrome/browser/chromeos/file_system_provider/request_manager.cc:21: RequestManager::RequestManager() : next_id_(1), timeout_(kTimeout) {} Does this line compile? ...
6 years, 8 months ago (2014-04-18 05:28:08 UTC) #2
mtomasz
https://codereview.chromium.org/241673005/diff/1/chrome/browser/chromeos/file_system_provider/request_manager.cc File chrome/browser/chromeos/file_system_provider/request_manager.cc (right): https://codereview.chromium.org/241673005/diff/1/chrome/browser/chromeos/file_system_provider/request_manager.cc#newcode21 chrome/browser/chromeos/file_system_provider/request_manager.cc:21: RequestManager::RequestManager() : next_id_(1), timeout_(kTimeout) {} On 2014/04/18 05:28:09, hashimoto ...
6 years, 8 months ago (2014-04-18 05:56:18 UTC) #3
hashimoto
lgtm https://codereview.chromium.org/241673005/diff/1/chrome/browser/chromeos/file_system_provider/request_manager.cc File chrome/browser/chromeos/file_system_provider/request_manager.cc (right): https://codereview.chromium.org/241673005/diff/1/chrome/browser/chromeos/file_system_provider/request_manager.cc#newcode53 chrome/browser/chromeos/file_system_provider/request_manager.cc:53: base::Unretained(this), // The timer is outlived by RequestManager. ...
6 years, 8 months ago (2014-04-18 06:08:00 UTC) #4
mtomasz
https://codereview.chromium.org/241673005/diff/1/chrome/browser/chromeos/file_system_provider/request_manager.cc File chrome/browser/chromeos/file_system_provider/request_manager.cc (right): https://codereview.chromium.org/241673005/diff/1/chrome/browser/chromeos/file_system_provider/request_manager.cc#newcode53 chrome/browser/chromeos/file_system_provider/request_manager.cc:53: base::Unretained(this), // The timer is outlived by RequestManager. On ...
6 years, 8 months ago (2014-04-18 06:19:51 UTC) #5
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 8 months ago (2014-04-18 06:19:56 UTC) #6
mtomasz
The CQ bit was unchecked by mtomasz@chromium.org
6 years, 8 months ago (2014-04-18 06:20:18 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/241673005/40001
6 years, 8 months ago (2014-04-18 06:20:18 UTC) #8
mtomasz
The CQ bit was unchecked by mtomasz@chromium.org
6 years, 8 months ago (2014-04-18 06:20:31 UTC) #9
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 8 months ago (2014-04-18 08:36:26 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/241673005/40001
6 years, 8 months ago (2014-04-18 08:36:37 UTC) #11
commit-bot: I haz the power
6 years, 8 months ago (2014-04-18 11:45:45 UTC) #12
Message was sent while issue was closed.
Change committed as 264773

Powered by Google App Engine
This is Rietveld 408576698