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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual void Shutdown() OVERRIDE; | 49 virtual void Shutdown() OVERRIDE; |
50 | 50 |
51 private: | 51 private: |
52 // Make sure the enum list in tools/histogram/histograms.xml is updated with | 52 // Make sure the enum list in tools/histogram/histograms.xml is updated with |
53 // any change in this list. | 53 // any change in this list. |
54 enum LoadResult { | 54 enum LoadResult { |
55 LOAD_SUCCESS, | 55 LOAD_SUCCESS, |
56 LOAD_FAILED, | 56 LOAD_FAILED, |
57 ENTRY_POINT_MISSING, | 57 ENTRY_POINT_MISSING, |
58 INIT_FAILED, | 58 INIT_FAILED, |
| 59 FILE_MISSING, |
59 // NOTE: Add new values only immediately above this line. | 60 // NOTE: Add new values only immediately above this line. |
60 LOAD_RESULT_MAX // Boundary value for UMA_HISTOGRAM_ENUMERATION. | 61 LOAD_RESULT_MAX // Boundary value for UMA_HISTOGRAM_ENUMERATION. |
61 }; | 62 }; |
62 | 63 |
63 // ChildThread overrides. | 64 // ChildThread overrides. |
64 virtual bool Send(IPC::Message* msg) OVERRIDE; | 65 virtual bool Send(IPC::Message* msg) OVERRIDE; |
65 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 66 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
66 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 67 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
67 | 68 |
68 // PluginDispatcher::PluginDelegate implementation. | 69 // PluginDispatcher::PluginDelegate implementation. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // Caches the handle to the peer process if this is a broker. | 156 // Caches the handle to the peer process if this is a broker. |
156 base::win::ScopedHandle peer_handle_; | 157 base::win::ScopedHandle peer_handle_; |
157 #endif | 158 #endif |
158 | 159 |
159 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); | 160 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); |
160 }; | 161 }; |
161 | 162 |
162 } // namespace content | 163 } // namespace content |
163 | 164 |
164 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 165 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
OLD | NEW |