OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_DOM_UI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_WEBUI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ |
6 #define CHROME_BROWSER_DOM_UI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ | 6 #define CHROME_BROWSER_WEBUI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 9 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
10 | 10 |
11 class Browser; | 11 class Browser; |
12 class Profile; | 12 class Profile; |
13 | 13 |
14 // This class implements (and mostly ignores) most of TabContentsDelegate for | 14 // This class implements (and mostly ignores) most of TabContentsDelegate for |
15 // use in an HTML dialog. Subclasses need only override a few methods instead | 15 // use in an HTML dialog. Subclasses need only override a few methods instead |
16 // of the everything from TabContentsDelegate; this way, implementations on | 16 // of the everything from TabContentsDelegate; this way, implementations on |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 virtual bool IsPopup(const TabContents* source) const; | 54 virtual bool IsPopup(const TabContents* source) const; |
55 virtual void UpdateTargetURL(TabContents* source, const GURL& url); | 55 virtual void UpdateTargetURL(TabContents* source, const GURL& url); |
56 virtual bool ShouldAddNavigationToHistory( | 56 virtual bool ShouldAddNavigationToHistory( |
57 const history::HistoryAddPageArgs& add_page_args, | 57 const history::HistoryAddPageArgs& add_page_args, |
58 NavigationType::Type navigation_type); | 58 NavigationType::Type navigation_type); |
59 | 59 |
60 private: | 60 private: |
61 Profile* profile_; // Weak pointer. Always an original profile. | 61 Profile* profile_; // Weak pointer. Always an original profile. |
62 }; | 62 }; |
63 | 63 |
64 #endif // CHROME_BROWSER_DOM_UI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ | 64 #endif // CHROME_BROWSER_WEBUI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ |
OLD | NEW |