From dce502760342058ecaf1def46d1e1144c85b6cb3 Mon Sep 17 00:00:00 2001 From: "pfeldman@chromium.org" Date: Wed, 20 Jul 2011 08:53:49 +0000 Subject: 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 --- chrome/browser/debugger/devtools_file_util.h | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 chrome/browser/debugger/devtools_file_util.h (limited to 'chrome/browser/debugger/devtools_file_util.h') 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 + +#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_ -- cgit v1.1