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

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

Issue 217183004: Migrate addMessageToConsole API to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + fix the test_runner 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.cc
diff --git a/content/browser/frame_host/render_frame_host_delegate.cc b/content/browser/frame_host/render_frame_host_delegate.cc
index c5a88065c107d0b508c6c486f2ff6ae70547f772..8e424ead131c451338ddde6cee525f1ee3fc4b86 100644
--- a/content/browser/frame_host/render_frame_host_delegate.cc
+++ b/content/browser/frame_host/render_frame_host_delegate.cc
@@ -2,10 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/frame_host/render_frame_host_delegate.h"
-
#include <stddef.h>
+#include "base/strings/string16.h"
+#include "content/browser/frame_host/render_frame_host_delegate.h"
+#include "url/gurl.h"
+
namespace content {
bool RenderFrameHostDelegate::OnMessageReceived(
@@ -14,6 +16,16 @@ bool RenderFrameHostDelegate::OnMessageReceived(
return false;
}
+const GURL& RenderFrameHostDelegate::GetMainFrameLastCommittedURL() const {
+ return GURL::EmptyGURL();
+}
+
+bool RenderFrameHostDelegate::AddMessageToConsole(
+ int32 level, const base::string16& message, int32 line_no,
+ const base::string16& source_id) {
+ return false;
+}
+
WebContents* RenderFrameHostDelegate::GetAsWebContents() {
return NULL;
}
« no previous file with comments | « content/browser/frame_host/render_frame_host_delegate.h ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698