OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "content/public/browser/browser_message_filter.h" |
| 11 #include "ppapi/c/pp_instance.h" |
| 12 |
| 13 namespace ppapi { |
| 14 namespace proxy { |
| 15 class ResourceMessageCallParams; |
| 16 } |
| 17 } |
| 18 |
| 19 namespace content { |
| 20 |
| 21 // This class represents a connection from the browser to the renderer for |
| 22 // sending/receiving pepper ResourceHost related messages. When the browser |
| 23 // and renderer communicate about ResourceHosts, they should pass the plugin |
| 24 // process ID to identify which plugin they are talking about. |
| 25 class PepperRendererConnection : public BrowserMessageFilter { |
| 26 public: |
| 27 PepperRendererConnection(); |
| 28 |
| 29 // BrowserMessageFilter overrides. |
| 30 virtual bool OnMessageReceived(const IPC::Message& msg, |
| 31 bool* message_was_ok) OVERRIDE; |
| 32 |
| 33 private: |
| 34 virtual ~PepperRendererConnection(); |
| 35 |
| 36 void OnMsgCreateResourceHostFromHost( |
| 37 int child_process_id, |
| 38 const ppapi::proxy::ResourceMessageCallParams& params, |
| 39 PP_Instance instance, |
| 40 const IPC::Message& nested_msg); |
| 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection); |
| 43 }; |
| 44 |
| 45 } // namespace content |
| 46 |
| 47 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ |
OLD | NEW |