summaryrefslogtreecommitdiffstats
path: root/content/browser/debugger/devtools_file_util.h
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-29 02:16:06 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-29 02:16:06 +0000
commitb46442d7e2e8cccf5f9bcafb2e1e3b7cf23d424b (patch)
treee1e0f0d2fc3653d71e93b4cca71cce5ea2cb7223 /content/browser/debugger/devtools_file_util.h
parent75a4e77f6c2c21706c09948269c45d98db28757b (diff)
downloadchromium_src-b46442d7e2e8cccf5f9bcafb2e1e3b7cf23d424b.zip
chromium_src-b46442d7e2e8cccf5f9bcafb2e1e3b7cf23d424b.tar.gz
chromium_src-b46442d7e2e8cccf5f9bcafb2e1e3b7cf23d424b.tar.bz2
Wholesale move of debugger sources to content.
Other references are modified only to point to the new location. Follow-up changes will move build rules for the debugger into content. This adds a somewhat permissive DEPS file to content/browser/debugger. Follow-up work will whittle that down to zero dependencies on chrome/. BUG=84078 TEST=existing Review URL: http://codereview.chromium.org/7274031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90912 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/debugger/devtools_file_util.h')
-rw-r--r--content/browser/debugger/devtools_file_util.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/content/browser/debugger/devtools_file_util.h b/content/browser/debugger/devtools_file_util.h
new file mode 100644
index 0000000..a70c8af
--- /dev/null
+++ b/content/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_