OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/devtools/devtools_file_helper.h" | 5 #include "chrome/browser/devtools/devtools_file_helper.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 for (auto file_system_path : remaining) { | 449 for (auto file_system_path : remaining) { |
450 delegate_->FileSystemRemoved(file_system_path); | 450 delegate_->FileSystemRemoved(file_system_path); |
451 base::FilePath path = base::FilePath::FromUTF8Unsafe(file_system_path); | 451 base::FilePath path = base::FilePath::FromUTF8Unsafe(file_system_path); |
452 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, | 452 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, |
453 Bind(&DevToolsFileWatcher::RemoveWatch, | 453 Bind(&DevToolsFileWatcher::RemoveWatch, |
454 base::Unretained(file_watcher_.get()), path)); | 454 base::Unretained(file_watcher_.get()), path)); |
455 } | 455 } |
456 } | 456 } |
457 | 457 |
458 void DevToolsFileHelper::FilePathsChanged( | 458 void DevToolsFileHelper::FilePathsChanged( |
459 const std::vector<std::string>& paths) { | 459 const std::vector<std::string>& changed_paths, |
460 delegate_->FilePathsChanged(paths); | 460 const std::vector<std::string>& added_paths, |
| 461 const std::vector<std::string>& removed_paths) { |
| 462 delegate_->FilePathsChanged(changed_paths, added_paths, removed_paths); |
461 } | 463 } |
OLD | NEW |