| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_FILE_UTIL_H_ | |
| 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_FILE_UTIL_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <string> | |
| 10 | |
| 11 #include "base/basictypes.h" | |
| 12 | |
| 13 class Profile; | |
| 14 | |
| 15 class DevToolsFileUtil { | |
| 16 public: | |
| 17 | |
| 18 // Shows Save As dialog using default save location from the |profile| prefs, | |
| 19 // |suggested_file_name| as the default name and saves |content| to the given | |
| 20 // location. | |
| 21 static void SaveAs(Profile* profile, | |
| 22 const std::string& suggested_file_name, | |
| 23 const std::string& content); | |
| 24 | |
| 25 private: | |
| 26 DISALLOW_COPY_AND_ASSIGN(DevToolsFileUtil); | |
| 27 }; | |
| 28 | |
| 29 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_FILE_UTIL_H_ | |
| OLD | NEW |