summaryrefslogtreecommitdiff
path: root/chromium/content/browser/frame_host/render_frame_host_delegate.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-01-25 11:39:07 +0100
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-01-25 15:20:42 +0000
commit6c91641271e536ffaa88a1dff5127e42ee99a91e (patch)
tree703d9dd49602377ddc90cbf886aad37913f2496b /chromium/content/browser/frame_host/render_frame_host_delegate.h
parentb145b7fafd36f0c260d6a768c81fc14e32578099 (diff)
downloadqtwebengine-chromium-6c91641271e536ffaa88a1dff5127e42ee99a91e.tar.gz
BASELINE: Update Chromium to 49.0.2623.23
Also adds missing printing sources. Change-Id: I3726b8f0c7d6751c9fc846096c571fadca7108cd Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'chromium/content/browser/frame_host/render_frame_host_delegate.h')
-rw-r--r--chromium/content/browser/frame_host/render_frame_host_delegate.h24
1 files changed, 20 insertions, 4 deletions
diff --git a/chromium/content/browser/frame_host/render_frame_host_delegate.h b/chromium/content/browser/frame_host/render_frame_host_delegate.h
index 0f8e555d30c..ee5aae52bda 100644
--- a/chromium/content/browser/frame_host/render_frame_host_delegate.h
+++ b/chromium/content/browser/frame_host/render_frame_host_delegate.h
@@ -5,10 +5,13 @@
#ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
#define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
+#include <stdint.h>
+
#include <vector>
-#include "base/basictypes.h"
#include "base/i18n/rtl.h"
+#include "build/build_config.h"
+#include "content/browser/webui/web_ui_impl.h"
#include "content/common/content_export.h"
#include "content/common/frame_message_enums.h"
#include "content/public/browser/site_instance.h"
@@ -28,7 +31,9 @@ class Message;
namespace content {
class GeolocationServiceContext;
+class PageState;
class RenderFrameHost;
+class WakeLockServiceContext;
class WebContents;
struct AXEventNotificationDetails;
struct ContextMenuParams;
@@ -47,9 +52,9 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
virtual const GURL& GetMainFrameLastCommittedURL() const;
// A message was added to to the console.
- virtual bool AddMessageToConsole(int32 level,
+ virtual bool AddMessageToConsole(int32_t level,
const base::string16& message,
- int32 line_no,
+ int32_t line_no,
const base::string16& source_id);
// Informs the delegate whenever a RenderFrameHost is created.
@@ -91,10 +96,14 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
// level frame.
virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {}
+ // The state for the page changed and should be updated in session history.
+ virtual void UpdateStateForFrame(RenderFrameHost* render_frame_host,
+ const PageState& page_state) {}
+
// The page's title was changed and should be updated. Only called for the
// top-level frame.
virtual void UpdateTitle(RenderFrameHost* render_frame_host,
- int32 page_id,
+ int32_t page_id,
const base::string16& title,
base::i18n::TextDirection title_direction) {}
@@ -136,6 +145,9 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
// Gets the GeolocationServiceContext associated with this delegate.
virtual GeolocationServiceContext* GetGeolocationServiceContext();
+ // Gets the WakeLockServiceContext associated with this delegate.
+ virtual WakeLockServiceContext* GetWakeLockServiceContext();
+
// Notification that the frame wants to go into fullscreen mode.
// |origin| represents the origin of the frame that requests fullscreen.
virtual void EnterFullscreenMode(const GURL& origin) {}
@@ -163,6 +175,10 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
// https://crbug.com/330264.
virtual void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) {}
+ // Creates a WebUI object for a frame navigating to |url|. If no WebUI
+ // applies, returns null.
+ virtual scoped_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(const GURL& url);
+
#if defined(OS_WIN)
// Returns the frame's parent's NativeViewAccessible.
virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();