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

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

Issue 7670003: Wire experimental Flapper part two (Closed) Base URL: svn://chrome-svn/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 16 matching lines...) Expand all
27 namespace gfx { 27 namespace gfx {
28 class Point; 28 class Point;
29 class Rect; 29 class Rect;
30 } 30 }
31 31
32 namespace IPC { 32 namespace IPC {
33 struct ChannelHandle; 33 struct ChannelHandle;
34 } 34 }
35 35
36 namespace webkit { 36 namespace webkit {
37 struct WebPluginInfo;
37 namespace ppapi { 38 namespace ppapi {
38 class PepperFilePath; 39 class PepperFilePath;
39 class PluginInstance; 40 class PluginInstance;
40 class PluginModule; 41 class PluginModule;
41 } 42 }
42 } 43 }
43 44
44 namespace WebKit { 45 namespace WebKit {
45 class WebFileChooserCompletion; 46 class WebFileChooserCompletion;
46 struct WebFileChooserParams; 47 struct WebFileChooserParams;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 121
121 // Attempts to create a PPAPI plugin for the given filepath. On success, it 122 // Attempts to create a PPAPI plugin for the given filepath. On success, it
122 // will return the newly-created module. 123 // will return the newly-created module.
123 // 124 //
124 // There are two reasons for failure. The first is that the plugin isn't 125 // There are two reasons for failure. The first is that the plugin isn't
125 // a PPAPI plugin. In this case, |*pepper_plugin_was_registered| will be set 126 // a PPAPI plugin. In this case, |*pepper_plugin_was_registered| will be set
126 // to false and the caller may want to fall back on creating an NPAPI plugin. 127 // to false and the caller may want to fall back on creating an NPAPI plugin.
127 // the second is that the plugin failed to initialize. In this case, 128 // the second is that the plugin failed to initialize. In this case,
128 // |*pepper_plugin_was_registered| will be set to true and the caller should 129 // |*pepper_plugin_was_registered| will be set to true and the caller should
129 // not fall back on any other plugin types. 130 // not fall back on any other plugin types.
130 scoped_refptr<webkit::ppapi::PluginModule> CreatePepperPlugin( 131 scoped_refptr<webkit::ppapi::PluginModule> CreatePepperPluginModule(
131 const FilePath& path, 132 const webkit::WebPluginInfo& webplugin_info,
132 bool* pepper_plugin_was_registered); 133 bool* pepper_plugin_was_registered);
133 134
134 // Called by RenderView to tell us about painting events, these two functions 135 // Called by RenderView to tell us about painting events, these two functions
135 // just correspond to the DidInitiatePaint and DidFlushPaint in R.V.. 136 // just correspond to the DidInitiatePaint and DidFlushPaint in R.V..
136 void ViewInitiatedPaint(); 137 void ViewInitiatedPaint();
137 void ViewFlushedPaint(); 138 void ViewFlushedPaint();
138 139
139 // Called by RenderView to implement the corresponding function in its base 140 // Called by RenderView to implement the corresponding function in its base
140 // class RenderWidget (see that for more). 141 // class RenderWidget (see that for more).
141 webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( 142 webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint(
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 bool is_pepper_plugin_focused_; 337 bool is_pepper_plugin_focused_;
337 338
338 // Set of instances to receive a notification when the enterprise policy has 339 // Set of instances to receive a notification when the enterprise policy has
339 // been updated. 340 // been updated.
340 std::set<webkit::ppapi::PluginInstance*> subscribed_to_policy_updates_; 341 std::set<webkit::ppapi::PluginInstance*> subscribed_to_policy_updates_;
341 342
342 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); 343 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
343 }; 344 };
344 345
345 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 346 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698