| OLD | NEW |
| 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_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
| 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE; | 48 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE; |
| 49 | 49 |
| 50 // PluginProxyDelegate. | 50 // PluginProxyDelegate. |
| 51 virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE; | 51 virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE; |
| 52 virtual void PreCacheFont(const void* logfontw) OVERRIDE; | 52 virtual void PreCacheFont(const void* logfontw) OVERRIDE; |
| 53 | 53 |
| 54 // Message handlers. | 54 // Message handlers. |
| 55 void OnMsgLoadPlugin(const FilePath& path); | 55 void OnMsgLoadPlugin(const FilePath& path); |
| 56 void OnMsgCreateChannel(base::ProcessHandle host_process_handle, | 56 void OnMsgCreateChannel(base::ProcessHandle host_process_handle, |
| 57 int renderer_id); | 57 int renderer_id); |
| 58 void OnMsgClearSiteData(const std::string& site, |
| 59 uint64 flags, |
| 60 uint64 max_age); |
| 58 void OnMsgSetNetworkState(bool online); | 61 void OnMsgSetNetworkState(bool online); |
| 59 void OnPluginDispatcherMessageReceived(const IPC::Message& msg); | 62 void OnPluginDispatcherMessageReceived(const IPC::Message& msg); |
| 60 | 63 |
| 64 // Requests that the plugin clear data, returning true on success. |
| 65 bool ClearSiteData(const std::string& site, |
| 66 uint64 flags, |
| 67 uint64 max_age); |
| 68 |
| 61 // Sets up the channel to the given renderer. On success, returns true and | 69 // Sets up the channel to the given renderer. On success, returns true and |
| 62 // fills the given ChannelHandle with the information from the new channel. | 70 // fills the given ChannelHandle with the information from the new channel. |
| 63 bool SetupRendererChannel(base::ProcessHandle host_process_handle, | 71 bool SetupRendererChannel(base::ProcessHandle host_process_handle, |
| 64 int renderer_id, | 72 int renderer_id, |
| 65 IPC::ChannelHandle* handle); | 73 IPC::ChannelHandle* handle); |
| 66 | 74 |
| 67 // Sets up the name of the plugin for logging using the given path. | 75 // Sets up the name of the plugin for logging using the given path. |
| 68 void SavePluginName(const FilePath& path); | 76 void SavePluginName(const FilePath& path); |
| 69 | 77 |
| 70 // True if running in a broker process rather than a normal plugin process. | 78 // True if running in a broker process rather than a normal plugin process. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 96 std::map<uint32, ppapi::proxy::PluginDispatcher*> plugin_dispatchers_; | 104 std::map<uint32, ppapi::proxy::PluginDispatcher*> plugin_dispatchers_; |
| 97 uint32 next_plugin_dispatcher_id_; | 105 uint32 next_plugin_dispatcher_id_; |
| 98 | 106 |
| 99 // The WebKitPlatformSupport implementation. | 107 // The WebKitPlatformSupport implementation. |
| 100 scoped_ptr<PpapiWebKitPlatformSupportImpl> webkit_platform_support_; | 108 scoped_ptr<PpapiWebKitPlatformSupportImpl> webkit_platform_support_; |
| 101 | 109 |
| 102 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); | 110 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); |
| 103 }; | 111 }; |
| 104 | 112 |
| 105 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 113 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
| OLD | NEW |