| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_FILE_CHOOSER_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_FILE_CHOOSER_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_FILE_CHOOSER_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_FILE_CHOOSER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "third_party/ppapi/c/dev/ppb_file_chooser_dev.h" | 12 #include "ppapi/c/dev/ppb_file_chooser_dev.h" |
| 13 #include "third_party/ppapi/c/pp_completion_callback.h" | 13 #include "ppapi/c/pp_completion_callback.h" |
| 14 #include "webkit/glue/plugins/pepper_resource.h" | 14 #include "webkit/glue/plugins/pepper_resource.h" |
| 15 | 15 |
| 16 namespace pepper { | 16 namespace pepper { |
| 17 | 17 |
| 18 class PluginDelegate; | 18 class PluginDelegate; |
| 19 class PluginInstance; | 19 class PluginInstance; |
| 20 | 20 |
| 21 class FileChooser : public Resource { | 21 class FileChooser : public Resource { |
| 22 public: | 22 public: |
| 23 FileChooser(PluginInstance* instance, | 23 FileChooser(PluginInstance* instance, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 43 PP_FileChooserMode_Dev mode_; | 43 PP_FileChooserMode_Dev mode_; |
| 44 std::string accept_mime_types_; | 44 std::string accept_mime_types_; |
| 45 PP_CompletionCallback completion_callback_; | 45 PP_CompletionCallback completion_callback_; |
| 46 std::vector< scoped_refptr<FileRef> > chosen_files_; | 46 std::vector< scoped_refptr<FileRef> > chosen_files_; |
| 47 size_t next_chosen_file_index_; | 47 size_t next_chosen_file_index_; |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace pepper | 50 } // namespace pepper |
| 51 | 51 |
| 52 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_FILE_CHOOSER_H_ | 52 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_FILE_CHOOSER_H_ |
| OLD | NEW |