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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/service.cc

Issue 679573002: [fsp] Separate recursive and non-recursive watchers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/file_system_provider/service.h" 5 #include "chrome/browser/chromeos/file_system_provider/service.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/prefs/scoped_user_pref_update.h" 9 #include "base/prefs/scoped_user_pref_update.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 FOR_EACH_OBSERVER(Observer, 344 FOR_EACH_OBSERVER(Observer,
345 observers_, 345 observers_,
346 OnProvidedFileSystemUnmount(file_system_info, error)); 346 OnProvidedFileSystemUnmount(file_system_info, error));
347 } 347 }
348 } 348 }
349 349
350 void Service::OnObservedEntryChanged( 350 void Service::OnObservedEntryChanged(
351 const ProvidedFileSystemInfo& file_system_info, 351 const ProvidedFileSystemInfo& file_system_info,
352 const ObservedEntry& observed_entry, 352 const ObservedEntry& observed_entry,
353 ChangeType change_type, 353 ChangeType change_type,
354 const ChildChanges& child_changes, 354 const Changes& changes,
355 const base::Closure& callback) { 355 const base::Closure& callback) {
356 callback.Run(); 356 callback.Run();
357 } 357 }
358 358
359 void Service::OnObservedEntryTagUpdated( 359 void Service::OnObservedEntryTagUpdated(
360 const ProvidedFileSystemInfo& file_system_info, 360 const ProvidedFileSystemInfo& file_system_info,
361 const ObservedEntry& observed_entry) { 361 const ObservedEntry& observed_entry) {
362 PrefService* const pref_service = profile_->GetPrefs(); 362 PrefService* const pref_service = profile_->GetPrefs();
363 DCHECK(pref_service); 363 DCHECK(pref_service);
364 364
365 registry_->UpdateObservedEntryTag(file_system_info, observed_entry); 365 registry_->UpdateObservedEntryTag(file_system_info, observed_entry);
366 } 366 }
367 367
368 void Service::OnObservedEntryListChanged( 368 void Service::OnObservedEntryListChanged(
369 const ProvidedFileSystemInfo& file_system_info, 369 const ProvidedFileSystemInfo& file_system_info,
370 const ObservedEntries& observed_entries) { 370 const ObservedEntries& observed_entries) {
371 registry_->RememberFileSystem(file_system_info, observed_entries); 371 registry_->RememberFileSystem(file_system_info, observed_entries);
372 } 372 }
373 373
374 } // namespace file_system_provider 374 } // namespace file_system_provider
375 } // namespace chromeos 375 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698