OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 const content::OpenURLParams& params) OVERRIDE; | 122 const content::OpenURLParams& params) OVERRIDE; |
123 virtual void WebContentsCreated(content::WebContents* source_contents, | 123 virtual void WebContentsCreated(content::WebContents* source_contents, |
124 int opener_render_frame_id, | 124 int opener_render_frame_id, |
125 const base::string16& frame_name, | 125 const base::string16& frame_name, |
126 const GURL& target_url, | 126 const GURL& target_url, |
127 content::WebContents* new_contents) OVERRIDE; | 127 content::WebContents* new_contents) OVERRIDE; |
128 | 128 |
129 // GuestDelegate implementation. | 129 // GuestDelegate implementation. |
130 virtual void DidAttach() OVERRIDE; | 130 virtual void DidAttach() OVERRIDE; |
131 virtual void EmbedderDestroyed() OVERRIDE; | 131 virtual void EmbedderDestroyed() OVERRIDE; |
132 virtual void GuestProcessGone(base::TerminationStatus status) OVERRIDE; | |
133 virtual bool IsDragAndDropEnabled() OVERRIDE; | 132 virtual bool IsDragAndDropEnabled() OVERRIDE; |
134 virtual void SizeChanged(const gfx::Size& old_size, const gfx::Size& new_size) | 133 virtual void SizeChanged(const gfx::Size& old_size, const gfx::Size& new_size) |
135 OVERRIDE; | 134 OVERRIDE; |
136 virtual void RequestPointerLockPermission( | 135 virtual void RequestPointerLockPermission( |
137 bool user_gesture, | 136 bool user_gesture, |
138 bool last_unlocked_by_target, | 137 bool last_unlocked_by_target, |
139 const base::Callback<void(bool)>& callback) OVERRIDE; | 138 const base::Callback<void(bool)>& callback) OVERRIDE; |
140 virtual void NavigateGuest(const std::string& src) OVERRIDE; | 139 virtual void NavigateGuest(const std::string& src) OVERRIDE; |
141 virtual void Destroy() OVERRIDE; | 140 virtual void Destroy() OVERRIDE; |
142 | 141 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 bool is_iframe_srcdoc, | 297 bool is_iframe_srcdoc, |
299 content::RenderViewHost* render_view_host) OVERRIDE; | 298 content::RenderViewHost* render_view_host) OVERRIDE; |
300 virtual void DocumentLoadedInFrame( | 299 virtual void DocumentLoadedInFrame( |
301 int64 frame_id, | 300 int64 frame_id, |
302 content::RenderViewHost* render_view_host) OVERRIDE; | 301 content::RenderViewHost* render_view_host) OVERRIDE; |
303 virtual void DidStopLoading( | 302 virtual void DidStopLoading( |
304 content::RenderViewHost* render_view_host) OVERRIDE; | 303 content::RenderViewHost* render_view_host) OVERRIDE; |
305 virtual bool OnMessageReceived( | 304 virtual bool OnMessageReceived( |
306 const IPC::Message& message, | 305 const IPC::Message& message, |
307 content::RenderFrameHost* render_frame_host) OVERRIDE; | 306 content::RenderFrameHost* render_frame_host) OVERRIDE; |
| 307 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
308 virtual void WebContentsDestroyed() OVERRIDE; | 308 virtual void WebContentsDestroyed() OVERRIDE; |
309 virtual void UserAgentOverrideSet(const std::string& user_agent) OVERRIDE; | 309 virtual void UserAgentOverrideSet(const std::string& user_agent) OVERRIDE; |
310 virtual void RenderViewReady() OVERRIDE; | 310 virtual void RenderViewReady() OVERRIDE; |
311 | 311 |
312 // Informs the embedder of a frame name change. | 312 // Informs the embedder of a frame name change. |
313 void ReportFrameNameChange(const std::string& name); | 313 void ReportFrameNameChange(const std::string& name); |
314 | 314 |
315 // Called after the load handler is called in the guest's main frame. | 315 // Called after the load handler is called in the guest's main frame. |
316 void LoadHandlerCalled(); | 316 void LoadHandlerCalled(); |
317 | 317 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 name(name) {} | 435 name(name) {} |
436 }; | 436 }; |
437 | 437 |
438 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; | 438 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; |
439 PendingWindowMap pending_new_windows_; | 439 PendingWindowMap pending_new_windows_; |
440 | 440 |
441 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 441 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
442 }; | 442 }; |
443 | 443 |
444 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 444 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
OLD | NEW |