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

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

Issue 1519943002: Shortcut cross-process frame transfers to avoid pending NavigationEntries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up Created 5 years 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 (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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 load_url_params.load_type = 44 load_url_params.load_type =
45 NavigationController::LOAD_TYPE_BROWSER_INITIATED_HTTP_POST; 45 NavigationController::LOAD_TYPE_BROWSER_INITIATED_HTTP_POST;
46 load_url_params.browser_initiated_post_data = 46 load_url_params.browser_initiated_post_data =
47 params.browser_initiated_post_data; 47 params.browser_initiated_post_data;
48 } 48 }
49 49
50 source->GetController().LoadURLWithParams(load_url_params); 50 source->GetController().LoadURLWithParams(load_url_params);
51 return source; 51 return source;
52 } 52 }
53 53
54 bool WebContentsDelegate::ShouldTransferNavigation() {
55 return true;
56 }
57
54 bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const { 58 bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const {
55 return false; 59 return false;
56 } 60 }
57 61
58 bool WebContentsDelegate::CanOverscrollContent() const { return false; } 62 bool WebContentsDelegate::CanOverscrollContent() const { return false; }
59 63
60 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const { 64 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const {
61 return gfx::Rect(); 65 return gfx::Rect();
62 } 66 }
63 67
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 SecurityStyleExplanations* security_style_explanations) { 278 SecurityStyleExplanations* security_style_explanations) {
275 return content::SECURITY_STYLE_UNKNOWN; 279 return content::SECURITY_STYLE_UNKNOWN;
276 } 280 }
277 281
278 void WebContentsDelegate::ShowCertificateViewerInDevTools( 282 void WebContentsDelegate::ShowCertificateViewerInDevTools(
279 WebContents* web_contents, 283 WebContents* web_contents,
280 int cert_id) { 284 int cert_id) {
281 } 285 }
282 286
283 } // namespace content 287 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698