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

Side by Side Diff: content/browser/browser_plugin/old/browser_plugin_host_helper.h

Issue 10735010: 3D Compositing in <browser>, first draft. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 months 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 unified diff | Download patch
OLDNEW
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_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_HELPER_H__ 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_HELPER_H__
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_HELPER_H__ 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_HELPER_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "content/common/browser_plugin_info.h"
12 #include "content/public/browser/render_view_host_observer.h" 13 #include "content/public/browser/render_view_host_observer.h"
Fady Samuel 2012/07/06 15:14:44 Given you're applying changes to the new design, c
13 #include "ipc/ipc_channel_handle.h" 14 #include "ipc/ipc_channel_handle.h"
14 15
15 namespace gfx { 16 namespace gfx {
16 class Size; 17 class Size;
17 } 18 }
18 19
19 namespace content { 20 namespace content {
20 21
21 class BrowserPluginHost; 22 class BrowserPluginHost;
22 23
23 // This class acts as a plumber helper for BrowserPluginHost. A lot 24 // This class acts as a plumber helper for BrowserPluginHost. A lot
24 // of messages coming from guests need to know the guest's RenderViewHost. 25 // of messages coming from guests need to know the guest's RenderViewHost.
25 // BrowserPluginHostHelper handles BrowserPluginHost messages and relays 26 // BrowserPluginHostHelper handles BrowserPluginHost messages and relays
26 // them with their associated RenderViewHosts to BrowserPluginHost where they 27 // them with their associated RenderViewHosts to BrowserPluginHost where they
27 // will be handled. 28 // will be handled.
28 class BrowserPluginHostHelper : public RenderViewHostObserver { 29 class BrowserPluginHostHelper : public RenderViewHostObserver {
29 public: 30 public:
30 BrowserPluginHostHelper(BrowserPluginHost* browser_plugin_host, 31 BrowserPluginHostHelper(BrowserPluginHost* browser_plugin_host,
31 RenderViewHost* render_view_host); 32 RenderViewHost* render_view_host,
33 const BrowserPluginHostMsg_Surface_Params& params);
32 virtual ~BrowserPluginHostHelper(); 34 virtual ~BrowserPluginHostHelper();
33 35
34 private: 36 private:
35 void OnConnectToChannel(const IPC::ChannelHandle& channel_handle); 37 void OnConnectToChannel(const IPC::ChannelHandle& channel_handle);
36 void OnNavigateGuestFromEmbedder(int container_instance_id, 38 void OnNavigateGuestFromEmbedder(int container_instance_id,
37 long long frame_id, 39 long long frame_id,
38 const std::string& src); 40 const std::string& src,
41 const BrowserPluginHostMsg_Surface_Params& pa rams);
39 void OnResizeGuest(int width, int height); 42 void OnResizeGuest(int width, int height);
40 43
41 // RenderViewHostObserver implementation. 44 // RenderViewHostObserver implementation.
42 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 45 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
43 46
44 BrowserPluginHost* browser_plugin_host_; 47 BrowserPluginHost* browser_plugin_host_;
45 48
49 BrowserPluginHostMsg_Surface_Params surface_params_;
50
51 friend class CrappyCompositingDelegate;
52
46 DISALLOW_COPY_AND_ASSIGN(BrowserPluginHostHelper); 53 DISALLOW_COPY_AND_ASSIGN(BrowserPluginHostHelper);
47 }; 54 };
48 55
49 } // namespace content 56 } // namespace content
50 57
51 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_HELPER_H__ 58 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_HELPER_H__
52 59
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698