| 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/debugger/devtools_file_helper.h" | 5 #include "chrome/browser/devtools/devtools_file_helper.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
| 13 #include "base/md5.h" | 13 #include "base/md5.h" |
| 14 #include "base/value_conversions.h" | 14 #include "base/value_conversions.h" |
| 15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 files_map->SetWithoutPathExpansion(base::MD5String(url), | 190 files_map->SetWithoutPathExpansion(base::MD5String(url), |
| 191 base::CreateFilePathValue(path)); | 191 base::CreateFilePathValue(path)); |
| 192 delegate_->FileSavedAs(url); | 192 delegate_->FileSavedAs(url); |
| 193 | 193 |
| 194 BrowserThread::PostTask( | 194 BrowserThread::PostTask( |
| 195 BrowserThread::FILE, FROM_HERE, | 195 BrowserThread::FILE, FROM_HERE, |
| 196 base::Bind(&DevToolsFileHelper::WriteFile, | 196 base::Bind(&DevToolsFileHelper::WriteFile, |
| 197 path, | 197 path, |
| 198 content)); | 198 content)); |
| 199 } | 199 } |
| OLD | NEW |