| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_ | 6 #define CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
| 10 #include "content/renderer/pepper/pepper_hung_plugin_filter.h" | 10 #include "content/renderer/pepper/pepper_hung_plugin_filter.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 base::ProcessId peer_pid_; | 62 base::ProcessId peer_pid_; |
| 63 | 63 |
| 64 // ID that the browser process uses to idetify the child process for the | 64 // ID that the browser process uses to idetify the child process for the |
| 65 // plugin. This isn't directly useful from our process (the renderer) except | 65 // plugin. This isn't directly useful from our process (the renderer) except |
| 66 // in messages to the browser to disambiguate plugins. | 66 // in messages to the browser to disambiguate plugins. |
| 67 int plugin_child_id_; | 67 int plugin_child_id_; |
| 68 | 68 |
| 69 ppapi::PpapiPermissions permissions_; | 69 ppapi::PpapiPermissions permissions_; |
| 70 bool is_external_; | 70 bool is_external_; |
| 71 | 71 |
| 72 scoped_ptr<ppapi::proxy::HostDispatcher> dispatcher_; | 72 std::unique_ptr<ppapi::proxy::HostDispatcher> dispatcher_; |
| 73 scoped_ptr<ppapi::proxy::ProxyChannel::Delegate> dispatcher_delegate_; | 73 std::unique_ptr<ppapi::proxy::ProxyChannel::Delegate> dispatcher_delegate_; |
| 74 // We hold the hung_plugin_filter_ to guarantee it outlives |dispatcher_|, | 74 // We hold the hung_plugin_filter_ to guarantee it outlives |dispatcher_|, |
| 75 // since it is an observer of |dispatcher_| for sync calls. | 75 // since it is an observer of |dispatcher_| for sync calls. |
| 76 scoped_refptr<PepperHungPluginFilter> hung_plugin_filter_; | 76 scoped_refptr<PepperHungPluginFilter> hung_plugin_filter_; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace content | 79 } // namespace content |
| 80 | 80 |
| 81 #endif // CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_ | 81 #endif // CONTENT_RENDERER_PEPPER_HOST_DISPATCHER_WRAPPER_H_ |
| OLD | NEW |