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

Side by Side Diff: webkit/glue/plugins/webplugin_file_delegate.h

Issue 5998002: Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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) 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_PLUGINS_NPAPI_WEBPLUGIN_FILE_DELEGATE_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_WEBPLUGIN_FILE_DELEGATE_H_
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_FILE_DELEGATE_H_ 6 #define WEBKIT_GLUE_PLUGINS_WEBPLUGIN_FILE_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "third_party/npapi/bindings/npapi_extensions.h" 9 #include "third_party/npapi/bindings/npapi_extensions.h"
10 10
11 namespace webkit { 11 namespace webkit_glue {
12 namespace npapi {
13 12
14 // Interface for the NPAPI file extensions. This class implements "NOP" 13 // Interface for the NPAPI file extensions. This class implements "NOP"
15 // versions of all these functions so it can be used seamlessly by the 14 // versions of all these functions so it can be used seamlessly by the
16 // "regular" plugin delegate while being overridden by the "pepper" one. 15 // "regular" plugin delegate while being overridden by the "pepper" one.
17 class WebPluginFileDelegate { 16 class WebPluginFileDelegate {
18 public: 17 public:
19 // See NPChooseFilePtr in npapi_extensions.h. Returns true on success, on 18 // See NPChooseFilePtr in npapi_extensions.h. Returns true on success, on
20 // cancel, returns true but *filename will be filled with an empty FilePath 19 // cancel, returns true but *filename will be filled with an empty FilePath
21 // and *handle will be 0. 20 // and *handle will be 0.
22 virtual bool ChooseFile(const char* mime_types, 21 virtual bool ChooseFile(const char* mime_types,
23 int mode, 22 int mode,
24 NPChooseFileCallback callback, 23 NPChooseFileCallback callback,
25 void* user_data); 24 void* user_data);
26 25
27 protected: 26 protected:
28 WebPluginFileDelegate() {} 27 WebPluginFileDelegate() {}
29 virtual ~WebPluginFileDelegate() {} 28 virtual ~WebPluginFileDelegate() {}
30 }; 29 };
31 30
32 } // namespace npapi 31 } // namespace webkit_glue
33 } // namespace webkit
34 32
35 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_FILE_DELEGATE_H_ 33 #endif // WEBKIT_GLUE_PLUGINS_WEBPLUGIN_FILE_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/webplugin_delegate_impl_win.cc ('k') | webkit/glue/plugins/webplugin_file_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698