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

Issue 689603002: [fsp] Implement storage::WatcherManager for FSP. (Closed)

Created:
6 years, 1 month ago by mtomasz
Modified:
6 years, 1 month ago
Reviewers:
fukino, tzik
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, tzik, nhiroki, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[fsp] Implement storage::WatcherManager for FSP. This patch implements the storage::WatcherManager interface, which simply calls the Add/RemoveWatcher methods on ProvidedFileSystemInterface implementations. An additional callback has been added to AddWatcher, so it's easy to notify WatcherManager about changes. Without that, we would have to observe provided file system objects and store callbacks passed to WatcherManager::AddWatcher, which would make the code complex. Along the way the storage::WatcherManager interface has been refactored to have consistent naming with FSP watching methods. TEST=unit_tests: *ProvidedFileSystem* BUG=248427 Committed: https://crrev.com/340ba2068e2171d80b347fc2ca340446b6c265ec Cr-Commit-Position: refs/heads/master@{#302229}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -119 lines) Patch
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h View 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.cc View 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/provider_async_file_util.h View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/fileapi/watcher_manager.h View 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/fileapi/watcher_manager.cc View 1 chunk +59 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.h View 5 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.cc View 8 chunks +37 lines, -23 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h View 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_observer.h View 4 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_observer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_unittest.cc View 1 21 chunks +129 lines, -54 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/watcher.h View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M storage/browser/fileapi/watcher_manager.h View 2 chunks +17 lines, -15 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
mtomasz
@fukino: PTAL. The purpose of this CL is adding watcher_manager.cc and watcher_manager.h. Besides one callback ...
6 years, 1 month ago (2014-10-29 09:21:32 UTC) #2
fukino
Thank you. lgtm with nits. https://codereview.chromium.org/689603002/diff/1/chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.h File chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.h (right): https://codereview.chromium.org/689603002/diff/1/chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.h#newcode25 chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.h:25: class WatcherManager; This is ...
6 years, 1 month ago (2014-10-30 03:42:32 UTC) #3
mtomasz
https://codereview.chromium.org/689603002/diff/1/chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.h File chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.h (right): https://codereview.chromium.org/689603002/diff/1/chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.h#newcode25 chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.h:25: class WatcherManager; On 2014/10/30 03:42:32, fukino wrote: > This ...
6 years, 1 month ago (2014-10-30 09:50:32 UTC) #4
mtomasz
@tzik: PTAL at storage/browser/fileapi/watcher_manager.h. Thanks.
6 years, 1 month ago (2014-10-30 09:51:04 UTC) #6
tzik
lgtm
6 years, 1 month ago (2014-10-31 05:01:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/689603002/20001
6 years, 1 month ago (2014-10-31 05:12:06 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-10-31 05:53:58 UTC) #10
commit-bot: I haz the power
6 years, 1 month ago (2014-10-31 05:54:29 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/340ba2068e2171d80b347fc2ca340446b6c265ec
Cr-Commit-Position: refs/heads/master@{#302229}

Powered by Google App Engine
This is Rietveld 408576698