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