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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 6 #define EXTENSIONS_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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 ui::PageTransition transition_type) override; | 288 ui::PageTransition transition_type) override; |
289 void DidFailProvisionalLoad(content::RenderFrameHost* render_frame_host, | 289 void DidFailProvisionalLoad(content::RenderFrameHost* render_frame_host, |
290 const GURL& validated_url, | 290 const GURL& validated_url, |
291 int error_code, | 291 int error_code, |
292 const base::string16& error_description) override; | 292 const base::string16& error_description) override; |
293 void DidStartProvisionalLoadForFrame( | 293 void DidStartProvisionalLoadForFrame( |
294 content::RenderFrameHost* render_frame_host, | 294 content::RenderFrameHost* render_frame_host, |
295 const GURL& validated_url, | 295 const GURL& validated_url, |
296 bool is_error_page, | 296 bool is_error_page, |
297 bool is_iframe_srcdoc) override; | 297 bool is_iframe_srcdoc) override; |
298 void DocumentLoadedInFrame( | |
299 content::RenderFrameHost* render_frame_host) override; | |
300 void RenderProcessGone(base::TerminationStatus status) override; | 298 void RenderProcessGone(base::TerminationStatus status) override; |
301 void UserAgentOverrideSet(const std::string& user_agent) override; | 299 void UserAgentOverrideSet(const std::string& user_agent) override; |
302 void FrameNameChanged(content::RenderFrameHost* render_frame_host, | 300 void FrameNameChanged(content::RenderFrameHost* render_frame_host, |
303 const std::string& name) override; | 301 const std::string& name) override; |
304 | 302 |
305 // Informs the embedder of a frame name change. | 303 // Informs the embedder of a frame name change. |
306 void ReportFrameNameChange(const std::string& name); | 304 void ReportFrameNameChange(const std::string& name); |
307 | 305 |
308 // Called after the load handler is called in the guest's main frame. | 306 // Called after the load handler is called in the guest's main frame. |
309 void LoadHandlerCalled(); | 307 void LoadHandlerCalled(); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 // This is used to ensure pending tasks will not fire after this object is | 407 // This is used to ensure pending tasks will not fire after this object is |
410 // destroyed. | 408 // destroyed. |
411 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; | 409 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; |
412 | 410 |
413 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 411 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
414 }; | 412 }; |
415 | 413 |
416 } // namespace extensions | 414 } // namespace extensions |
417 | 415 |
418 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 416 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
OLD | NEW |