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

Side by Side Diff: content/browser/frame_host/render_frame_host_delegate.cc

Issue 2384813002: Don't wait to close tabs waiting for JavaScript dialogs. (Closed)
Patch Set: now a bit on webcontents, no timer fiddling Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/browser/frame_host/render_frame_host_delegate.h" 10 #include "content/browser/frame_host/render_frame_host_delegate.h"
11 #include "ipc/ipc_message.h" 11 #include "ipc/ipc_message.h"
12 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 bool RenderFrameHostDelegate::OnMessageReceived( 17 bool RenderFrameHostDelegate::OnMessageReceived(
18 RenderFrameHost* render_view_host, 18 RenderFrameHost* render_view_host,
19 const IPC::Message& message) { 19 const IPC::Message& message) {
20 return false; 20 return false;
21 } 21 }
22 22
23 const GURL& RenderFrameHostDelegate::GetMainFrameLastCommittedURL() const { 23 const GURL& RenderFrameHostDelegate::GetMainFrameLastCommittedURL() const {
24 return GURL::EmptyGURL(); 24 return GURL::EmptyGURL();
25 } 25 }
26 26
27 bool RenderFrameHostDelegate::IsJavaScriptDialogShowing() const {
28 return false;
29 }
30
27 bool RenderFrameHostDelegate::AddMessageToConsole( 31 bool RenderFrameHostDelegate::AddMessageToConsole(
28 int32_t level, 32 int32_t level,
29 const base::string16& message, 33 const base::string16& message,
30 int32_t line_no, 34 int32_t line_no,
31 const base::string16& source_id) { 35 const base::string16& source_id) {
32 return false; 36 return false;
33 } 37 }
34 38
35 WebContents* RenderFrameHostDelegate::GetAsWebContents() { 39 WebContents* RenderFrameHostDelegate::GetAsWebContents() {
36 return NULL; 40 return NULL;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 SiteInstance* source_site_instance) const { 85 SiteInstance* source_site_instance) const {
82 return false; 86 return false;
83 } 87 }
84 88
85 std::unique_ptr<WebUIImpl> 89 std::unique_ptr<WebUIImpl>
86 RenderFrameHostDelegate::CreateWebUIForRenderFrameHost(const GURL& url) { 90 RenderFrameHostDelegate::CreateWebUIForRenderFrameHost(const GURL& url) {
87 return nullptr; 91 return nullptr;
88 } 92 }
89 93
90 } // namespace content 94 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698