Roll Blink 150366:150424.
[chromium-blink-merge.git] / ui / shell_dialogs / select_file_dialog_factory.h
blobcb12e28be870ae2ff780dfea117a5b3b5faceb1a
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_DIALOG_FACTORY_H_
6 #define UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_FACTORY_H_
8 #include "ui/shell_dialogs/select_file_dialog.h"
9 #include "ui/shell_dialogs/shell_dialogs_export.h"
11 namespace ui {
12 class SelectFilePolicy;
14 // Some chrome components want to create their own SelectFileDialog objects
15 // (for example, using an extension to provide the select file dialog needs to
16 // live in chrome/ due to the extension dependency.)
18 // They can implement a factory which creates their SelectFileDialog.
19 class SHELL_DIALOGS_EXPORT SelectFileDialogFactory {
20 public:
21 virtual ~SelectFileDialogFactory();
23 virtual SelectFileDialog* Create(ui::SelectFileDialog::Listener* listener,
24 ui::SelectFilePolicy* policy) = 0;
27 } // namespace ui
29 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_FACTORY_H_