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 10830204: Browser Plugin: Rename old colliding files to old_*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_HELPER_H__
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_HELPER_H__
7
8 #include <string>
9
10 #include "base/compiler_specific.h"
11 #include "content/public/browser/render_view_host_observer.h"
12 #include "ipc/ipc_channel_handle.h"
13
14 namespace gfx {
15 class Size;
16 }
17
18 namespace content {
19 namespace old {
20
21 class BrowserPluginHost;
22
23 // 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 // BrowserPluginHostHelper handles BrowserPluginHost messages and relays
26 // them with their associated RenderViewHosts to BrowserPluginHost where they
27 // will be handled.
28 class BrowserPluginHostHelper : public RenderViewHostObserver {
29 public:
30 BrowserPluginHostHelper(BrowserPluginHost* browser_plugin_host,
31 RenderViewHost* render_view_host);
32 virtual ~BrowserPluginHostHelper();
33
34 private:
35 void OnConnectToChannel(const IPC::ChannelHandle& channel_handle);
36 void OnNavigateGuestFromEmbedder(int container_instance_id,
37 long long frame_id,
38 const std::string& src);
39 void OnResizeGuest(int width, int height);
40
41 // RenderViewHostObserver implementation.
42 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
43
44 BrowserPluginHost* browser_plugin_host_;
45
46 DISALLOW_COPY_AND_ASSIGN(BrowserPluginHostHelper);
47 };
48
49 } // namespace old
50 } // namespace content
51
52 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_HELPER_H__
53
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698