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 <stdint.h> |
| 9 |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "build/build_config.h" |
11 #include "content/browser/frame_host/frame_tree.h" | 15 #include "content/browser/frame_host/frame_tree.h" |
12 #include "content/browser/frame_host/navigator_delegate.h" | 16 #include "content/browser/frame_host/navigator_delegate.h" |
13 #include "content/browser/frame_host/render_frame_host_delegate.h" | 17 #include "content/browser/frame_host/render_frame_host_delegate.h" |
14 #include "content/browser/renderer_host/render_view_host_delegate.h" | 18 #include "content/browser/renderer_host/render_view_host_delegate.h" |
15 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 19 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
16 #include "content/public/browser/interstitial_page.h" | 20 #include "content/public/browser/interstitial_page.h" |
17 #include "content/public/browser/notification_observer.h" | 21 #include "content/public/browser/notification_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 22 #include "content/public/browser/notification_registrar.h" |
19 #include "content/public/browser/web_contents_observer.h" | 23 #include "content/public/browser/web_contents_observer.h" |
20 #include "content/public/common/renderer_preferences.h" | 24 #include "content/public/common/renderer_preferences.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // NotificationObserver method: | 97 // NotificationObserver method: |
94 void Observe(int type, | 98 void Observe(int type, |
95 const NotificationSource& source, | 99 const NotificationSource& source, |
96 const NotificationDetails& details) override; | 100 const NotificationDetails& details) override; |
97 | 101 |
98 // RenderFrameHostDelegate implementation: | 102 // RenderFrameHostDelegate implementation: |
99 bool OnMessageReceived(RenderFrameHost* render_frame_host, | 103 bool OnMessageReceived(RenderFrameHost* render_frame_host, |
100 const IPC::Message& message) override; | 104 const IPC::Message& message) override; |
101 void RenderFrameCreated(RenderFrameHost* render_frame_host) override; | 105 void RenderFrameCreated(RenderFrameHost* render_frame_host) override; |
102 void UpdateTitle(RenderFrameHost* render_frame_host, | 106 void UpdateTitle(RenderFrameHost* render_frame_host, |
103 int32 page_id, | 107 int32_t page_id, |
104 const base::string16& title, | 108 const base::string16& title, |
105 base::i18n::TextDirection title_direction) override; | 109 base::i18n::TextDirection title_direction) override; |
106 AccessibilityMode GetAccessibilityMode() const override; | 110 AccessibilityMode GetAccessibilityMode() const override; |
107 void Cut() override; | 111 void Cut() override; |
108 void Copy() override; | 112 void Copy() override; |
109 void Paste() override; | 113 void Paste() override; |
110 void SelectAll() override; | 114 void SelectAll() override; |
111 | 115 |
112 // RenderViewHostDelegate implementation: | 116 // RenderViewHostDelegate implementation: |
113 RenderViewHostDelegateView* GetDelegateView() override; | 117 RenderViewHostDelegateView* GetDelegateView() override; |
114 bool OnMessageReceived(RenderViewHost* render_view_host, | 118 bool OnMessageReceived(RenderViewHost* render_view_host, |
115 const IPC::Message& message) override; | 119 const IPC::Message& message) override; |
116 const GURL& GetMainFrameLastCommittedURL() const override; | 120 const GURL& GetMainFrameLastCommittedURL() const override; |
117 void RenderViewTerminated(RenderViewHost* render_view_host, | 121 void RenderViewTerminated(RenderViewHost* render_view_host, |
118 base::TerminationStatus status, | 122 base::TerminationStatus status, |
119 int error_code) override; | 123 int error_code) override; |
120 RendererPreferences GetRendererPrefs( | 124 RendererPreferences GetRendererPrefs( |
121 BrowserContext* browser_context) const override; | 125 BrowserContext* browser_context) const override; |
122 void CreateNewWindow( | 126 void CreateNewWindow( |
123 SiteInstance* source_site_instance, | 127 SiteInstance* source_site_instance, |
124 int32_t route_id, | 128 int32_t route_id, |
125 int32_t main_frame_route_id, | 129 int32_t main_frame_route_id, |
126 int32_t main_frame_widget_route_id, | 130 int32_t main_frame_widget_route_id, |
127 const ViewHostMsg_CreateWindow_Params& params, | 131 const ViewHostMsg_CreateWindow_Params& params, |
128 SessionStorageNamespace* session_storage_namespace) override; | 132 SessionStorageNamespace* session_storage_namespace) override; |
129 void CreateNewWidget(int32 render_process_id, | 133 void CreateNewWidget(int32_t render_process_id, |
130 int32 route_id, | 134 int32_t route_id, |
131 blink::WebPopupType popup_type) override; | 135 blink::WebPopupType popup_type) override; |
132 void CreateNewFullscreenWidget(int32 render_process_id, | 136 void CreateNewFullscreenWidget(int32_t render_process_id, |
133 int32 route_id) override; | 137 int32_t route_id) override; |
134 void ShowCreatedWindow(int route_id, | 138 void ShowCreatedWindow(int route_id, |
135 WindowOpenDisposition disposition, | 139 WindowOpenDisposition disposition, |
136 const gfx::Rect& initial_rect, | 140 const gfx::Rect& initial_rect, |
137 bool user_gesture) override; | 141 bool user_gesture) override; |
138 void ShowCreatedWidget(int route_id, const gfx::Rect& initial_rect) override; | 142 void ShowCreatedWidget(int route_id, const gfx::Rect& initial_rect) override; |
139 void ShowCreatedFullscreenWidget(int route_id) override; | 143 void ShowCreatedFullscreenWidget(int route_id) override; |
140 | 144 |
141 SessionStorageNamespace* GetSessionStorageNamespace( | 145 SessionStorageNamespace* GetSessionStorageNamespace( |
142 SiteInstance* instance) override; | 146 SiteInstance* instance) override; |
143 | 147 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 294 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
291 | 295 |
292 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; | 296 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; |
293 | 297 |
294 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 298 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
295 }; | 299 }; |
296 | 300 |
297 } // namespace content | 301 } // namespace content |
298 | 302 |
299 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 303 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
OLD | NEW |