Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Unified Diff: content/browser/renderer_host/pepper/pepper_flash_browser_host.h

Issue 11415140: Refactor 3 PPB_Flash functions to the new resource model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/pepper/pepper_flash_browser_host.h
diff --git a/content/browser/renderer_host/pepper/pepper_flash_browser_host.h b/content/browser/renderer_host/pepper/pepper_flash_browser_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..839be27a9b4ba092267d6273f3f69156363aa282
--- /dev/null
+++ b/content/browser/renderer_host/pepper/pepper_flash_browser_host.h
@@ -0,0 +1,35 @@
+// 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_RENDERER_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_
+#define CONTENT_RENDERER_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_
+
+#include "base/basictypes.h"
+#include "ppapi/host/host_message_context.h"
+#include "ppapi/host/resource_host.h"
+
+namespace content {
+
+class BrowserPpapiHost;
+
+class PepperFlashBrowserHost : public ppapi::host::ResourceHost {
+ public:
+ PepperFlashBrowserHost(BrowserPpapiHost* host,
+ PP_Instance instance,
+ PP_Resource resource);
+ virtual ~PepperFlashBrowserHost();
+
+ virtual int32_t OnResourceMessageReceived(
victorhsieh 2012/11/28 07:09:50 // ppapi::host::ResourceHost override.
raymes 2012/11/29 00:08:08 Done.
+ const IPC::Message& msg,
+ ppapi::host::HostMessageContext* context) OVERRIDE;
+
+ private:
+ int32_t OnMsgUpdateActivity(ppapi::host::HostMessageContext* host_context);
+
+ DISALLOW_COPY_AND_ASSIGN(PepperFlashBrowserHost);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_PEPPER_PEPPER_FLASH_BROWSER_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698