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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
| 12 #include "base/process_util.h" |
12 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
13 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 14 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
14 #include "chrome/common/notification_observer.h" | 15 #include "chrome/common/notification_observer.h" |
15 #include "chrome/common/notification_registrar.h" | 16 #include "chrome/common/notification_registrar.h" |
16 #include "chrome/common/renderer_preferences.h" | 17 #include "chrome/common/renderer_preferences.h" |
17 #include "gfx/size.h" | 18 #include "gfx/size.h" |
18 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
19 | 20 |
20 class NavigationEntry; | 21 class NavigationEntry; |
21 class TabContents; | 22 class TabContents; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 118 |
118 protected: | 119 protected: |
119 // NotificationObserver method: | 120 // NotificationObserver method: |
120 virtual void Observe(NotificationType type, | 121 virtual void Observe(NotificationType type, |
121 const NotificationSource& source, | 122 const NotificationSource& source, |
122 const NotificationDetails& details); | 123 const NotificationDetails& details); |
123 | 124 |
124 // RenderViewHostDelegate implementation: | 125 // RenderViewHostDelegate implementation: |
125 virtual View* GetViewDelegate(); | 126 virtual View* GetViewDelegate(); |
126 virtual const GURL& GetURL() const; | 127 virtual const GURL& GetURL() const; |
127 virtual void RenderViewGone(RenderViewHost* render_view_host); | 128 virtual void RenderViewGone(RenderViewHost* render_view_host, |
| 129 base::TerminationStatus status, |
| 130 int error_code); |
128 virtual void DidNavigate(RenderViewHost* render_view_host, | 131 virtual void DidNavigate(RenderViewHost* render_view_host, |
129 const ViewHostMsg_FrameNavigate_Params& params); | 132 const ViewHostMsg_FrameNavigate_Params& params); |
130 virtual void UpdateTitle(RenderViewHost* render_view_host, | 133 virtual void UpdateTitle(RenderViewHost* render_view_host, |
131 int32 page_id, | 134 int32 page_id, |
132 const std::wstring& title); | 135 const std::wstring& title); |
133 virtual void DomOperationResponse(const std::string& json_string, | 136 virtual void DomOperationResponse(const std::string& json_string, |
134 int automation_id); | 137 int automation_id); |
135 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; | 138 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; |
136 | 139 |
137 // Invoked when the page sent a command through DOMAutomation. | 140 // Invoked when the page sent a command through DOMAutomation. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; | 238 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; |
236 static InterstitialPageMap* tab_to_interstitial_page_; | 239 static InterstitialPageMap* tab_to_interstitial_page_; |
237 | 240 |
238 // Settings passed to the renderer. | 241 // Settings passed to the renderer. |
239 RendererPreferences renderer_preferences_; | 242 RendererPreferences renderer_preferences_; |
240 | 243 |
241 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); | 244 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); |
242 }; | 245 }; |
243 | 246 |
244 #endif // CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 247 #endif // CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
OLD | NEW |