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

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

Issue 5610005: Makes instant run before unload listeners. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: Fix comments and reset session id appropriately Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_delegate.h" 5 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
6 6
7 #include "chrome/browser/search_engines/template_url.h" 7 #include "chrome/browser/search_engines/template_url.h"
8 #include "gfx/rect.h" 8 #include "gfx/rect.h"
9 9
10 std::string TabContentsDelegate::GetNavigationHeaders(const GURL& url) { 10 std::string TabContentsDelegate::GetNavigationHeaders(const GURL& url) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void TabContentsDelegate::ConvertContentsToApplication(TabContents* source) { } 42 void TabContentsDelegate::ConvertContentsToApplication(TabContents* source) { }
43 43
44 bool TabContentsDelegate::CanReloadContents(TabContents* source) const { 44 bool TabContentsDelegate::CanReloadContents(TabContents* source) const {
45 return true; 45 return true;
46 } 46 }
47 47
48 void TabContentsDelegate::ShowHtmlDialog(HtmlDialogUIDelegate* delegate, 48 void TabContentsDelegate::ShowHtmlDialog(HtmlDialogUIDelegate* delegate,
49 gfx::NativeWindow parent_window) { 49 gfx::NativeWindow parent_window) {
50 } 50 }
51 51
52 void TabContentsDelegate::WillRunBeforeUnloadConfirm() {
53 }
54
52 bool TabContentsDelegate::ShouldSuppressDialogs() { 55 bool TabContentsDelegate::ShouldSuppressDialogs() {
53 return false; 56 return false;
54 } 57 }
55 58
56 void TabContentsDelegate::BeforeUnloadFired(TabContents* tab, 59 void TabContentsDelegate::BeforeUnloadFired(TabContents* tab,
57 bool proceed, 60 bool proceed,
58 bool* proceed_to_fire_unload) { 61 bool* proceed_to_fire_unload) {
59 *proceed_to_fire_unload = true; 62 *proceed_to_fire_unload = true;
60 } 63 }
61 64
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 204
202 void TabContentsDelegate::OnInstantSupportDetermined(int32 page_id, 205 void TabContentsDelegate::OnInstantSupportDetermined(int32 page_id,
203 bool result) { 206 bool result) {
204 } 207 }
205 208
206 void TabContentsDelegate::ContentRestrictionsChanged(TabContents* source) { 209 void TabContentsDelegate::ContentRestrictionsChanged(TabContents* source) {
207 } 210 }
208 211
209 TabContentsDelegate::~TabContentsDelegate() { 212 TabContentsDelegate::~TabContentsDelegate() {
210 } 213 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_delegate.h ('k') | chrome/browser/tabs/tab_strip_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698