| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_util.h" | 5 #include "content/browser/debugger/devtools_file_util.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 | 9 |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/browser/download/download_prefs.h" | 11 #include "chrome/browser/download/download_prefs.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/ui/shell_dialogs.h" | 13 #include "chrome/browser/ui/shell_dialogs.h" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 } // namespace | 99 } // namespace |
| 100 | 100 |
| 101 // static | 101 // static |
| 102 void DevToolsFileUtil::SaveAs(Profile* profile, | 102 void DevToolsFileUtil::SaveAs(Profile* profile, |
| 103 const std::string& suggested_file_name, | 103 const std::string& suggested_file_name, |
| 104 const std::string& content) { | 104 const std::string& content) { |
| 105 scoped_refptr<SaveAsDialog> dialog = new SaveAsDialog(); | 105 scoped_refptr<SaveAsDialog> dialog = new SaveAsDialog(); |
| 106 dialog->Show(profile, suggested_file_name, content); | 106 dialog->Show(profile, suggested_file_name, content); |
| 107 } | 107 } |
| OLD | NEW |