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

Side by Side Diff: content/public/browser/web_contents_delegate.cc

Issue 232463007: Don't leave aborted URLs in the omnibox unless we're on a new tab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix and add tests. Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/public/browser/web_contents_delegate.h" 5 #include "content/public/browser/web_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
(...skipping 19 matching lines...) Expand all
30 bool WebContentsDelegate::CanOverscrollContent() const { return false; } 30 bool WebContentsDelegate::CanOverscrollContent() const { return false; }
31 31
32 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const { 32 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const {
33 return gfx::Rect(); 33 return gfx::Rect();
34 } 34 }
35 35
36 bool WebContentsDelegate::ShouldSuppressDialogs() { 36 bool WebContentsDelegate::ShouldSuppressDialogs() {
37 return false; 37 return false;
38 } 38 }
39 39
40 bool WebContentsDelegate::ShouldPreserveAbortedURLs(WebContents* source) {
41 return false;
42 }
43
40 bool WebContentsDelegate::AddMessageToConsole(WebContents* source, 44 bool WebContentsDelegate::AddMessageToConsole(WebContents* source,
41 int32 level, 45 int32 level,
42 const base::string16& message, 46 const base::string16& message,
43 int32 line_no, 47 int32 line_no,
44 const base::string16& source_id) { 48 const base::string16& source_id) {
45 return false; 49 return false;
46 } 50 }
47 51
48 void WebContentsDelegate::BeforeUnloadFired(WebContents* web_contents, 52 void WebContentsDelegate::BeforeUnloadFired(WebContents* web_contents,
49 bool proceed, 53 bool proceed,
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); 194 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end());
191 attached_contents_.erase(web_contents); 195 attached_contents_.erase(web_contents);
192 } 196 }
193 197
194 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( 198 gfx::Size WebContentsDelegate::GetSizeForNewRenderView(
195 const WebContents* web_contents) const { 199 const WebContents* web_contents) const {
196 return gfx::Size(); 200 return gfx::Size();
197 } 201 }
198 202
199 } // namespace content 203 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698