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

Issue 642023003: [fsp] Allow to create multiple observers for a directory, up to one per origin. (Closed)

Created:
6 years, 2 months ago by mtomasz
Modified:
6 years, 1 month ago
Reviewers:
hirono
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[fsp] Allow to create multiple observers for a directory, up to one per origin. This patch allows to create multiple subscribers for observed entry change notifications, up to one per origin for the same entry. Eg. multiple extensions may want to observe the same directory. Also, the persistent argument is introduced. Persistent subscriber mean, that the origin is watching the entry persistently, despite reboots. It will be used by cache only. Extensions should never use persistent origins. Such subscribers will be removed on reboot. TEST=unit_tests: *FileSystemProvider*Registry*, *FileSystemProvider*ProvidedFileSystem* BUG=248427 Committed: https://crrev.com/70fb5591df0082b01e07f77b62da97de1fa4d416 Cr-Commit-Position: refs/heads/master@{#301586}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed. #

Total comments: 4

Patch Set 3 : Fixed. #

Total comments: 4

Patch Set 4 : Fixed. #

Total comments: 4

Patch Set 5 : Addressed comments + fixed tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+367 lines, -66 lines) Patch
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/observed_entry.h View 1 2 3 2 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/observed_entry.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.h View 1 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.cc View 1 2 3 4 7 chunks +81 lines, -20 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_unittest.cc View 1 2 3 4 14 chunks +174 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/registry.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/registry.cc View 1 2 3 4 5 chunks +26 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/registry_unittest.cc View 1 8 chunks +32 lines, -31 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
mtomasz
@hirono: PTAL. It seems to be the last big patches for entry watching logic in ...
6 years, 2 months ago (2014-10-21 09:33:48 UTC) #2
hirono
https://codereview.chromium.org/642023003/diff/1/chrome/browser/chromeos/file_system_provider/observed_entry.h File chrome/browser/chromeos/file_system_provider/observed_entry.h (right): https://codereview.chromium.org/642023003/diff/1/chrome/browser/chromeos/file_system_provider/observed_entry.h#newcode9 chrome/browser/chromeos/file_system_provider/observed_entry.h:9: #include <set> Is this used? https://codereview.chromium.org/642023003/diff/1/chrome/browser/chromeos/file_system_provider/provided_file_system.cc File chrome/browser/chromeos/file_system_provider/provided_file_system.cc (right): ...
6 years, 2 months ago (2014-10-22 06:00:36 UTC) #3
mtomasz
https://codereview.chromium.org/642023003/diff/1/chrome/browser/chromeos/file_system_provider/observed_entry.h File chrome/browser/chromeos/file_system_provider/observed_entry.h (right): https://codereview.chromium.org/642023003/diff/1/chrome/browser/chromeos/file_system_provider/observed_entry.h#newcode9 chrome/browser/chromeos/file_system_provider/observed_entry.h:9: #include <set> On 2014/10/22 06:00:35, hirono wrote: > Is ...
6 years, 2 months ago (2014-10-24 05:48:42 UTC) #4
hirono
https://codereview.chromium.org/642023003/diff/20001/chrome/browser/chromeos/file_system_provider/registry.cc File chrome/browser/chromeos/file_system_provider/registry.cc (right): https://codereview.chromium.org/642023003/diff/20001/chrome/browser/chromeos/file_system_provider/registry.cc#newcode208 chrome/browser/chromeos/file_system_provider/registry.cc:208: (!last_tag.empty() || persistent_origins->GetSize()))) { Is this indent correct? https://codereview.chromium.org/642023003/diff/20001/chrome/browser/chromeos/file_system_provider/registry.cc#newcode227 ...
6 years, 1 month ago (2014-10-27 02:20:18 UTC) #5
mtomasz
https://codereview.chromium.org/642023003/diff/20001/chrome/browser/chromeos/file_system_provider/registry.cc File chrome/browser/chromeos/file_system_provider/registry.cc (right): https://codereview.chromium.org/642023003/diff/20001/chrome/browser/chromeos/file_system_provider/registry.cc#newcode208 chrome/browser/chromeos/file_system_provider/registry.cc:208: (!last_tag.empty() || persistent_origins->GetSize()))) { On 2014/10/27 02:20:17, hirono wrote: ...
6 years, 1 month ago (2014-10-27 04:05:57 UTC) #6
hirono
https://codereview.chromium.org/642023003/diff/40001/chrome/browser/chromeos/file_system_provider/observed_entry.h File chrome/browser/chromeos/file_system_provider/observed_entry.h (right): https://codereview.chromium.org/642023003/diff/40001/chrome/browser/chromeos/file_system_provider/observed_entry.h#newcode49 chrome/browser/chromeos/file_system_provider/observed_entry.h:49: bool persistent; Could you add a comment about what ...
6 years, 1 month ago (2014-10-27 04:50:32 UTC) #7
mtomasz
https://codereview.chromium.org/642023003/diff/40001/chrome/browser/chromeos/file_system_provider/observed_entry.h File chrome/browser/chromeos/file_system_provider/observed_entry.h (right): https://codereview.chromium.org/642023003/diff/40001/chrome/browser/chromeos/file_system_provider/observed_entry.h#newcode49 chrome/browser/chromeos/file_system_provider/observed_entry.h:49: bool persistent; On 2014/10/27 04:50:31, hirono wrote: > Could ...
6 years, 1 month ago (2014-10-27 05:01:18 UTC) #8
hirono
lgtm with nits! https://codereview.chromium.org/642023003/diff/60001/chrome/browser/chromeos/file_system_provider/provided_file_system.cc File chrome/browser/chromeos/file_system_provider/provided_file_system.cc (right): https://codereview.chromium.org/642023003/diff/60001/chrome/browser/chromeos/file_system_provider/provided_file_system.cc#newcode388 chrome/browser/chromeos/file_system_provider/provided_file_system.cc:388: if (it->second.subscribers.find(origin) != it->second.subscribers.end()) { nit: ...
6 years, 1 month ago (2014-10-27 08:15:15 UTC) #9
mtomasz
https://codereview.chromium.org/642023003/diff/60001/chrome/browser/chromeos/file_system_provider/provided_file_system.cc File chrome/browser/chromeos/file_system_provider/provided_file_system.cc (right): https://codereview.chromium.org/642023003/diff/60001/chrome/browser/chromeos/file_system_provider/provided_file_system.cc#newcode388 chrome/browser/chromeos/file_system_provider/provided_file_system.cc:388: if (it->second.subscribers.find(origin) != it->second.subscribers.end()) { On 2014/10/27 08:15:15, hirono ...
6 years, 1 month ago (2014-10-28 06:09:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/642023003/80001
6 years, 1 month ago (2014-10-28 06:40:51 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 1 month ago (2014-10-28 07:23:54 UTC) #13
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 07:24:33 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/70fb5591df0082b01e07f77b62da97de1fa4d416
Cr-Commit-Position: refs/heads/master@{#301586}

Powered by Google App Engine
This is Rietveld 408576698