| 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" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/macros.h" |
| 14 #include "base/md5.h" | 15 #include "base/md5.h" |
| 15 #include "base/prefs/pref_service.h" | 16 #include "base/prefs/pref_service.h" |
| 16 #include "base/prefs/scoped_user_pref_update.h" | 17 #include "base/prefs/scoped_user_pref_update.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| 18 #include "base/value_conversions.h" | 19 #include "base/value_conversions.h" |
| 19 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
| 20 #include "chrome/browser/devtools/devtools_file_watcher.h" | 21 #include "chrome/browser/devtools/devtools_file_watcher.h" |
| 21 #include "chrome/browser/download/download_prefs.h" | 22 #include "chrome/browser/download/download_prefs.h" |
| 22 #include "chrome/browser/platform_util.h" | 23 #include "chrome/browser/platform_util.h" |
| 23 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, | 452 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, |
| 452 Bind(&DevToolsFileWatcher::RemoveWatch, | 453 Bind(&DevToolsFileWatcher::RemoveWatch, |
| 453 base::Unretained(file_watcher_.get()), path)); | 454 base::Unretained(file_watcher_.get()), path)); |
| 454 } | 455 } |
| 455 } | 456 } |
| 456 | 457 |
| 457 void DevToolsFileHelper::FilePathsChanged( | 458 void DevToolsFileHelper::FilePathsChanged( |
| 458 const std::vector<std::string>& paths) { | 459 const std::vector<std::string>& paths) { |
| 459 delegate_->FilePathsChanged(paths); | 460 delegate_->FilePathsChanged(paths); |
| 460 } | 461 } |
| OLD | NEW |