Index: chrome/browser/renderer_host/pepper/pepper_ext_crx_file_system_browser_host.h |
diff --git a/chrome/browser/renderer_host/pepper/pepper_ext_crx_file_system_browser_host.h b/chrome/browser/renderer_host/pepper/pepper_ext_crx_file_system_browser_host.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..54db62ddfe9edfe46fbba2e651139e9cb7088e8e |
--- /dev/null |
+++ b/chrome/browser/renderer_host/pepper/pepper_ext_crx_file_system_browser_host.h |
@@ -0,0 +1,49 @@ |
+// Copyright (c) 2013 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 CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_EXT_CRX_FILE_SYSTEM_BROWSER_HOST_H_ |
+#define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_EXT_CRX_FILE_SYSTEM_BROWSER_HOST_H_ |
+ |
+#include <string> |
+ |
+#include "ppapi/c/pp_instance.h" |
+#include "ppapi/c/pp_resource.h" |
+#include "ppapi/host/resource_host.h" |
+#include "ppapi/proxy/resource_message_params.h" |
+ |
+namespace content { |
+class BrowserPpapiHost; |
+} |
+ |
+namespace ppapi { |
+namespace host { |
+struct HostMessageContext; |
+} // namespace host |
+} // namespace ppapi |
+ |
+namespace chrome { |
+ |
+class PepperExtCrxFileSystemBrowserHost : public ppapi::host::ResourceHost { |
+ public: |
+ PepperExtCrxFileSystemBrowserHost(content::BrowserPpapiHost* host, |
+ PP_Instance instance, |
+ PP_Resource resource); |
+ virtual ~PepperExtCrxFileSystemBrowserHost(); |
+ |
+ // ResourceHost override. |
+ virtual int32_t OnResourceMessageReceived( |
+ const IPC::Message& msg, |
+ ppapi::host::HostMessageContext* context) OVERRIDE; |
+ |
+ private: |
+ int32_t OnOpenFileSystem(ppapi::host::HostMessageContext* context); |
+ |
+ content::BrowserPpapiHost* browser_ppapi_host_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(PepperExtCrxFileSystemBrowserHost); |
+}; |
+ |
+} // namespace chrome |
+ |
+#endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_EXT_CRX_FILE_SYSTEM_BROWSER_HOST_H_ |