Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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_PUBLIC_BROWSER_GUEST_PROXY_HOST_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_GUEST_PROXY_HOST_H_ | |
| 7 | |
| 8 #include "ui/gfx/geometry/size.h" | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 // A GuestProxyHost is a content API for guest renderers. Guests are top-level | |
|
Charlie Reis
2015/03/09 18:52:59
nit: renderer == process. Do you mean "guests in
Fady Samuel
2015/03/09 23:02:41
guest WebContents, really. Updated.
| |
| 13 // frames that can be embedded within other pages. The content module manages | |
| 14 // routing of input events and compositing, but all other operations are managed | |
| 15 // outside of content. To limit exposure of implementation details within | |
| 16 // content, content embedders must use this interface for loading, sizing,and | |
|
Charlie Reis
2015/03/09 18:52:59
nit: space after comma
Fady Samuel
2015/03/09 23:02:41
Done.
| |
| 17 // cleanup of guests. | |
| 18 // This class currently only serves as a base class for BrowserPluginGuest, and | |
|
Charlie Reis
2015/03/09 18:52:59
nit: Line break (//\n) between paragraphs).
Fady Samuel
2015/03/09 23:02:41
Done.
| |
| 19 // its API can only be accessed by a BrowserPluginGuestDelegate. | |
| 20 class GuestProxyHost { | |
|
Charlie Reis
2015/03/09 21:25:22
I feel like GuestHost might be a better name for t
Fady Samuel
2015/03/09 23:02:41
Done.
| |
| 21 public: | |
| 22 // Loads a URL using the specified |load_params| and returns a routing ID to | |
| 23 // a proxy to the guest window created. | |
|
Charlie Reis
2015/03/09 18:52:59
nit: a routing ID for a proxy for the guest.
Don'
Fady Samuel
2015/03/09 23:02:41
Done.
| |
| 24 virtual int LoadURLWithParams( | |
|
Charlie Reis
2015/03/09 18:52:59
Do we actually need the return value? (See my com
Charlie Reis
2015/03/09 21:25:22
Disregard. Only makes sense in Option 2.
Fady Samuel
2015/03/09 23:02:41
Marking done twice so I know I've done what needs
Fady Samuel
2015/03/09 23:02:41
Marking done twice so I know I've done what needs
| |
| 25 const NavigationController::LoadURLParams& load_params) = 0; | |
| 26 | |
| 27 // Sets the size of the guest WebContents. | |
| 28 virtual void SizeContents(const gfx::Size& new_size) = 0; | |
| 29 | |
| 30 // Called when the GuestProxyHost is about to be destroyed. | |
| 31 virtual void WillDestroy() = 0; | |
| 32 }; | |
| 33 | |
| 34 } // namespace content | |
| 35 | |
| 36 #endif // CONTENT_PUBLIC_BROWSER_GUEST_PROXY_HOST_H_ | |
| OLD | NEW |