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