Remove myself from OWNERS files
[chromium-blink-merge.git] / ui / shell_dialogs / select_file_policy.h
blob6552b76209fb19d32c2187d719132321f4e255ed
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"
10 namespace ui {
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 {
15 public:
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;
25 } // namespace ui
27 #endif // UI_SHELL_DIALOGS_SELECT_FILE_POLICY_H_