| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 PPAPI_PROXY_HOST_DISPATCHER_H_ | 5 #ifndef PPAPI_PROXY_HOST_DISPATCHER_H_ |
| 6 #define PPAPI_PROXY_HOST_DISPATCHER_H_ | 6 #define PPAPI_PROXY_HOST_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 bool InitializeModule(); | 47 bool InitializeModule(); |
| 48 | 48 |
| 49 // The host side maintains a mapping from PP_Instance to Dispatcher so | 49 // The host side maintains a mapping from PP_Instance to Dispatcher so |
| 50 // that we can send the messages to the right channel. | 50 // that we can send the messages to the right channel. |
| 51 static HostDispatcher* GetForInstance(PP_Instance instance); | 51 static HostDispatcher* GetForInstance(PP_Instance instance); |
| 52 static void SetForInstance(PP_Instance instance, | 52 static void SetForInstance(PP_Instance instance, |
| 53 HostDispatcher* dispatcher); | 53 HostDispatcher* dispatcher); |
| 54 static void RemoveForInstance(PP_Instance instance); | 54 static void RemoveForInstance(PP_Instance instance); |
| 55 | 55 |
| 56 // Dispatcher overrides. | 56 // Dispatcher overrides. |
| 57 virtual bool IsPlugin() const { return false; } | 57 virtual bool IsPlugin() const; |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 DISALLOW_COPY_AND_ASSIGN(HostDispatcher); | 60 DISALLOW_COPY_AND_ASSIGN(HostDispatcher); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace proxy | 63 } // namespace proxy |
| 64 } // namespace pp | 64 } // namespace pp |
| 65 | 65 |
| 66 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ | 66 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ |
| OLD | NEW |