summaryrefslogtreecommitdiffstats
path: root/content/browser/debugger/devtools_file_util.h
blob: 0d760976c037043d022b0de738499a2bc1c7ff1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FILE_UTIL_H_
#define CONTENT_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  // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FILE_UTIL_H_