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

Side by Side Diff: chrome/browser/devtools/devtools_file_helper.cc

Issue 2384343002: DevTools: improve DevTools file watcher to send added and removed paths (Closed)
Patch Set: honing skills. Created 4 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 (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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_file_helper.h ('k') | chrome/browser/devtools/devtools_file_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698