blob: a8e5170869af967d8d5e7e751262781a4326e5e3 [file] [log] [blame]
// Copyright 2016 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_UTILITY_SHELL_HANDLER_IMPL_WIN_H_
#define CHROME_UTILITY_SHELL_HANDLER_IMPL_WIN_H_
#include "base/macros.h"
#include "chrome/common/shell_handler_win.mojom.h"
class ShellHandlerImpl : public chrome::mojom::ShellHandler {
public:
ShellHandlerImpl();
~ShellHandlerImpl() override;
static void Create(chrome::mojom::ShellHandlerRequest request);
private:
// chrome::mojom::ShellHandler:
void IsPinnedToTaskbar(const IsPinnedToTaskbarCallback& callback) override;
void CallGetOpenFileName(
uint32_t owner,
uint32_t flags,
const std::vector<std::tuple<base::string16, base::string16>>& filters,
const base::FilePath& initial_directory,
const base::FilePath& initial_filename,
const CallGetOpenFileNameCallback& callback) override;
void CallGetSaveFileName(
uint32_t owner,
uint32_t flags,
const std::vector<std::tuple<base::string16, base::string16>>& filters,
uint32_t one_based_filter_index,
const base::FilePath& initial_directory,
const base::FilePath& suggested_filename,
const base::string16& default_extension,
const CallGetSaveFileNameCallback& callback) override;
DISALLOW_COPY_AND_ASSIGN(ShellHandlerImpl);
};
#endif // CHROME_UTILITY_SHELL_HANDLER_IMPL_WIN_H_