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

Side by Side Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 160249: Merge 21685 - Relanding r21673 without reenabling the BrowserTest, which appa... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 4 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
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Modified: svn:mergeinfo
Merged /trunk/src/chrome/browser/tab_contents/tab_contents.cc:r21685
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 #include "chrome/browser/tab_contents/tab_contents.h" 5 #include "chrome/browser/tab_contents/tab_contents.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/file_version_info.h" 9 #include "base/file_version_info.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 2178 matching lines...) Expand 10 before | Expand all | Expand 10 after
2189 PrefService* prefs = render_view_host()->process()->profile()->GetPrefs(); 2189 PrefService* prefs = render_view_host()->process()->profile()->GetPrefs();
2190 bool isDomUI = false; 2190 bool isDomUI = false;
2191 return RenderViewHostDelegateHelper::GetWebkitPrefs(prefs, isDomUI); 2191 return RenderViewHostDelegateHelper::GetWebkitPrefs(prefs, isDomUI);
2192 } 2192 }
2193 2193
2194 void TabContents::OnJSOutOfMemory() { 2194 void TabContents::OnJSOutOfMemory() {
2195 AddInfoBar(new SimpleAlertInfoBarDelegate( 2195 AddInfoBar(new SimpleAlertInfoBarDelegate(
2196 this, l10n_util::GetString(IDS_JS_OUT_OF_MEMORY_PROMPT), NULL)); 2196 this, l10n_util::GetString(IDS_JS_OUT_OF_MEMORY_PROMPT), NULL));
2197 } 2197 }
2198 2198
2199 void TabContents::ShouldClosePage(bool proceed) {
2200 render_manager_.ShouldClosePage(proceed);
2201 }
2202
2203 void TabContents::OnCrossSiteResponse(int new_render_process_host_id, 2199 void TabContents::OnCrossSiteResponse(int new_render_process_host_id,
2204 int new_request_id) { 2200 int new_request_id) {
2205 // Allows the TabContents to react when a cross-site response is ready to be 2201 // Allows the TabContents to react when a cross-site response is ready to be
2206 // delivered to a pending RenderViewHost. We must first run the onunload 2202 // delivered to a pending RenderViewHost. We must first run the onunload
2207 // handler of the old RenderViewHost before we can allow it to proceed. 2203 // handler of the old RenderViewHost before we can allow it to proceed.
2208 render_manager_.OnCrossSiteResponse(new_render_process_host_id, 2204 render_manager_.OnCrossSiteResponse(new_render_process_host_id,
2209 new_request_id); 2205 new_request_id);
2210 } 2206 }
2211 2207
2212 bool TabContents::CanBlur() const { 2208 bool TabContents::CanBlur() const {
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
2367 NavigationController::LoadCommittedDetails& committed_details = 2363 NavigationController::LoadCommittedDetails& committed_details =
2368 *(Details<NavigationController::LoadCommittedDetails>(details).ptr()); 2364 *(Details<NavigationController::LoadCommittedDetails>(details).ptr());
2369 ExpireInfoBars(committed_details); 2365 ExpireInfoBars(committed_details);
2370 break; 2366 break;
2371 } 2367 }
2372 2368
2373 default: 2369 default:
2374 NOTREACHED(); 2370 NOTREACHED();
2375 } 2371 }
2376 } 2372 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698