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

Side by Side Diff: webkit/glue/webplugin_delegate.h

Issue 340050: Add the plumbing and test code for plugins opening files from the sandbox. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « webkit/glue/webkitclient_impl.cc ('k') | webkit/tools/pepper_test_plugin/plugin_object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_WEBPLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_
6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ 6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // The following two methods are for use in implementing Pepper renderers. 130 // The following two methods are for use in implementing Pepper renderers.
131 // They should not be called outside of that context. 131 // They should not be called outside of that context.
132 virtual NPError InitializeRenderContext(NPRenderType type, 132 virtual NPError InitializeRenderContext(NPRenderType type,
133 NPRenderContext* context) { 133 NPRenderContext* context) {
134 return NPERR_GENERIC_ERROR; 134 return NPERR_GENERIC_ERROR;
135 } 135 }
136 136
137 virtual NPError FlushRenderContext(NPRenderContext* context) { 137 virtual NPError FlushRenderContext(NPRenderContext* context) {
138 return NPERR_GENERIC_ERROR; 138 return NPERR_GENERIC_ERROR;
139 } 139 }
140
141 virtual NPError OpenFileInSandbox(const char* file_name, void** handle) {
142 return NPERR_GENERIC_ERROR;
143 }
140 }; 144 };
141 145
142 } // namespace webkit_glue 146 } // namespace webkit_glue
143 147
144 #endif // WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ 148 #endif // WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webkitclient_impl.cc ('k') | webkit/tools/pepper_test_plugin/plugin_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698