Index: content/public/browser/browser_ppapi_host.h |
diff --git a/content/public/browser/browser_ppapi_host.h b/content/public/browser/browser_ppapi_host.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a25a6d02318707a0cfddcf6e7c47115af0afbe22 |
--- /dev/null |
+++ b/content/public/browser/browser_ppapi_host.h |
@@ -0,0 +1,32 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ |
+#define CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ |
+ |
+namespace ppapi { |
+namespace host { |
+class PpapiHost; |
+} |
+} |
+ |
+namespace content { |
+ |
+// Interface that allows components in the embedder app to talk to the |
+// PpapiHost in the browser process. |
+// |
+// There will be one of these objects in the browser per plugin process. It |
+// lives entirely on the I/O thread. |
+class BrowserPpapiHost { |
+ public: |
+ // Returns the PpapiHost object. |
+ virtual ppapi::host::PpapiHost* GetPpapiHost() = 0; |
+ |
+ protected: |
+ virtual ~BrowserPpapiHost() {} |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ |