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

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

Issue 7709020: Moving the ViewHostMsg_PDFHasUnsupportedFeature IPC message to Chrome as PDF is a chrome specific (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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 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 <map> 10 #include <map>
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 virtual gfx::Size GetScreenSize() OVERRIDE; 287 virtual gfx::Size GetScreenSize() OVERRIDE;
288 virtual std::string GetDefaultEncoding() OVERRIDE; 288 virtual std::string GetDefaultEncoding() OVERRIDE;
289 virtual void ZoomLimitsChanged(double minimum_factor, double maximum_factor) 289 virtual void ZoomLimitsChanged(double minimum_factor, double maximum_factor)
290 OVERRIDE; 290 OVERRIDE;
291 virtual void SubscribeToPolicyUpdates( 291 virtual void SubscribeToPolicyUpdates(
292 webkit::ppapi::PluginInstance* instance) OVERRIDE; 292 webkit::ppapi::PluginInstance* instance) OVERRIDE;
293 virtual std::string ResolveProxy(const GURL& url) OVERRIDE; 293 virtual std::string ResolveProxy(const GURL& url) OVERRIDE;
294 virtual void DidStartLoading() OVERRIDE; 294 virtual void DidStartLoading() OVERRIDE;
295 virtual void DidStopLoading() OVERRIDE; 295 virtual void DidStopLoading() OVERRIDE;
296 virtual void SetContentRestriction(int restrictions) OVERRIDE; 296 virtual void SetContentRestriction(int restrictions) OVERRIDE;
297 virtual void HasUnsupportedFeature() OVERRIDE;
298 virtual void SaveURLAs(const GURL& url) OVERRIDE; 297 virtual void SaveURLAs(const GURL& url) OVERRIDE;
299 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() OVERRIDE; 298 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() OVERRIDE;
300 virtual webkit_glue::P2PTransport* CreateP2PTransport() OVERRIDE; 299 virtual webkit_glue::P2PTransport* CreateP2PTransport() OVERRIDE;
301 virtual double GetLocalTimeZoneOffset(base::Time t) OVERRIDE; 300 virtual double GetLocalTimeZoneOffset(base::Time t) OVERRIDE;
302 virtual std::string GetFlashCommandLineArgs() OVERRIDE; 301 virtual std::string GetFlashCommandLineArgs() OVERRIDE;
303 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) 302 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size)
304 OVERRIDE; 303 OVERRIDE;
305 virtual ::ppapi::Preferences GetPreferences() OVERRIDE; 304 virtual ::ppapi::Preferences GetPreferences() OVERRIDE;
306 305
306 int GetRenderViewRoutingId() const;
jam 2011/08/23 02:44:30 nit: you can just say GetRoutingId() without menti
ananta 2011/08/23 18:14:03 Done.
307
307 private: 308 private:
308 void PublishInitialPolicy( 309 void PublishInitialPolicy(
309 scoped_refptr<webkit::ppapi::PluginInstance> instance, 310 scoped_refptr<webkit::ppapi::PluginInstance> instance,
310 const std::string& policy); 311 const std::string& policy);
311 312
312 // Asynchronously attempts to create a PPAPI broker for the given plugin. 313 // Asynchronously attempts to create a PPAPI broker for the given plugin.
313 scoped_refptr<PpapiBrokerImpl> CreatePpapiBroker( 314 scoped_refptr<PpapiBrokerImpl> CreatePpapiBroker(
314 webkit::ppapi::PluginModule* plugin_module); 315 webkit::ppapi::PluginModule* plugin_module);
315 316
316 // Pointer to the RenderView that owns us. 317 // Pointer to the RenderView that owns us.
(...skipping 23 matching lines...) Expand all
340 bool is_pepper_plugin_focused_; 341 bool is_pepper_plugin_focused_;
341 342
342 // Set of instances to receive a notification when the enterprise policy has 343 // Set of instances to receive a notification when the enterprise policy has
343 // been updated. 344 // been updated.
344 std::set<webkit::ppapi::PluginInstance*> subscribed_to_policy_updates_; 345 std::set<webkit::ppapi::PluginInstance*> subscribed_to_policy_updates_;
345 346
346 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); 347 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
347 }; 348 };
348 349
349 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 350 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698