Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: webkit/plugins/ppapi/ppb_file_chooser_impl.h

Issue 7669055: Remove webkit::ppapi::Resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nulls auditeed Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PLUGINS_PPAPI_PPB_FILE_CHOOSER_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_CHOOSER_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_CHOOSER_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_CHOOSER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
14 #include "ppapi/shared_impl/resource.h"
12 #include "ppapi/thunk/ppb_file_chooser_api.h" 15 #include "ppapi/thunk/ppb_file_chooser_api.h"
13 #include "webkit/plugins/ppapi/resource.h"
14 16
15 struct PP_CompletionCallback; 17 struct PP_CompletionCallback;
16 18
17 namespace webkit { 19 namespace webkit {
18 namespace ppapi { 20 namespace ppapi {
19 21
20 class PluginInstance;
21 class PPB_FileRef_Impl; 22 class PPB_FileRef_Impl;
22 class TrackedCompletionCallback; 23 class TrackedCompletionCallback;
23 24
24 class PPB_FileChooser_Impl : public Resource, 25 class PPB_FileChooser_Impl : public ::ppapi::Resource,
25 public ::ppapi::thunk::PPB_FileChooser_API { 26 public ::ppapi::thunk::PPB_FileChooser_API {
26 public: 27 public:
27 PPB_FileChooser_Impl(PluginInstance* instance, 28 PPB_FileChooser_Impl(PP_Instance instance,
28 PP_FileChooserMode_Dev mode, 29 PP_FileChooserMode_Dev mode,
29 const PP_Var& accept_mime_types); 30 const PP_Var& accept_mime_types);
30 virtual ~PPB_FileChooser_Impl(); 31 virtual ~PPB_FileChooser_Impl();
31 32
32 static PP_Resource Create(PluginInstance* instance, 33 static PP_Resource Create(PP_Instance instance,
33 PP_FileChooserMode_Dev mode, 34 PP_FileChooserMode_Dev mode,
34 const PP_Var& accept_mime_types); 35 const PP_Var& accept_mime_types);
35 36
36 // Resource overrides. 37 // Resource overrides.
37 virtual PPB_FileChooser_Impl* AsPPB_FileChooser_Impl(); 38 virtual PPB_FileChooser_Impl* AsPPB_FileChooser_Impl();
38 39
39 // Resource overrides. 40 // Resource overrides.
40 virtual ::ppapi::thunk::PPB_FileChooser_API* AsPPB_FileChooser_API() OVERRIDE; 41 virtual ::ppapi::thunk::PPB_FileChooser_API* AsPPB_FileChooser_API() OVERRIDE;
41 42
42 // Stores the list of selected files. 43 // Stores the list of selected files.
(...skipping 19 matching lines...) Expand all
62 std::string accept_mime_types_; 63 std::string accept_mime_types_;
63 scoped_refptr<TrackedCompletionCallback> callback_; 64 scoped_refptr<TrackedCompletionCallback> callback_;
64 std::vector< scoped_refptr<PPB_FileRef_Impl> > chosen_files_; 65 std::vector< scoped_refptr<PPB_FileRef_Impl> > chosen_files_;
65 size_t next_chosen_file_index_; 66 size_t next_chosen_file_index_;
66 }; 67 };
67 68
68 } // namespace ppapi 69 } // namespace ppapi
69 } // namespace webkit 70 } // namespace webkit
70 71
71 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_CHOOSER_IMPL_H_ 72 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_CHOOSER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_directory_reader_impl.cc ('k') | webkit/plugins/ppapi/ppb_file_chooser_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698