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

Side by Side Diff: content/plugin/plugin_thread.h

Issue 19844003: Remove webkit/plugins/npapi. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove GetDefaultWindowParent Created 7 years, 5 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 CONTENT_PLUGIN_PLUGIN_THREAD_H_ 5 #ifndef CONTENT_PLUGIN_PLUGIN_THREAD_H_
6 #define CONTENT_PLUGIN_PLUGIN_THREAD_H_ 6 #define CONTENT_PLUGIN_PLUGIN_THREAD_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/native_library.h" 9 #include "base/native_library.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 12 matching lines...) Expand all
23 // process and WebPluginDelegateStub in this thread through IPC messages. 23 // process and WebPluginDelegateStub in this thread through IPC messages.
24 class PluginThread : public ChildThread { 24 class PluginThread : public ChildThread {
25 public: 25 public:
26 PluginThread(); 26 PluginThread();
27 virtual ~PluginThread(); 27 virtual ~PluginThread();
28 virtual void Shutdown() OVERRIDE; 28 virtual void Shutdown() OVERRIDE;
29 29
30 // Returns the one plugin thread. 30 // Returns the one plugin thread.
31 static PluginThread* current(); 31 static PluginThread* current();
32 32
33 // Tells the plugin thread to terminate the process forcefully instead of
34 // exiting cleanly.
35 void SetForcefullyTerminatePluginProcess();
36
33 private: 37 private:
34 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; 38 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE;
35 39
36 // Callback for when a channel has been created. 40 // Callback for when a channel has been created.
37 void OnCreateChannel(int renderer_id, bool incognito); 41 void OnCreateChannel(int renderer_id, bool incognito);
38 void OnPluginMessage(const std::vector<uint8> &data); 42 void OnPluginMessage(const std::vector<uint8> &data);
39 void OnNotifyRenderersOfPendingShutdown(); 43 void OnNotifyRenderersOfPendingShutdown();
40 #if defined(OS_MACOSX) 44 #if defined(OS_MACOSX)
41 void OnAppActivated(); 45 void OnAppActivated();
42 void OnPluginFocusNotify(uint32 instance_id); 46 void OnPluginFocusNotify(uint32 instance_id);
43 #endif 47 #endif
44 48
45 // The plugin module which is preloaded in Init 49 // The plugin module which is preloaded in Init
46 base::NativeLibrary preloaded_plugin_module_; 50 base::NativeLibrary preloaded_plugin_module_;
47 51
52 bool forcefully_terminate_plugin_process_;
53
48 DISALLOW_COPY_AND_ASSIGN(PluginThread); 54 DISALLOW_COPY_AND_ASSIGN(PluginThread);
49 }; 55 };
50 56
51 } // namespace content 57 } // namespace content
52 58
53 #endif // CONTENT_PLUGIN_PLUGIN_THREAD_H_ 59 #endif // CONTENT_PLUGIN_PLUGIN_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698