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

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 15476003: Move TransferNavigationResourceThrottle into CrossSiteResourceHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove null check on cross_site_handler(). Created 7 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 | 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // a tab/window is closed (as indicated by the first parameter) to allow the 86 // a tab/window is closed (as indicated by the first parameter) to allow the
87 // appropriate renderer to approve or deny the request. |proceed| indicates 87 // appropriate renderer to approve or deny the request. |proceed| indicates
88 // whether the user chose to proceed. |proceed_time| is the time when the 88 // whether the user chose to proceed. |proceed_time| is the time when the
89 // request was allowed to proceed. 89 // request was allowed to proceed.
90 virtual void ShouldClosePage( 90 virtual void ShouldClosePage(
91 bool for_cross_site_transition, 91 bool for_cross_site_transition,
92 bool proceed, 92 bool proceed,
93 const base::TimeTicks& proceed_time) = 0; 93 const base::TimeTicks& proceed_time) = 0;
94 94
95 // The |pending_render_view_host| is ready to commit a page. The delegate 95 // The |pending_render_view_host| is ready to commit a page. The delegate
96 // should ensure that the old RenderViewHost runs its unload handler first. 96 // should ensure that the old RenderViewHost runs its unload handler first
97 // and determine whether a RenderViewHost transfer is needed.
97 virtual void OnCrossSiteResponse( 98 virtual void OnCrossSiteResponse(
98 RenderViewHost* pending_render_view_host, 99 RenderViewHost* pending_render_view_host,
99 const GlobalRequestID& global_request_id) = 0; 100 const GlobalRequestID& global_request_id,
101 bool is_transfer,
102 const GURL& transfer_url,
103 const Referrer& referrer,
104 int64 frame_id) = 0;
100 105
101 protected: 106 protected:
102 virtual ~RendererManagement() {} 107 virtual ~RendererManagement() {}
103 }; 108 };
104 109
105 // --------------------------------------------------------------------------- 110 // ---------------------------------------------------------------------------
106 111
107 // Returns the current delegate associated with a feature. May return NULL if 112 // Returns the current delegate associated with a feature. May return NULL if
108 // there is no corresponding delegate. 113 // there is no corresponding delegate.
109 virtual RenderViewHostDelegateView* GetDelegateView(); 114 virtual RenderViewHostDelegateView* GetDelegateView();
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 virtual SessionStorageNamespace* GetSessionStorageNamespace( 436 virtual SessionStorageNamespace* GetSessionStorageNamespace(
432 SiteInstance* instance); 437 SiteInstance* instance);
433 438
434 protected: 439 protected:
435 virtual ~RenderViewHostDelegate() {} 440 virtual ~RenderViewHostDelegate() {}
436 }; 441 };
437 442
438 } // namespace content 443 } // namespace content
439 444
440 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 445 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698