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| to UMA when plugin load fails. |
| 116 void ReportLoadErrorCode(const base::FilePath& path, |
| 117 const base::NativeLibraryLoadError& error); |
| 118 |
115 // True if running in a broker process rather than a normal plugin process. | 119 // True if running in a broker process rather than a normal plugin process. |
116 bool is_broker_; | 120 bool is_broker_; |
117 | 121 |
118 base::ScopedNativeLibrary library_; | 122 base::ScopedNativeLibrary library_; |
119 | 123 |
120 ppapi::PpapiPermissions permissions_; | 124 ppapi::PpapiPermissions permissions_; |
121 | 125 |
122 // Global state tracking for the proxy. | 126 // Global state tracking for the proxy. |
123 ppapi::proxy::PluginGlobals plugin_globals_; | 127 ppapi::proxy::PluginGlobals plugin_globals_; |
124 | 128 |
(...skipping 26 matching lines...) Expand all Loading... |
151 // Caches the handle to the peer process if this is a broker. | 155 // Caches the handle to the peer process if this is a broker. |
152 base::win::ScopedHandle peer_handle_; | 156 base::win::ScopedHandle peer_handle_; |
153 #endif | 157 #endif |
154 | 158 |
155 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); | 159 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); |
156 }; | 160 }; |
157 | 161 |
158 } // namespace content | 162 } // namespace content |
159 | 163 |
160 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 164 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
OLD | NEW |