| 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 CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // See description above field. | 106 // See description above field. |
| 107 void set_reload_on_dont_proceed(bool value) { | 107 void set_reload_on_dont_proceed(bool value) { |
| 108 reload_on_dont_proceed_ = value; | 108 reload_on_dont_proceed_ = value; |
| 109 } | 109 } |
| 110 bool reload_on_dont_proceed() const { return reload_on_dont_proceed_; } | 110 bool reload_on_dont_proceed() const { return reload_on_dont_proceed_; } |
| 111 | 111 |
| 112 protected: | 112 protected: |
| 113 // NotificationObserver method: | 113 // NotificationObserver method: |
| 114 virtual void Observe(int type, | 114 virtual void Observe(int type, |
| 115 const NotificationSource& source, | 115 const NotificationSource& source, |
| 116 const NotificationDetails& details); | 116 const NotificationDetails& details) OVERRIDE; |
| 117 | 117 |
| 118 // RenderViewHostDelegate implementation: | 118 // RenderViewHostDelegate implementation: |
| 119 virtual View* GetViewDelegate(); | 119 virtual View* GetViewDelegate() OVERRIDE; |
| 120 virtual const GURL& GetURL() const; | 120 virtual const GURL& GetURL() const OVERRIDE; |
| 121 virtual void RenderViewGone(RenderViewHost* render_view_host, | 121 virtual void RenderViewGone(RenderViewHost* render_view_host, |
| 122 base::TerminationStatus status, | 122 base::TerminationStatus status, |
| 123 int error_code); | 123 int error_code) OVERRIDE; |
| 124 virtual void DidNavigate(RenderViewHost* render_view_host, | 124 virtual void DidNavigate( |
| 125 const ViewHostMsg_FrameNavigate_Params& params); | 125 RenderViewHost* render_view_host, |
| 126 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; |
| 126 virtual void UpdateTitle(RenderViewHost* render_view_host, | 127 virtual void UpdateTitle(RenderViewHost* render_view_host, |
| 127 int32 page_id, | 128 int32 page_id, |
| 128 const std::wstring& title); | 129 const std::wstring& title) OVERRIDE; |
| 129 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; | 130 virtual RendererPreferences GetRendererPrefs( |
| 131 content::BrowserContext* context) const OVERRIDE; |
| 130 | 132 |
| 131 // Invoked with the NavigationEntry that is going to be added to the | 133 // Invoked with the NavigationEntry that is going to be added to the |
| 132 // navigation controller. | 134 // navigation controller. |
| 133 // Gives an opportunity to sub-classes to set states on the |entry|. | 135 // Gives an opportunity to sub-classes to set states on the |entry|. |
| 134 // Note that this is only called if the InterstitialPage was constructed with | 136 // Note that this is only called if the InterstitialPage was constructed with |
| 135 // |create_navigation_entry| set to true. | 137 // |create_navigation_entry| set to true. |
| 136 virtual void UpdateEntry(NavigationEntry* entry) {} | 138 virtual void UpdateEntry(NavigationEntry* entry) {} |
| 137 | 139 |
| 138 bool enabled() const { return enabled_; } | 140 bool enabled() const { return enabled_; } |
| 139 TabContents* tab() const { return tab_; } | 141 TabContents* tab() const { return tab_; } |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; | 236 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; |
| 235 static InterstitialPageMap* tab_to_interstitial_page_; | 237 static InterstitialPageMap* tab_to_interstitial_page_; |
| 236 | 238 |
| 237 // Settings passed to the renderer. | 239 // Settings passed to the renderer. |
| 238 RendererPreferences renderer_preferences_; | 240 RendererPreferences renderer_preferences_; |
| 239 | 241 |
| 240 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); | 242 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); |
| 241 }; | 243 }; |
| 242 | 244 |
| 243 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 245 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
| OLD | NEW |