| OLD | NEW |
| 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_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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 bool SetupRendererChannel(base::ProcessId renderer_pid, | 105 bool SetupRendererChannel(base::ProcessId renderer_pid, |
| 106 int renderer_child_id, | 106 int renderer_child_id, |
| 107 bool incognito, | 107 bool incognito, |
| 108 IPC::ChannelHandle* handle); | 108 IPC::ChannelHandle* handle); |
| 109 | 109 |
| 110 // Sets up the name of the plugin for logging using the given path. | 110 // Sets up the name of the plugin for logging using the given path. |
| 111 void SavePluginName(const base::FilePath& path); | 111 void SavePluginName(const base::FilePath& path); |
| 112 | 112 |
| 113 void ReportLoadResult(const base::FilePath& path, LoadResult result); | 113 void ReportLoadResult(const base::FilePath& path, LoadResult result); |
| 114 | 114 |
| 115 // Reports |error_code| when plugin load fails. |
| 116 void ReportLoadErrorCode(const base::FilePath& path, uint32 error_code); |
| 117 |
| 115 // True if running in a broker process rather than a normal plugin process. | 118 // True if running in a broker process rather than a normal plugin process. |
| 116 bool is_broker_; | 119 bool is_broker_; |
| 117 | 120 |
| 118 base::ScopedNativeLibrary library_; | 121 base::ScopedNativeLibrary library_; |
| 119 | 122 |
| 120 ppapi::PpapiPermissions permissions_; | 123 ppapi::PpapiPermissions permissions_; |
| 121 | 124 |
| 122 // Global state tracking for the proxy. | 125 // Global state tracking for the proxy. |
| 123 ppapi::proxy::PluginGlobals plugin_globals_; | 126 ppapi::proxy::PluginGlobals plugin_globals_; |
| 124 | 127 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 151 // Caches the handle to the peer process if this is a broker. | 154 // Caches the handle to the peer process if this is a broker. |
| 152 base::win::ScopedHandle peer_handle_; | 155 base::win::ScopedHandle peer_handle_; |
| 153 #endif | 156 #endif |
| 154 | 157 |
| 155 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); | 158 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); |
| 156 }; | 159 }; |
| 157 | 160 |
| 158 } // namespace content | 161 } // namespace content |
| 159 | 162 |
| 160 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 163 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
| OLD | NEW |