| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "HitTestResult.h" | 44 #include "HitTestResult.h" |
| 45 #include "MIMETypeRegistry.h" | 45 #include "MIMETypeRegistry.h" |
| 46 #include "MouseEvent.h" | 46 #include "MouseEvent.h" |
| 47 #include "Page.h" | 47 #include "Page.h" |
| 48 #include "PlatformString.h" | 48 #include "PlatformString.h" |
| 49 #include "PluginData.h" | 49 #include "PluginData.h" |
| 50 #include "StringExtras.h" | 50 #include "StringExtras.h" |
| 51 #include "WebForm.h" | 51 #include "WebForm.h" |
| 52 #include "WebFrameClient.h" | 52 #include "WebFrameClient.h" |
| 53 #include "WebFrameImpl.h" | 53 #include "WebFrameImpl.h" |
| 54 #include "WebKit.h" |
| 55 #include "WebKitClient.h" |
| 54 #include "WebNode.h" | 56 #include "WebNode.h" |
| 55 #include "WebPlugin.h" | 57 #include "WebPlugin.h" |
| 56 #include "WebPluginParams.h" | 58 #include "WebPluginParams.h" |
| 57 #include "WebSecurityOrigin.h" | 59 #include "WebSecurityOrigin.h" |
| 58 #include "WebURL.h" | 60 #include "WebURL.h" |
| 59 #include "WebURLError.h" | 61 #include "WebURLError.h" |
| 60 #include "WebVector.h" | 62 #include "WebVector.h" |
| 61 #include "WebViewClient.h" | 63 #include "WebViewClient.h" |
| 62 #include "WebViewImpl.h" | 64 #include "WebViewImpl.h" |
| 63 #include "WebDataSourceImpl.h" | 65 #include "WebDataSourceImpl.h" |
| 64 #include "WebPluginContainerImpl.h" | 66 #include "WebPluginContainerImpl.h" |
| 65 #include "WebPluginLoadObserver.h" | 67 #include "WebPluginLoadObserver.h" |
| 66 #include "WindowFeatures.h" | 68 #include "WindowFeatures.h" |
| 67 #include "WrappedResourceRequest.h" | 69 #include "WrappedResourceRequest.h" |
| 68 #include "WrappedResourceResponse.h" | 70 #include "WrappedResourceResponse.h" |
| 69 | 71 |
| 70 // FIXME: remove these | 72 // FIXME: remove these |
| 71 #include "googleurl/src/gurl.h" | |
| 72 #include "net/base/mime_util.h" | 73 #include "net/base/mime_util.h" |
| 73 #include "webkit/glue/glue_util.h" | |
| 74 #include "webkit/glue/webdevtoolsagent_impl.h" | 74 #include "webkit/glue/webdevtoolsagent_impl.h" |
| 75 #include "webkit/glue/webkit_glue.h" | |
| 76 | 75 |
| 77 using namespace WebCore; | 76 using namespace WebCore; |
| 78 | 77 |
| 79 namespace WebKit { | 78 namespace WebKit { |
| 80 | 79 |
| 81 // Domain for internal error codes. | 80 // Domain for internal error codes. |
| 82 static const char internalErrorDomain[] = "WebKit"; | 81 static const char internalErrorDomain[] = "WebKit"; |
| 83 | 82 |
| 84 // An internal error code. Used to note a policy change error resulting from | 83 // An internal error code. Used to note a policy change error resulting from |
| 85 // dispatchDecidePolicyForMIMEType not passing the PolicyUse option. | 84 // dispatchDecidePolicyForMIMEType not passing the PolicyUse option. |
| (...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1200 return ds.release(); | 1199 return ds.release(); |
| 1201 } | 1200 } |
| 1202 | 1201 |
| 1203 void FrameLoaderClientImpl::setTitle(const String& title, const KURL& url) | 1202 void FrameLoaderClientImpl::setTitle(const String& title, const KURL& url) |
| 1204 { | 1203 { |
| 1205 // FIXME: inform consumer of changes to the title. | 1204 // FIXME: inform consumer of changes to the title. |
| 1206 } | 1205 } |
| 1207 | 1206 |
| 1208 String FrameLoaderClientImpl::userAgent(const KURL& url) | 1207 String FrameLoaderClientImpl::userAgent(const KURL& url) |
| 1209 { | 1208 { |
| 1210 // FIXME: Convert this to a WebKitClient callback. | 1209 return webKitClient()->userAgent(url); |
| 1211 return webkit_glue::StdStringToString( | |
| 1212 webkit_glue::GetUserAgent(webkit_glue::KURLToGURL(url))); | |
| 1213 } | 1210 } |
| 1214 | 1211 |
| 1215 void FrameLoaderClientImpl::savePlatformDataToCachedFrame(CachedFrame*) | 1212 void FrameLoaderClientImpl::savePlatformDataToCachedFrame(CachedFrame*) |
| 1216 { | 1213 { |
| 1217 // The page cache should be disabled. | 1214 // The page cache should be disabled. |
| 1218 ASSERT_NOT_REACHED(); | 1215 ASSERT_NOT_REACHED(); |
| 1219 } | 1216 } |
| 1220 | 1217 |
| 1221 void FrameLoaderClientImpl::transitionToCommittedFromCachedFrame(CachedFrame*) | 1218 void FrameLoaderClientImpl::transitionToCommittedFromCachedFrame(CachedFrame*) |
| 1222 { | 1219 { |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1396 } | 1393 } |
| 1397 | 1394 |
| 1398 PassOwnPtr<WebPluginLoadObserver> FrameLoaderClientImpl::pluginLoadObserver() | 1395 PassOwnPtr<WebPluginLoadObserver> FrameLoaderClientImpl::pluginLoadObserver() |
| 1399 { | 1396 { |
| 1400 WebDataSourceImpl* ds = WebDataSourceImpl::fromDocumentLoader( | 1397 WebDataSourceImpl* ds = WebDataSourceImpl::fromDocumentLoader( |
| 1401 m_webFrame->frame()->loader()->activeDocumentLoader()); | 1398 m_webFrame->frame()->loader()->activeDocumentLoader()); |
| 1402 return ds->releasePluginLoadObserver(); | 1399 return ds->releasePluginLoadObserver(); |
| 1403 } | 1400 } |
| 1404 | 1401 |
| 1405 } // namespace WebKit | 1402 } // namespace WebKit |
| OLD | NEW |