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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 virtual void UpdateInspectorSetting(const std::string& key, | 112 virtual void UpdateInspectorSetting(const std::string& key, |
113 const std::string& value); | 113 const std::string& value); |
114 virtual void ClearInspectorSettings(); | 114 virtual void ClearInspectorSettings(); |
115 | 115 |
116 protected: | 116 protected: |
117 // NotificationObserver method: | 117 // NotificationObserver method: |
118 virtual void Observe(NotificationType type, | 118 virtual void Observe(int type, |
119 const NotificationSource& source, | 119 const NotificationSource& source, |
120 const NotificationDetails& details); | 120 const NotificationDetails& details); |
121 | 121 |
122 // RenderViewHostDelegate implementation: | 122 // RenderViewHostDelegate implementation: |
123 virtual View* GetViewDelegate(); | 123 virtual View* GetViewDelegate(); |
124 virtual const GURL& GetURL() const; | 124 virtual const GURL& GetURL() const; |
125 virtual void RenderViewGone(RenderViewHost* render_view_host, | 125 virtual void RenderViewGone(RenderViewHost* render_view_host, |
126 base::TerminationStatus status, | 126 base::TerminationStatus status, |
127 int error_code); | 127 int error_code); |
128 virtual void DidNavigate(RenderViewHost* render_view_host, | 128 virtual void DidNavigate(RenderViewHost* render_view_host, |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; | 238 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; |
239 static InterstitialPageMap* tab_to_interstitial_page_; | 239 static InterstitialPageMap* tab_to_interstitial_page_; |
240 | 240 |
241 // Settings passed to the renderer. | 241 // Settings passed to the renderer. |
242 RendererPreferences renderer_preferences_; | 242 RendererPreferences renderer_preferences_; |
243 | 243 |
244 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); | 244 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); |
245 }; | 245 }; |
246 | 246 |
247 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 247 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
OLD | NEW |