| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 SiteInstance* instance) override; | 138 SiteInstance* instance) override; |
| 139 | 139 |
| 140 FrameTree* GetFrameTree() override; | 140 FrameTree* GetFrameTree() override; |
| 141 | 141 |
| 142 // RenderWidgetHostDelegate implementation: | 142 // RenderWidgetHostDelegate implementation: |
| 143 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; | 143 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; |
| 144 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 144 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 145 bool* is_keyboard_shortcut) override; | 145 bool* is_keyboard_shortcut) override; |
| 146 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; | 146 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; |
| 147 #if defined(OS_WIN) | 147 #if defined(OS_WIN) |
| 148 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() override; | 148 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; |
| 149 #endif | 149 #endif |
| 150 | 150 |
| 151 bool enabled() const { return enabled_; } | 151 bool enabled() const { return enabled_; } |
| 152 WebContents* web_contents() const; | 152 WebContents* web_contents() const; |
| 153 const GURL& url() const { return url_; } | 153 const GURL& url() const { return url_; } |
| 154 | 154 |
| 155 // Creates the WebContentsView that shows the interstitial RVH. | 155 // Creates the WebContentsView that shows the interstitial RVH. |
| 156 // Overriden in unit tests. | 156 // Overriden in unit tests. |
| 157 virtual WebContentsView* CreateWebContentsView(); | 157 virtual WebContentsView* CreateWebContentsView(); |
| 158 | 158 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 287 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
| 288 | 288 |
| 289 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; | 289 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; |
| 290 | 290 |
| 291 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 291 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
| 292 }; | 292 }; |
| 293 | 293 |
| 294 } // namespace content | 294 } // namespace content |
| 295 | 295 |
| 296 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 296 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
| OLD | NEW |