namespace content {
class ColorChooser;
struct FileChooserParams;
-class WebContents;
class RenderProcessHost;
+class SiteInstance;
+class WebContents;
}
namespace xwalk {
// is overridden WebContentsDelegate method. The "observer" is needed to
// observe appearance and removal of such Runtime instances.
class Observer {
- public:
+ public:
// Called when a new Runtime instance is added.
virtual void OnRuntimeAdded(Runtime* runtime) = 0;
// Called when a Runtime instance is removed.
virtual void OnRuntimeRemoved(Runtime* runtime) = 0;
- protected:
+ protected:
virtual ~Observer() {}
};
static Runtime* CreateWithDefaultWindow(RuntimeContext*,
const GURL&, Observer* = NULL);
// Create a new Runtime instance with the given browsing context.
- static Runtime* Create(RuntimeContext*, Observer* = NULL);
+ static Runtime* Create(RuntimeContext*,
+ Observer* = NULL, content::SiteInstance* = NULL);
// Attach to a default app window.
void AttachDefaultWindow();
const content::MediaResponseCallback& callback) OVERRIDE;
// Overridden from content::WebContentsObserver.
- virtual void DidUpdateFaviconURL(int32 page_id,
+ virtual void DidUpdateFaviconURL(
const std::vector<content::FaviconURL>& candidates) OVERRIDE;
// Callback method for WebContents::DownloadImage.