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

Side by Side Diff: webkit/plugins/ppapi/ppapi_plugin_instance.h

Issue 10837086: Change PluginInstance so it shuts down the NaCl Plugin when it uses the IPC PPAPI proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 499
500 // Track, set and reset size attributes to control the size of the plugin 500 // Track, set and reset size attributes to control the size of the plugin
501 // in and out of fullscreen mode. 501 // in and out of fullscreen mode.
502 void KeepSizeAttributesBeforeFullscreen(); 502 void KeepSizeAttributesBeforeFullscreen();
503 void SetSizeAttributesForFullscreen(); 503 void SetSizeAttributesForFullscreen();
504 void ResetSizeAttributesAfterFullscreen(); 504 void ResetSizeAttributesAfterFullscreen();
505 505
506 PluginDelegate* delegate_; 506 PluginDelegate* delegate_;
507 scoped_refptr<PluginModule> module_; 507 scoped_refptr<PluginModule> module_;
508 scoped_ptr< ::ppapi::PPP_Instance_Combined> instance_interface_; 508 scoped_ptr< ::ppapi::PPP_Instance_Combined> instance_interface_;
509 // If this is the NaCl plugin, store its instance interface so we can shut
510 // it down properly when using the IPC-based PPAPI proxy.
511 // TODO(bbudge) Remove this when the proxy switch is complete.
512 scoped_ptr< ::ppapi::PPP_Instance_Combined> nacl_plugin_instance_interface_;
509 513
510 PP_Instance pp_instance_; 514 PP_Instance pp_instance_;
511 515
512 // NULL until we have been initialized. 516 // NULL until we have been initialized.
513 WebKit::WebPluginContainer* container_; 517 WebKit::WebPluginContainer* container_;
514 518
515 // Plugin URL. 519 // Plugin URL.
516 GURL plugin_url_; 520 GURL plugin_url_;
517 521
518 // Indicates whether this is a full frame instance, which means it represents 522 // Indicates whether this is a full frame instance, which means it represents
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 // the pointer so we can re-send it later if we are reset to talk to NaCl. 680 // the pointer so we can re-send it later if we are reset to talk to NaCl.
677 scoped_refptr<PPB_URLLoader_Impl> document_loader_; 681 scoped_refptr<PPB_URLLoader_Impl> document_loader_;
678 682
679 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 683 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
680 }; 684 };
681 685
682 } // namespace ppapi 686 } // namespace ppapi
683 } // namespace webkit 687 } // namespace webkit
684 688
685 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 689 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698