| 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 #include "chrome/browser/guestview/webview/webview_guest.h" | 5 #include "chrome/browser/guestview/webview/webview_guest.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "chrome/browser/extensions/api/web_request/web_request_api.h" | 9 #include "chrome/browser/extensions/api/web_request/web_request_api.h" |
| 10 #include "chrome/browser/extensions/extension_renderer_state.h" | 10 #include "chrome/browser/extensions/extension_renderer_state.h" |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 void WebViewGuest::DidFailProvisionalLoad( | 576 void WebViewGuest::DidFailProvisionalLoad( |
| 577 int64 frame_id, | 577 int64 frame_id, |
| 578 const string16& frame_unique_name, | 578 const string16& frame_unique_name, |
| 579 bool is_main_frame, | 579 bool is_main_frame, |
| 580 const GURL& validated_url, | 580 const GURL& validated_url, |
| 581 int error_code, | 581 int error_code, |
| 582 const string16& error_description, | 582 const string16& error_description, |
| 583 content::RenderViewHost* render_view_host) { | 583 content::RenderViewHost* render_view_host) { |
| 584 // Translate the |error_code| into an error string. | 584 // Translate the |error_code| into an error string. |
| 585 std::string error_type; | 585 std::string error_type; |
| 586 RemoveChars(net::ErrorToString(error_code), "net::", &error_type); | 586 base::RemoveChars(net::ErrorToString(error_code), "net::", &error_type); |
| 587 LoadAbort(is_main_frame, validated_url, error_type); | 587 LoadAbort(is_main_frame, validated_url, error_type); |
| 588 } | 588 } |
| 589 | 589 |
| 590 void WebViewGuest::DidStartProvisionalLoadForFrame( | 590 void WebViewGuest::DidStartProvisionalLoadForFrame( |
| 591 int64 frame_id, | 591 int64 frame_id, |
| 592 int64 parent_frame_id, | 592 int64 parent_frame_id, |
| 593 bool is_main_frame, | 593 bool is_main_frame, |
| 594 const GURL& validated_url, | 594 const GURL& validated_url, |
| 595 bool is_error_page, | 595 bool is_error_page, |
| 596 bool is_iframe_srcdoc, | 596 bool is_iframe_srcdoc, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 const PermissionResponseCallback& callback, | 702 const PermissionResponseCallback& callback, |
| 703 BrowserPluginPermissionType permission_type, | 703 BrowserPluginPermissionType permission_type, |
| 704 bool allowed_by_default) | 704 bool allowed_by_default) |
| 705 : callback(callback), | 705 : callback(callback), |
| 706 permission_type(permission_type), | 706 permission_type(permission_type), |
| 707 allowed_by_default(allowed_by_default) { | 707 allowed_by_default(allowed_by_default) { |
| 708 } | 708 } |
| 709 | 709 |
| 710 WebViewGuest::PermissionResponseInfo::~PermissionResponseInfo() { | 710 WebViewGuest::PermissionResponseInfo::~PermissionResponseInfo() { |
| 711 } | 711 } |
| OLD | NEW |