summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger/devtools_file_util.h
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-20 08:53:49 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-20 08:53:49 +0000
commitdce502760342058ecaf1def46d1e1144c85b6cb3 (patch)
treef739f131bbc9bcc7d419d7ca697004d03cc23ad6 /chrome/browser/debugger/devtools_file_util.h
parente96893ec88c9331cabbf4a71384728b0d819ed11 (diff)
downloadchromium_src-dce502760342058ecaf1def46d1e1144c85b6cb3.zip
chromium_src-dce502760342058ecaf1def46d1e1144c85b6cb3.tar.gz
chromium_src-dce502760342058ecaf1def46d1e1144c85b6cb3.tar.bz2
DevTools: move devtools_window to chrome/, remove most chrome/ dependencies from devtools_manager.
BUG= TEST= Review URL: http://codereview.chromium.org/7429006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93173 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/devtools_file_util.h')
-rw-r--r--chrome/browser/debugger/devtools_file_util.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/chrome/browser/debugger/devtools_file_util.h b/chrome/browser/debugger/devtools_file_util.h
new file mode 100644
index 0000000..a70c8af
--- /dev/null
+++ b/chrome/browser/debugger/devtools_file_util.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_FILE_UTIL_H_
+#define CHROME_BROWSER_DEBUGGER_DEVTOOLS_FILE_UTIL_H_
+#pragma once
+
+#include <string>
+
+#include "base/basictypes.h"
+
+class Profile;
+
+class DevToolsFileUtil {
+ public:
+
+ // Shows Save As dialog using default save location from the |profile| prefs,
+ // |suggested_file_name| as the default name and saves |content| to the given
+ // location.
+ static void SaveAs(Profile* profile,
+ const std::string& suggested_file_name,
+ const std::string& content);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DevToolsFileUtil);
+};
+
+#endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_FILE_UTIL_H_