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

Side by Side Diff: chrome/browser/tab_contents/render_view_host_manager.h

Issue 274057: Add histogram for how tab closing time. Did some cleanup along the way. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "chrome/browser/renderer_host/render_view_host.h" 10 #include "chrome/browser/renderer_host/render_view_host.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void DidNavigateMainFrame(RenderViewHost* render_view_host); 127 void DidNavigateMainFrame(RenderViewHost* render_view_host);
128 128
129 // Set the DOMUI after committing a page load. This is useful for navigations 129 // Set the DOMUI after committing a page load. This is useful for navigations
130 // initiated from a renderer, where we want to give the new renderer DOMUI 130 // initiated from a renderer, where we want to give the new renderer DOMUI
131 // privileges from the originating renderer. 131 // privileges from the originating renderer.
132 void SetDOMUIPostCommit(DOMUI* dom_ui); 132 void SetDOMUIPostCommit(DOMUI* dom_ui);
133 133
134 // Called when a provisional load on the given renderer is aborted. 134 // Called when a provisional load on the given renderer is aborted.
135 void RendererAbortedProvisionalLoad(RenderViewHost* render_view_host); 135 void RendererAbortedProvisionalLoad(RenderViewHost* render_view_host);
136 136
137 // Forwards the message to the RenderViewHost, which is the original one.
138 void OnJavaScriptMessageBoxClosed(IPC::Message* reply_msg,
139 bool success,
140 const std::wstring& prompt);
141
142 // Sets the passed passed interstitial as the currently showing interstitial. 137 // Sets the passed passed interstitial as the currently showing interstitial.
143 // |interstitial_page| should be non NULL (use the remove_interstitial_page 138 // |interstitial_page| should be non NULL (use the remove_interstitial_page
144 // method to unset the interstitial) and no interstitial page should be set 139 // method to unset the interstitial) and no interstitial page should be set
145 // when there is already a non NULL interstitial page set. 140 // when there is already a non NULL interstitial page set.
146 void set_interstitial_page(InterstitialPage* interstitial_page) { 141 void set_interstitial_page(InterstitialPage* interstitial_page) {
147 DCHECK(!interstitial_page_ && interstitial_page); 142 DCHECK(!interstitial_page_ && interstitial_page);
148 interstitial_page_ = interstitial_page; 143 interstitial_page_ = interstitial_page;
149 } 144 }
150 145
151 // Unsets the currently showing interstitial. 146 // Unsets the currently showing interstitial.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 }; 239 };
245 240
246 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old 241 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old
247 // host can be NULL when the first RenderViewHost is set. 242 // host can be NULL when the first RenderViewHost is set.
248 struct RenderViewHostSwitchedDetails { 243 struct RenderViewHostSwitchedDetails {
249 RenderViewHost* old_host; 244 RenderViewHost* old_host;
250 RenderViewHost* new_host; 245 RenderViewHost* new_host;
251 }; 246 };
252 247
253 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 248 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698