Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: webkit/glue/webframeloaderclient_impl.cc

Issue 211013: Introduce WebKit::WebSecurityOrigin as a wrapper around... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webframe_impl.cc ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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"
38 #include "webkit/api/public/WebURL.h" 39 #include "webkit/api/public/WebURL.h"
39 #include "webkit/api/public/WebURLError.h" 40 #include "webkit/api/public/WebURLError.h"
40 #include "webkit/api/public/WebVector.h" 41 #include "webkit/api/public/WebVector.h"
41 #include "webkit/api/src/WebDataSourceImpl.h" 42 #include "webkit/api/src/WebDataSourceImpl.h"
42 #include "webkit/api/src/WebPluginContainerImpl.h" 43 #include "webkit/api/src/WebPluginContainerImpl.h"
43 #include "webkit/api/src/WebPluginLoadObserver.h" 44 #include "webkit/api/src/WebPluginLoadObserver.h"
44 #include "webkit/api/src/WrappedResourceRequest.h" 45 #include "webkit/api/src/WrappedResourceRequest.h"
45 #include "webkit/api/src/WrappedResourceResponse.h" 46 #include "webkit/api/src/WrappedResourceResponse.h"
46 #include "webkit/glue/glue_util.h" 47 #include "webkit/glue/glue_util.h"
47 #include "webkit/glue/plugins/plugin_list.h" 48 #include "webkit/glue/plugins/plugin_list.h"
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 } 981 }
981 982
982 void WebFrameLoaderClient::didDisplayInsecureContent() { 983 void WebFrameLoaderClient::didDisplayInsecureContent() {
983 if (webframe_->client()) 984 if (webframe_->client())
984 webframe_->client()->didDisplayInsecureContent(webframe_); 985 webframe_->client()->didDisplayInsecureContent(webframe_);
985 } 986 }
986 987
987 void WebFrameLoaderClient::didRunInsecureContent(SecurityOrigin* origin) { 988 void WebFrameLoaderClient::didRunInsecureContent(SecurityOrigin* origin) {
988 if (webframe_->client()) { 989 if (webframe_->client()) {
989 webframe_->client()->didRunInsecureContent(webframe_, 990 webframe_->client()->didRunInsecureContent(webframe_,
990 webkit_glue::StringToWebString(origin->toString())); 991 webkit_glue::SecurityOriginToWebSecurityOrigin(origin));
991 } 992 }
992 } 993 }
993 994
994 ResourceError WebFrameLoaderClient::blockedError(const WebCore::ResourceRequest& ) { 995 ResourceError WebFrameLoaderClient::blockedError(const WebCore::ResourceRequest& ) {
995 // FIXME 996 // FIXME
996 return ResourceError(); 997 return ResourceError();
997 } 998 }
998 999
999 ResourceError WebFrameLoaderClient::cancelledError( 1000 ResourceError WebFrameLoaderClient::cancelledError(
1000 const ResourceRequest& request) { 1001 const ResourceRequest& request) {
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 WebViewImpl* webview = webframe_->GetWebViewImpl(); 1336 WebViewImpl* webview = webframe_->GetWebViewImpl();
1336 if (webview->client()) 1337 if (webview->client())
1337 webview->client()->navigateBackForwardSoon(offset); 1338 webview->client()->navigateBackForwardSoon(offset);
1338 } 1339 }
1339 1340
1340 PassOwnPtr<WebPluginLoadObserver> WebFrameLoaderClient::GetPluginLoadObserver() { 1341 PassOwnPtr<WebPluginLoadObserver> WebFrameLoaderClient::GetPluginLoadObserver() {
1341 WebDataSourceImpl* ds = WebDataSourceImpl::fromDocumentLoader( 1342 WebDataSourceImpl* ds = WebDataSourceImpl::fromDocumentLoader(
1342 webframe_->frame()->loader()->activeDocumentLoader()); 1343 webframe_->frame()->loader()->activeDocumentLoader());
1343 return ds->releasePluginLoadObserver(); 1344 return ds->releasePluginLoadObserver();
1344 } 1345 }
OLDNEW
« no previous file with comments | « webkit/glue/webframe_impl.cc ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698