OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
lfg
2015/03/04 19:10:20
2015
Fady Samuel
2015/03/05 20:56:23
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // This module provides class that serves as a public interface for a | |
Charlie Reis
2015/03/04 20:08:36
The class level comment should go at line 20, belo
Fady Samuel
2015/03/05 20:56:23
Done.
| |
6 // derived object that can size a guest. | |
lfg
2015/03/04 19:10:20
Old comment?
Fady Samuel
2015/03/05 20:56:23
Deleted.
| |
7 | |
8 // This class currently only serves as a base class for BrowserPluginGuest, and | |
9 // its API can only be accessed by a BrowserPluginGuestDelegate. This module | |
10 // will go away once the migration to RenderFrame architecture has completed | |
11 // (http://crbug.com/330264). | |
12 | |
13 #ifndef CONTENT_PUBLIC_BROWSER_GUEST_PROXY_HOST_H_ | |
14 #define CONTENT_PUBLIC_BROWSER_GUEST_PROXY_HOST_H_ | |
15 | |
16 #include "ui/gfx/geometry/size.h" | |
17 | |
18 namespace content { | |
19 | |
20 class GuestProxyHost { | |
Charlie Reis
2015/03/04 20:08:36
I'm hesitant to expose the concept of proxy hosts
Fady Samuel
2015/03/05 20:56:23
This is not really the same as RenderFrameProxyHos
Charlie Reis
2015/03/06 00:05:35
I notice that you've removed the TODO. Are we goi
| |
21 public: | |
22 // Returns the routing ID for the RenderView proxy for the guest in the | |
23 // owner's guest process if one has been created. If one has not been created | |
24 // then MSG_ROUTING_NONE is returned. | |
25 virtual int GetGuestProxyRoutingID() const = 0; | |
26 | |
27 // Creates a RenderView proxy for the guest in the owner's process. | |
Charlie Reis
2015/03/04 20:08:36
Please make it clear that this either creates or r
Fady Samuel
2015/03/05 20:56:23
Done.
| |
28 // This allows for a postMessage connection between processes. | |
29 virtual int GetOrCreateGuestProxyInOwnerProcess() = 0; | |
30 | |
31 // Sets the size of the guest WebContents. | |
32 virtual void SizeContents(const gfx::Size& new_size) = 0; | |
33 | |
34 // Called when the GuestProxyHost is about to be destroyed. | |
35 virtual void WillDestroy() = 0; | |
36 }; | |
37 | |
38 } // namespace content | |
39 | |
40 #endif // CONTENT_PUBLIC_BROWSER_GUEST_PROXY_HOST_H_ | |
OLD | NEW |