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

Side by Side Diff: content/renderer/browser_plugin/guest_render_view_observer.h

Issue 9968097: Browser Plugin: Renderer-side changes (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed unnecessary include and forward declaration. Created 8 years, 8 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_RENDERER_GUEST_RENDER_VIEW_OBSERVER_H_
6 #define CONTENT_RENDERER_GUEST_RENDER_VIEW_OBSERVER_H_
7 #pragma once
8
9 #include "content/public/renderer/render_view_observer.h"
10 #include "content/renderer/browser_plugin/guest_to_host_channel.h"
11
12 namespace content {
13 class RenderView;
jam 2012/04/06 21:05:23 nit: don't need this, it must be in render_view_ob
Fady Samuel 2012/04/06 22:46:32 Oops, must be a remnant of an earlier revision of
14 }
15
16 class GuestRenderViewObserver: public content::RenderViewObserver {
piman 2012/04/06 23:19:26 Please add comments to this class about what it's
17 public:
18
19 WebGraphicsContext3DCommandBufferImpl* GetWebGraphicsContext3D(
20 const WebKit::WebGraphicsContext3D::Attributes& attributes);
21
22 int routing_id() { return content::RenderViewObserver::routing_id(); }
23
24 void IssueSwapBuffers();
piman 2012/04/06 23:19:26 Please add documentation.
25
26 // RenderViewObserver implementation.
27
jam 2012/04/06 21:05:23 nit: no need for blank line. also see my comments
Fady Samuel 2012/04/06 22:46:32 Done.
28 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
29
30 private:
jam 2012/04/06 21:05:23 spacing..
Fady Samuel 2012/04/06 22:46:32 Done.
31 GuestRenderViewObserver(content::RenderView* render_view);
32
33 ~GuestRenderViewObserver() { }
34
35 void OnCreateChannel(base::ProcessHandle host_process_handle,
36 int renderer_id);
37
38 void OnGuestReady(int instance_id,
39 base::ProcessHandle process_handle,
40 const IPC::ChannelHandle& channel_handle);
41
42 GuestToHostChannel guest_to_host_channel_;
43
44 friend class RenderViewImpl;
jam 2012/04/06 21:05:23 why are you friending instead of making these publ
Fady Samuel 2012/04/06 22:46:32 Thanks for catching this. This is a remnant of an
45 friend class GuestToHostChannel;
46 };
47
48 #endif // CONTENT_RENDERER_GUEST_RENDER_VIEW_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698