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

Unified Diff: content/browser/frame_host/render_frame_host_delegate.h

Issue 217183004: Migrate addMessageToConsole API to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_delegate.h
diff --git a/content/browser/frame_host/render_frame_host_delegate.h b/content/browser/frame_host/render_frame_host_delegate.h
index b6ebfa9fd35c34a5df1222edbf529c7d87133ea8..e81358ba3e697bab6c6571f795069d4daceb21ae 100644
--- a/content/browser/frame_host/render_frame_host_delegate.h
+++ b/content/browser/frame_host/render_frame_host_delegate.h
@@ -5,8 +5,11 @@
#ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
#define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
+#include "base/basictypes.h"
#include "content/common/content_export.h"
+class GURL;
+
namespace IPC {
class Message;
}
@@ -24,6 +27,15 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
virtual bool OnMessageReceived(RenderFrameHost* render_frame_host,
const IPC::Message& message);
+ // Gets the URL that is currently being displayed, if there is one.
+ virtual const GURL& GetURL() const;
nasko 2014/03/28 23:05:05 The name of this method should be adjusted to matc
mkosiba (inactive) 2014/03/31 09:48:41 Done.
+
+ // A message was added to to the console.
+ virtual bool AddMessageToConsole(int32 level,
+ const base::string16& message,
+ int32 line_no,
+ const base::string16& source_id);
+
// Informs the delegate whenever a RenderFrameHost is created.
virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {}
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_delegate.cc » ('j') | content/common/frame_messages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698