| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 } | 
| OLD | NEW | 
|---|