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_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 virtual View* GetViewDelegate(); | 100 virtual View* GetViewDelegate(); |
101 virtual const GURL& GetURL() const; | 101 virtual const GURL& GetURL() const; |
102 virtual void RenderViewGone(RenderViewHost* render_view_host); | 102 virtual void RenderViewGone(RenderViewHost* render_view_host); |
103 virtual void DidNavigate(RenderViewHost* render_view_host, | 103 virtual void DidNavigate(RenderViewHost* render_view_host, |
104 const ViewHostMsg_FrameNavigate_Params& params); | 104 const ViewHostMsg_FrameNavigate_Params& params); |
105 virtual void UpdateTitle(RenderViewHost* render_view_host, | 105 virtual void UpdateTitle(RenderViewHost* render_view_host, |
106 int32 page_id, | 106 int32 page_id, |
107 const std::wstring& title); | 107 const std::wstring& title); |
108 virtual void DomOperationResponse(const std::string& json_string, | 108 virtual void DomOperationResponse(const std::string& json_string, |
109 int automation_id); | 109 int automation_id); |
110 virtual RendererPreferences GetRendererPrefs() const { | 110 virtual RendererPreferences GetRendererPrefs(Profile* profile) const { |
111 return renderer_preferences_; | 111 return renderer_preferences_; |
112 } | 112 } |
113 | 113 |
114 // Invoked when the page sent a command through DOMAutomation. | 114 // Invoked when the page sent a command through DOMAutomation. |
115 virtual void CommandReceived(const std::string& command) {} | 115 virtual void CommandReceived(const std::string& command) {} |
116 | 116 |
117 // Invoked with the NavigationEntry that is going to be added to the | 117 // Invoked with the NavigationEntry that is going to be added to the |
118 // navigation controller. | 118 // navigation controller. |
119 // Gives an opportunity to sub-classes to set states on the |entry|. | 119 // Gives an opportunity to sub-classes to set states on the |entry|. |
120 // Note that this is only called if the InterstitialPage was constructed with | 120 // Note that this is only called if the InterstitialPage was constructed with |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; | 206 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; |
207 static InterstitialPageMap* tab_to_interstitial_page_; | 207 static InterstitialPageMap* tab_to_interstitial_page_; |
208 | 208 |
209 // Settings passed to the renderer. | 209 // Settings passed to the renderer. |
210 RendererPreferences renderer_preferences_; | 210 RendererPreferences renderer_preferences_; |
211 | 211 |
212 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); | 212 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); |
213 }; | 213 }; |
214 | 214 |
215 #endif // CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 215 #endif // CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
OLD | NEW |