| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "Chrome.h" | 10 #include "Chrome.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "base/basictypes.h" | 29 #include "base/basictypes.h" |
| 30 #include "base/logging.h" | 30 #include "base/logging.h" |
| 31 #include "base/string_util.h" | 31 #include "base/string_util.h" |
| 32 #include "net/base/mime_util.h" | 32 #include "net/base/mime_util.h" |
| 33 #include "net/base/net_errors.h" | 33 #include "net/base/net_errors.h" |
| 34 #include "webkit/api/public/WebForm.h" | 34 #include "webkit/api/public/WebForm.h" |
| 35 #include "webkit/api/public/WebFrameClient.h" | 35 #include "webkit/api/public/WebFrameClient.h" |
| 36 #include "webkit/api/public/WebPlugin.h" | 36 #include "webkit/api/public/WebPlugin.h" |
| 37 #include "webkit/api/public/WebPluginParams.h" | 37 #include "webkit/api/public/WebPluginParams.h" |
| 38 #include "webkit/api/public/WebSecurityOrigin.h" | |
| 39 #include "webkit/api/public/WebURL.h" | 38 #include "webkit/api/public/WebURL.h" |
| 40 #include "webkit/api/public/WebURLError.h" | 39 #include "webkit/api/public/WebURLError.h" |
| 41 #include "webkit/api/public/WebVector.h" | 40 #include "webkit/api/public/WebVector.h" |
| 42 #include "webkit/api/src/WebDataSourceImpl.h" | 41 #include "webkit/api/src/WebDataSourceImpl.h" |
| 43 #include "webkit/api/src/WebPluginContainerImpl.h" | 42 #include "webkit/api/src/WebPluginContainerImpl.h" |
| 44 #include "webkit/api/src/WebPluginLoadObserver.h" | 43 #include "webkit/api/src/WebPluginLoadObserver.h" |
| 45 #include "webkit/api/src/WrappedResourceRequest.h" | 44 #include "webkit/api/src/WrappedResourceRequest.h" |
| 46 #include "webkit/api/src/WrappedResourceResponse.h" | 45 #include "webkit/api/src/WrappedResourceResponse.h" |
| 47 #include "webkit/glue/glue_util.h" | 46 #include "webkit/glue/glue_util.h" |
| 48 #include "webkit/glue/plugins/plugin_list.h" | 47 #include "webkit/glue/plugins/plugin_list.h" |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 } | 980 } |
| 982 | 981 |
| 983 void WebFrameLoaderClient::didDisplayInsecureContent() { | 982 void WebFrameLoaderClient::didDisplayInsecureContent() { |
| 984 if (webframe_->client()) | 983 if (webframe_->client()) |
| 985 webframe_->client()->didDisplayInsecureContent(webframe_); | 984 webframe_->client()->didDisplayInsecureContent(webframe_); |
| 986 } | 985 } |
| 987 | 986 |
| 988 void WebFrameLoaderClient::didRunInsecureContent(SecurityOrigin* origin) { | 987 void WebFrameLoaderClient::didRunInsecureContent(SecurityOrigin* origin) { |
| 989 if (webframe_->client()) { | 988 if (webframe_->client()) { |
| 990 webframe_->client()->didRunInsecureContent(webframe_, | 989 webframe_->client()->didRunInsecureContent(webframe_, |
| 991 webkit_glue::SecurityOriginToWebSecurityOrigin(origin)); | 990 webkit_glue::StringToWebString(origin->toString())); |
| 992 } | 991 } |
| 993 } | 992 } |
| 994 | 993 |
| 995 ResourceError WebFrameLoaderClient::blockedError(const WebCore::ResourceRequest&
) { | 994 ResourceError WebFrameLoaderClient::blockedError(const WebCore::ResourceRequest&
) { |
| 996 // FIXME | 995 // FIXME |
| 997 return ResourceError(); | 996 return ResourceError(); |
| 998 } | 997 } |
| 999 | 998 |
| 1000 ResourceError WebFrameLoaderClient::cancelledError( | 999 ResourceError WebFrameLoaderClient::cancelledError( |
| 1001 const ResourceRequest& request) { | 1000 const ResourceRequest& request) { |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1336 WebViewImpl* webview = webframe_->GetWebViewImpl(); | 1335 WebViewImpl* webview = webframe_->GetWebViewImpl(); |
| 1337 if (webview->client()) | 1336 if (webview->client()) |
| 1338 webview->client()->navigateBackForwardSoon(offset); | 1337 webview->client()->navigateBackForwardSoon(offset); |
| 1339 } | 1338 } |
| 1340 | 1339 |
| 1341 PassOwnPtr<WebPluginLoadObserver> WebFrameLoaderClient::GetPluginLoadObserver()
{ | 1340 PassOwnPtr<WebPluginLoadObserver> WebFrameLoaderClient::GetPluginLoadObserver()
{ |
| 1342 WebDataSourceImpl* ds = WebDataSourceImpl::fromDocumentLoader( | 1341 WebDataSourceImpl* ds = WebDataSourceImpl::fromDocumentLoader( |
| 1343 webframe_->frame()->loader()->activeDocumentLoader()); | 1342 webframe_->frame()->loader()->activeDocumentLoader()); |
| 1344 return ds->releasePluginLoadObserver(); | 1343 return ds->releasePluginLoadObserver(); |
| 1345 } | 1344 } |
| OLD | NEW |