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

Side by Side Diff: content/renderer/pepper_plugin_delegate_impl.h

Issue 6871020: Added functionality to use "SaveAs..." from PDF plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 8 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 CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 CreateFullscreenContainer( 181 CreateFullscreenContainer(
182 webkit::ppapi::PluginInstance* instance); 182 webkit::ppapi::PluginInstance* instance);
183 virtual gfx::Size GetScreenSize(); 183 virtual gfx::Size GetScreenSize();
184 virtual std::string GetDefaultEncoding(); 184 virtual std::string GetDefaultEncoding();
185 virtual void ZoomLimitsChanged(double minimum_factor, double maximum_factor); 185 virtual void ZoomLimitsChanged(double minimum_factor, double maximum_factor);
186 virtual std::string ResolveProxy(const GURL& url); 186 virtual std::string ResolveProxy(const GURL& url);
187 virtual void DidStartLoading(); 187 virtual void DidStartLoading();
188 virtual void DidStopLoading(); 188 virtual void DidStopLoading();
189 virtual void SetContentRestriction(int restrictions); 189 virtual void SetContentRestriction(int restrictions);
190 virtual void HasUnsupportedFeature(); 190 virtual void HasUnsupportedFeature();
191 virtual void SaveAs();
191 virtual P2PSocketDispatcher* GetP2PSocketDispatcher(); 192 virtual P2PSocketDispatcher* GetP2PSocketDispatcher();
192 193
193 private: 194 private:
194 // Pointer to the RenderView that owns us. 195 // Pointer to the RenderView that owns us.
195 RenderView* render_view_; 196 RenderView* render_view_;
196 197
197 std::set<webkit::ppapi::PluginInstance*> active_instances_; 198 std::set<webkit::ppapi::PluginInstance*> active_instances_;
198 199
199 // Used to send a single context menu "completion" upon menu close. 200 // Used to send a single context menu "completion" upon menu close.
200 bool has_saved_context_menu_action_; 201 bool has_saved_context_menu_action_;
201 unsigned saved_context_menu_action_; 202 unsigned saved_context_menu_action_;
202 203
203 // TODO(viettrungluu): Get rid of |id_generator_| -- just use |IDMap::Add()|. 204 // TODO(viettrungluu): Get rid of |id_generator_| -- just use |IDMap::Add()|.
204 // Rename |messages_waiting_replies_| (to specify async open file). 205 // Rename |messages_waiting_replies_| (to specify async open file).
205 int id_generator_; 206 int id_generator_;
206 IDMap<AsyncOpenFileCallback> messages_waiting_replies_; 207 IDMap<AsyncOpenFileCallback> messages_waiting_replies_;
207 208
208 IDMap<scoped_refptr<webkit::ppapi::PPB_Flash_NetConnector_Impl>, 209 IDMap<scoped_refptr<webkit::ppapi::PPB_Flash_NetConnector_Impl>,
209 IDMapOwnPointer> pending_connect_tcps_; 210 IDMapOwnPointer> pending_connect_tcps_;
210 211
211 IDMap<scoped_refptr<webkit::ppapi::PPB_Flash_Menu_Impl>, 212 IDMap<scoped_refptr<webkit::ppapi::PPB_Flash_Menu_Impl>,
212 IDMapOwnPointer> pending_context_menus_; 213 IDMapOwnPointer> pending_context_menus_;
213 214
214 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); 215 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
215 }; 216 };
216 217
217 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 218 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698