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

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: Clean up Created 7 years, 6 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // a tab/window is closed (as indicated by the first parameter) to allow the 84 // a tab/window is closed (as indicated by the first parameter) to allow the
85 // appropriate renderer to approve or deny the request. |proceed| indicates 85 // appropriate renderer to approve or deny the request. |proceed| indicates
86 // whether the user chose to proceed. |proceed_time| is the time when the 86 // whether the user chose to proceed. |proceed_time| is the time when the
87 // request was allowed to proceed. 87 // request was allowed to proceed.
88 virtual void ShouldClosePage( 88 virtual void ShouldClosePage(
89 bool for_cross_site_transition, 89 bool for_cross_site_transition,
90 bool proceed, 90 bool proceed,
91 const base::TimeTicks& proceed_time) = 0; 91 const base::TimeTicks& proceed_time) = 0;
92 92
93 // The |pending_render_view_host| is ready to commit a page. The delegate 93 // The |pending_render_view_host| is ready to commit a page. The delegate
94 // should ensure that the old RenderViewHost runs its unload handler first. 94 // should ensure that the old RenderViewHost runs its unload handler first
95 // and determine whether a RenderViewHost transfer is needed.
95 virtual void OnCrossSiteResponse( 96 virtual void OnCrossSiteResponse(
96 RenderViewHost* pending_render_view_host, 97 RenderViewHost* pending_render_view_host,
98 const GURL& pending_url,
99 const Referrer& referrer,
100 int64 frame_id,
97 const GlobalRequestID& global_request_id) = 0; 101 const GlobalRequestID& global_request_id) = 0;
98 102
99 protected: 103 protected:
100 virtual ~RendererManagement() {} 104 virtual ~RendererManagement() {}
101 }; 105 };
102 106
103 // --------------------------------------------------------------------------- 107 // ---------------------------------------------------------------------------
104 108
105 // Returns the current delegate associated with a feature. May return NULL if 109 // Returns the current delegate associated with a feature. May return NULL if
106 // there is no corresponding delegate. 110 // there is no corresponding delegate.
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 const MediaStreamRequest& request, 418 const MediaStreamRequest& request,
415 const MediaResponseCallback& callback) {} 419 const MediaResponseCallback& callback) {}
416 420
417 protected: 421 protected:
418 virtual ~RenderViewHostDelegate() {} 422 virtual ~RenderViewHostDelegate() {}
419 }; 423 };
420 424
421 } // namespace content 425 } // namespace content
422 426
423 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 427 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698