| OLD | NEW |
| 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/dom_ui/html_dialog_tab_contents_delegate.h" | 5 #include "chrome/browser/dom_ui/html_dialog_tab_contents_delegate.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profile.h" | 7 #include "chrome/browser/profile.h" |
| 8 #include "chrome/browser/tab_contents/tab_contents.h" | 8 #include "chrome/browser/tab_contents/tab_contents.h" |
| 9 #include "chrome/browser/tab_contents_wrapper.h" | |
| 10 #include "chrome/browser/tabs/tab_strip_model.h" | 9 #include "chrome/browser/tabs/tab_strip_model.h" |
| 11 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/browser/ui/browser_navigator.h" | 11 #include "chrome/browser/ui/browser_navigator.h" |
| 12 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 13 | 13 |
| 14 // Incognito profiles are not long-lived, so we always want to store a | 14 // Incognito profiles are not long-lived, so we always want to store a |
| 15 // non-incognito profile. | 15 // non-incognito profile. |
| 16 // | 16 // |
| 17 // TODO(akalin): Should we make it so that we have a default incognito | 17 // TODO(akalin): Should we make it so that we have a default incognito |
| 18 // profile that's long-lived? Of course, we'd still have to clear it out | 18 // profile that's long-lived? Of course, we'd still have to clear it out |
| 19 // when all incognito browsers close. | 19 // when all incognito browsers close. |
| 20 HtmlDialogTabContentsDelegate::HtmlDialogTabContentsDelegate(Profile* profile) | 20 HtmlDialogTabContentsDelegate::HtmlDialogTabContentsDelegate(Profile* profile) |
| 21 : profile_(profile->GetOriginalProfile()) {} | 21 : profile_(profile->GetOriginalProfile()) {} |
| 22 | 22 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void HtmlDialogTabContentsDelegate::UpdateTargetURL(TabContents* source, | 105 void HtmlDialogTabContentsDelegate::UpdateTargetURL(TabContents* source, |
| 106 const GURL& url) { | 106 const GURL& url) { |
| 107 // Ignored. | 107 // Ignored. |
| 108 } | 108 } |
| 109 | 109 |
| 110 bool HtmlDialogTabContentsDelegate::ShouldAddNavigationToHistory( | 110 bool HtmlDialogTabContentsDelegate::ShouldAddNavigationToHistory( |
| 111 const history::HistoryAddPageArgs& add_page_args, | 111 const history::HistoryAddPageArgs& add_page_args, |
| 112 NavigationType::Type navigation_type) { | 112 NavigationType::Type navigation_type) { |
| 113 return false; | 113 return false; |
| 114 } | 114 } |
| OLD | NEW |