OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 WebKit::WebPopupType popup_type) OVERRIDE; | 122 WebKit::WebPopupType popup_type) OVERRIDE; |
123 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE; | 123 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE; |
124 virtual void ShowCreatedWindow(int route_id, | 124 virtual void ShowCreatedWindow(int route_id, |
125 WindowOpenDisposition disposition, | 125 WindowOpenDisposition disposition, |
126 const gfx::Rect& initial_pos, | 126 const gfx::Rect& initial_pos, |
127 bool user_gesture) OVERRIDE; | 127 bool user_gesture) OVERRIDE; |
128 virtual void ShowCreatedWidget(int route_id, | 128 virtual void ShowCreatedWidget(int route_id, |
129 const gfx::Rect& initial_pos) OVERRIDE; | 129 const gfx::Rect& initial_pos) OVERRIDE; |
130 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE; | 130 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE; |
131 | 131 |
| 132 virtual SessionStorageNamespace* GetSessionStorageNamespace( |
| 133 SiteInstance* instance) OVERRIDE; |
| 134 |
132 // RenderWidgetHostDelegate implementation: | 135 // RenderWidgetHostDelegate implementation: |
133 virtual void RenderWidgetDeleted( | 136 virtual void RenderWidgetDeleted( |
134 RenderWidgetHostImpl* render_widget_host) OVERRIDE; | 137 RenderWidgetHostImpl* render_widget_host) OVERRIDE; |
135 virtual bool PreHandleKeyboardEvent( | 138 virtual bool PreHandleKeyboardEvent( |
136 const NativeWebKeyboardEvent& event, | 139 const NativeWebKeyboardEvent& event, |
137 bool* is_keyboard_shortcut) OVERRIDE; | 140 bool* is_keyboard_shortcut) OVERRIDE; |
138 virtual void HandleKeyboardEvent( | 141 virtual void HandleKeyboardEvent( |
139 const NativeWebKeyboardEvent& event) OVERRIDE; | 142 const NativeWebKeyboardEvent& event) OVERRIDE; |
140 #if defined(OS_WIN) && defined(USE_AURA) | 143 #if defined(OS_WIN) && defined(USE_AURA) |
141 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() OVERRIDE; | 144 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() OVERRIDE; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 237 |
235 // Settings passed to the renderer. | 238 // Settings passed to the renderer. |
236 mutable RendererPreferences renderer_preferences_; | 239 mutable RendererPreferences renderer_preferences_; |
237 | 240 |
238 bool create_view_; | 241 bool create_view_; |
239 | 242 |
240 scoped_ptr<InterstitialPageDelegate> delegate_; | 243 scoped_ptr<InterstitialPageDelegate> delegate_; |
241 | 244 |
242 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; | 245 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; |
243 | 246 |
| 247 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
| 248 |
244 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 249 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
245 }; | 250 }; |
246 | 251 |
247 } // namespace content | 252 } // namespace content |
248 | 253 |
249 #endif // CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ | 254 #endif // CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ |
OLD | NEW |