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/macros.h" |
15 #include "base/md5.h" | 15 #include "base/md5.h" |
16 #include "base/prefs/pref_service.h" | |
17 #include "base/prefs/scoped_user_pref_update.h" | |
18 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
19 #include "base/value_conversions.h" | 17 #include "base/value_conversions.h" |
20 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/devtools/devtools_file_watcher.h" | 19 #include "chrome/browser/devtools/devtools_file_watcher.h" |
22 #include "chrome/browser/download/download_prefs.h" | 20 #include "chrome/browser/download/download_prefs.h" |
23 #include "chrome/browser/platform_util.h" | 21 #include "chrome/browser/platform_util.h" |
24 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
25 #include "chrome/browser/ui/chrome_select_file_policy.h" | 23 #include "chrome/browser/ui/chrome_select_file_policy.h" |
26 #include "chrome/common/pref_names.h" | 24 #include "chrome/common/pref_names.h" |
27 #include "chrome/grit/generated_resources.h" | 25 #include "chrome/grit/generated_resources.h" |
| 26 #include "components/prefs/pref_service.h" |
| 27 #include "components/prefs/scoped_user_pref_update.h" |
28 #include "content/public/browser/browser_context.h" | 28 #include "content/public/browser/browser_context.h" |
29 #include "content/public/browser/browser_thread.h" | 29 #include "content/public/browser/browser_thread.h" |
30 #include "content/public/browser/child_process_security_policy.h" | 30 #include "content/public/browser/child_process_security_policy.h" |
31 #include "content/public/browser/download_manager.h" | 31 #include "content/public/browser/download_manager.h" |
32 #include "content/public/browser/render_process_host.h" | 32 #include "content/public/browser/render_process_host.h" |
33 #include "content/public/browser/render_view_host.h" | 33 #include "content/public/browser/render_view_host.h" |
34 #include "content/public/browser/web_contents.h" | 34 #include "content/public/browser/web_contents.h" |
35 #include "content/public/common/content_client.h" | 35 #include "content/public/common/content_client.h" |
36 #include "content/public/common/url_constants.h" | 36 #include "content/public/common/url_constants.h" |
37 #include "storage/browser/fileapi/file_system_url.h" | 37 #include "storage/browser/fileapi/file_system_url.h" |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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>& paths) { |
460 delegate_->FilePathsChanged(paths); | 460 delegate_->FilePathsChanged(paths); |
461 } | 461 } |
OLD | NEW |