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

Side by Side Diff: chrome/renderer/webplugin_delegate_pepper.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 | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/webplugin_delegate_pepper.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 CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_
6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <list> 10 #include <list>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 WebPluginDelegatePepper(gfx::PluginWindowHandle containing_view, 92 WebPluginDelegatePepper(gfx::PluginWindowHandle containing_view,
93 NPAPI::PluginInstance *instance); 93 NPAPI::PluginInstance *instance);
94 ~WebPluginDelegatePepper(); 94 ~WebPluginDelegatePepper();
95 95
96 //---------------------------- 96 //----------------------------
97 // used for windowless plugins 97 // used for windowless plugins
98 virtual NPError InitializeRenderContext(NPRenderType type, 98 virtual NPError InitializeRenderContext(NPRenderType type,
99 NPRenderContext* context); 99 NPRenderContext* context);
100 virtual NPError FlushRenderContext(NPRenderContext* context); 100 virtual NPError FlushRenderContext(NPRenderContext* context);
101 101
102 virtual NPError OpenFileInSandbox(const char* file_name, void** handle);
103
102 // Tells the plugin about the current state of the window. 104 // Tells the plugin about the current state of the window.
103 // See NPAPI NPP_SetWindow for more information. 105 // See NPAPI NPP_SetWindow for more information.
104 void WindowlessSetWindow(bool force_set_window); 106 void WindowlessSetWindow(bool force_set_window);
105 107
106 //----------------------------------------- 108 //-----------------------------------------
107 // used for windowed and windowless plugins 109 // used for windowed and windowless plugins
108 110
109 NPAPI::PluginInstance* instance() { return instance_.get(); } 111 NPAPI::PluginInstance* instance() { return instance_.get(); }
110 112
111 // Closes down and destroys our plugin instance. 113 // Closes down and destroys our plugin instance.
(...skipping 15 matching lines...) Expand all
127 scoped_ptr<skia::PlatformCanvas> plugin_canvas_; 129 scoped_ptr<skia::PlatformCanvas> plugin_canvas_;
128 SkBitmap committed_bitmap_; 130 SkBitmap committed_bitmap_;
129 131
130 // The url with which the plugin was instantiated. 132 // The url with which the plugin was instantiated.
131 std::string plugin_url_; 133 std::string plugin_url_;
132 134
133 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper); 135 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper);
134 }; 136 };
135 137
136 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ 138 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/webplugin_delegate_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698