| 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_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ |
| 7 | 7 |
| 8 #include "base/process.h" |
| 9 #include "content/common/content_export.h" |
| 10 |
| 8 namespace ppapi { | 11 namespace ppapi { |
| 9 namespace host { | 12 namespace host { |
| 10 class PpapiHost; | 13 class PpapiHost; |
| 11 } | 14 } |
| 12 } | 15 } |
| 13 | 16 |
| 14 namespace content { | 17 namespace content { |
| 15 | 18 |
| 16 // Interface that allows components in the embedder app to talk to the | 19 // Interface that allows components in the embedder app to talk to the |
| 17 // PpapiHost in the browser process. | 20 // PpapiHost in the browser process. |
| 18 // | 21 // |
| 19 // There will be one of these objects in the browser per plugin process. It | 22 // There will be one of these objects in the browser per plugin process. It |
| 20 // lives entirely on the I/O thread. | 23 // lives entirely on the I/O thread. |
| 21 class BrowserPpapiHost { | 24 class CONTENT_EXPORT BrowserPpapiHost { |
| 22 public: | 25 public: |
| 23 // Returns the PpapiHost object. | 26 // Returns the PpapiHost object. |
| 24 virtual ppapi::host::PpapiHost* GetPpapiHost() = 0; | 27 virtual ppapi::host::PpapiHost* GetPpapiHost() = 0; |
| 25 | 28 |
| 29 // Returns the handle to the plugin process. |
| 30 virtual base::ProcessHandle GetPluginProcessHandle() const = 0; |
| 31 |
| 26 protected: | 32 protected: |
| 27 virtual ~BrowserPpapiHost() {} | 33 virtual ~BrowserPpapiHost() {} |
| 28 }; | 34 }; |
| 29 | 35 |
| 30 } // namespace content | 36 } // namespace content |
| 31 | 37 |
| 32 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ | 38 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ |
| OLD | NEW |