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

Side by Side Diff: chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc

Issue 5104002: Cleanup: Include browser.h -> ui/browser.h [Part 4]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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) 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/history_ui.cc ('k') | chrome/browser/dom_ui/html_dialog_tab_contents_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698