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

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

Issue 15682009: Eliminate SwapOut message parameters, keeping state in RVHM instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to get Android build fix 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // AttemptToClosePage. This is called before a cross-site request or before 83 // AttemptToClosePage. This is called before a cross-site request or before
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 // Called by ResourceDispatcherHost when a response for a pending cross-site 93 // The |pending_render_view_host| is ready to commit a page. The delegate
94 // request is received. The ResourceDispatcherHost will pause the response 94 // should ensure that the old RenderViewHost runs its unload handler first.
95 // until the onunload handler of the previous renderer is run. 95 virtual void OnCrossSiteResponse(
96 virtual void OnCrossSiteResponse(int new_render_process_host_id, 96 RenderViewHost* pending_render_view_host,
97 int new_request_id) = 0; 97 const GlobalRequestID& global_request_id) = 0;
98 98
99 protected: 99 protected:
100 virtual ~RendererManagement() {} 100 virtual ~RendererManagement() {}
101 }; 101 };
102 102
103 // --------------------------------------------------------------------------- 103 // ---------------------------------------------------------------------------
104 104
105 // Returns the current delegate associated with a feature. May return NULL if 105 // Returns the current delegate associated with a feature. May return NULL if
106 // there is no corresponding delegate. 106 // there is no corresponding delegate.
107 virtual RenderViewHostDelegateView* GetDelegateView(); 107 virtual RenderViewHostDelegateView* GetDelegateView();
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 const MediaStreamRequest& request, 414 const MediaStreamRequest& request,
415 const MediaResponseCallback& callback) {} 415 const MediaResponseCallback& callback) {}
416 416
417 protected: 417 protected:
418 virtual ~RenderViewHostDelegate() {} 418 virtual ~RenderViewHostDelegate() {}
419 }; 419 };
420 420
421 } // namespace content 421 } // namespace content
422 422
423 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 423 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/renderer_host/render_view_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698