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 #ifndef CHROME_BROWSER_DOM_UI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ |
6 #define CHROME_BROWSER_DOM_UI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ | 6 #define CHROME_BROWSER_DOM_UI_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 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual void DeactivateContents(TabContents* contents); | 51 virtual void DeactivateContents(TabContents* contents); |
52 virtual void LoadingStateChanged(TabContents* source); | 52 virtual void LoadingStateChanged(TabContents* source); |
53 virtual void CloseContents(TabContents* source); | 53 virtual void CloseContents(TabContents* source); |
54 virtual bool IsPopup(const TabContents* source) const; | 54 virtual bool IsPopup(const TabContents* source) const; |
55 virtual void URLStarredChanged(TabContents* source, bool starred); | 55 virtual void URLStarredChanged(TabContents* source, bool starred); |
56 virtual void UpdateTargetURL(TabContents* source, const GURL& url); | 56 virtual void UpdateTargetURL(TabContents* source, const GURL& url); |
57 virtual bool ShouldAddNavigationToHistory( | 57 virtual bool ShouldAddNavigationToHistory( |
58 const history::HistoryAddPageArgs& add_page_args, | 58 const history::HistoryAddPageArgs& add_page_args, |
59 NavigationType::Type navigation_type); | 59 NavigationType::Type navigation_type); |
60 | 60 |
61 protected: | |
62 // Overridden only for testing. | |
63 virtual Browser* CreateBrowser(); | |
64 | |
65 private: | 61 private: |
66 Profile* profile_; // Weak pointer. Always an original profile. | 62 Profile* profile_; // Weak pointer. Always an original profile. |
67 }; | 63 }; |
68 | 64 |
69 #endif // CHROME_BROWSER_DOM_UI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ | 65 #endif // CHROME_BROWSER_DOM_UI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ |
70 | |
OLD | NEW |