1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_SHELL_DIALOGS_SELECT_FILE_POLICY_H_
6 #define UI_SHELL_DIALOGS_SELECT_FILE_POLICY_H_
8 #include "ui/shell_dialogs/shell_dialogs_export.h"
12 // An optional policy class that provides decisions on whether to allow showing
13 // a native file dialog. Some ports need this.
14 class SHELL_DIALOGS_EXPORT SelectFilePolicy
{
16 virtual ~SelectFilePolicy();
18 // Returns true if the current policy allows for file selection dialogs.
19 virtual bool CanOpenSelectFileDialog() = 0;
21 // Called from the SelectFileDialog when we've denied a request.
22 virtual void SelectFileDenied() = 0;
27 #endif // UI_SHELL_DIALOGS_SELECT_FILE_POLICY_H_