| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 content::RenderFrameHost* render_frame_host, | 352 content::RenderFrameHost* render_frame_host, |
| 353 const GURL& validated_url, | 353 const GURL& validated_url, |
| 354 int error_code, | 354 int error_code, |
| 355 const base::string16& error_description) OVERRIDE; | 355 const base::string16& error_description) OVERRIDE; |
| 356 virtual void DidStartProvisionalLoadForFrame( | 356 virtual void DidStartProvisionalLoadForFrame( |
| 357 content::RenderFrameHost* render_frame_host, | 357 content::RenderFrameHost* render_frame_host, |
| 358 const GURL& validated_url, | 358 const GURL& validated_url, |
| 359 bool is_error_page, | 359 bool is_error_page, |
| 360 bool is_iframe_srcdoc) OVERRIDE; | 360 bool is_iframe_srcdoc) OVERRIDE; |
| 361 virtual void DocumentLoadedInFrame( | 361 virtual void DocumentLoadedInFrame( |
| 362 int64 frame_id, | 362 content::RenderFrameHost* render_frame_host) OVERRIDE; |
| 363 content::RenderViewHost* render_view_host) OVERRIDE; | |
| 364 virtual bool OnMessageReceived( | 363 virtual bool OnMessageReceived( |
| 365 const IPC::Message& message, | 364 const IPC::Message& message, |
| 366 content::RenderFrameHost* render_frame_host) OVERRIDE; | 365 content::RenderFrameHost* render_frame_host) OVERRIDE; |
| 367 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; | 366 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
| 368 virtual void UserAgentOverrideSet(const std::string& user_agent) OVERRIDE; | 367 virtual void UserAgentOverrideSet(const std::string& user_agent) OVERRIDE; |
| 369 virtual void RenderViewReady() OVERRIDE; | 368 virtual void RenderViewReady() OVERRIDE; |
| 370 | 369 |
| 371 // Informs the embedder of a frame name change. | 370 // Informs the embedder of a frame name change. |
| 372 void ReportFrameNameChange(const std::string& name); | 371 void ReportFrameNameChange(const std::string& name); |
| 373 | 372 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 // A counter to generate a unique request id for a permission request. | 442 // A counter to generate a unique request id for a permission request. |
| 444 // We only need the ids to be unique for a given WebViewGuest. | 443 // We only need the ids to be unique for a given WebViewGuest. |
| 445 int next_permission_request_id_; | 444 int next_permission_request_id_; |
| 446 | 445 |
| 447 typedef std::map<int, PermissionResponseInfo> RequestMap; | 446 typedef std::map<int, PermissionResponseInfo> RequestMap; |
| 448 RequestMap pending_permission_requests_; | 447 RequestMap pending_permission_requests_; |
| 449 | 448 |
| 450 // True if the user agent is overridden. | 449 // True if the user agent is overridden. |
| 451 bool is_overriding_user_agent_; | 450 bool is_overriding_user_agent_; |
| 452 | 451 |
| 453 // Main frame ID of last committed page. | |
| 454 int64 main_frame_id_; | |
| 455 | |
| 456 // Set to |true| if ChromeVox was already injected in main frame. | 452 // Set to |true| if ChromeVox was already injected in main frame. |
| 457 bool chromevox_injected_; | 453 bool chromevox_injected_; |
| 458 | 454 |
| 459 // Stores the current zoom factor. | 455 // Stores the current zoom factor. |
| 460 double current_zoom_factor_; | 456 double current_zoom_factor_; |
| 461 | 457 |
| 462 // Stores the window name of the main frame of the guest. | 458 // Stores the window name of the main frame of the guest. |
| 463 std::string name_; | 459 std::string name_; |
| 464 | 460 |
| 465 // Handles find requests and replies for the webview find API. | 461 // Handles find requests and replies for the webview find API. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 495 changed(false) {} | 491 changed(false) {} |
| 496 }; | 492 }; |
| 497 | 493 |
| 498 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; | 494 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; |
| 499 PendingWindowMap pending_new_windows_; | 495 PendingWindowMap pending_new_windows_; |
| 500 | 496 |
| 501 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 497 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
| 502 }; | 498 }; |
| 503 | 499 |
| 504 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 500 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| OLD | NEW |