summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/options/options_handlers_helper.h
blob: 493db5e3ca064fd727366695ce41b403b98f3f3b (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
30
31
32
33
34
// Copyright 2013 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_UI_WEBUI_OPTIONS_OPTIONS_HANDLERS_HELPER_H_
#define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_HANDLERS_HELPER_H_

#include "base/files/file_path.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/host_desktop.h"

namespace content {
class WebUI;
}

namespace options {
namespace helper {

// Returns the current desktop type.
chrome::HostDesktopType GetDesktopType(content::WebUI* web_ui);

void OpenNewWindowForProfile(chrome::HostDesktopType desktop_type,
                             Profile* profile,
                             Profile::CreateStatus status);

// Deletes the profile at the given |file_path|.
void DeleteProfileAtPath(base::FilePath file_path, content::WebUI* web_ui);

}  // namespace helper
}  // namespace options



#endif  // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_HANDLERS_HELPER_H_