| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( | 53 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( |
| 54 base::PlatformFile handle, | 54 base::PlatformFile handle, |
| 55 const IPC::SyncChannel& channel, | 55 const IPC::SyncChannel& channel, |
| 56 bool should_close_source) OVERRIDE; | 56 bool should_close_source) OVERRIDE; |
| 57 virtual uint32 Register( | 57 virtual uint32 Register( |
| 58 ppapi::proxy::PluginDispatcher* plugin_dispatcher) OVERRIDE; | 58 ppapi::proxy::PluginDispatcher* plugin_dispatcher) OVERRIDE; |
| 59 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE; | 59 virtual void Unregister(uint32 plugin_dispatcher_id) OVERRIDE; |
| 60 | 60 |
| 61 // PluginProxyDelegate. | 61 // PluginProxyDelegate. |
| 62 virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE; | 62 virtual bool SendToBrowser(IPC::Message* msg) OVERRIDE; |
| 63 virtual int32_t SendOpenFileRequestToBrowser( |
| 64 const char* path, int32_t mode, PP_FileHandle* file) OVERRIDE; |
| 65 virtual int32_t SendRenameFileRequestToBrowser( |
| 66 const char* from_path, const char* to_path) OVERRIDE; |
| 67 virtual int32_t SendDeleteFileOrDirRequestToBrowser( |
| 68 const char* path, PP_Bool recursive) OVERRIDE; |
| 69 virtual int32_t SendCreateDirRequestToBrowser(const char* path) OVERRIDE; |
| 70 virtual int32_t SendQueryFileRequestToBrowser( |
| 71 const char* path, PP_FileInfo* info) OVERRIDE; |
| 72 virtual int32_t SendGetDirContentsRequestToBrowser( |
| 73 const char* path, PP_DirContents_Dev** contents) OVERRIDE; |
| 63 virtual void PreCacheFont(const void* logfontw) OVERRIDE; | 74 virtual void PreCacheFont(const void* logfontw) OVERRIDE; |
| 64 | 75 |
| 65 // Message handlers. | 76 // Message handlers. |
| 66 void OnMsgLoadPlugin(const FilePath& path); | 77 void OnMsgLoadPlugin(const FilePath& path); |
| 67 void OnMsgCreateChannel(int renderer_id, | 78 void OnMsgCreateChannel(int renderer_id, |
| 68 bool incognito); | 79 bool incognito); |
| 69 void OnMsgSetNetworkState(bool online); | 80 void OnMsgSetNetworkState(bool online); |
| 70 void OnPluginDispatcherMessageReceived(const IPC::Message& msg); | 81 void OnPluginDispatcherMessageReceived(const IPC::Message& msg); |
| 71 | 82 |
| 72 // Sets up the channel to the given renderer. On success, returns true and | 83 // Sets up the channel to the given renderer. On success, returns true and |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 123 |
| 113 #if defined(OS_WIN) | 124 #if defined(OS_WIN) |
| 114 // Caches the handle to the peer process if this is a broker. | 125 // Caches the handle to the peer process if this is a broker. |
| 115 base::win::ScopedHandle peer_handle_; | 126 base::win::ScopedHandle peer_handle_; |
| 116 #endif | 127 #endif |
| 117 | 128 |
| 118 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); | 129 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); |
| 119 }; | 130 }; |
| 120 | 131 |
| 121 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 132 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
| OLD | NEW |