| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/renderer_webkitplatformsupport_impl.h" | 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 const char* canonical_url, | 308 const char* canonical_url, |
| 309 size_t length) { | 309 size_t length) { |
| 310 return GetContentClient()->renderer()->VisitedLinkHash(canonical_url, length); | 310 return GetContentClient()->renderer()->VisitedLinkHash(canonical_url, length); |
| 311 } | 311 } |
| 312 | 312 |
| 313 bool RendererWebKitPlatformSupportImpl::isLinkVisited( | 313 bool RendererWebKitPlatformSupportImpl::isLinkVisited( |
| 314 unsigned long long link_hash) { | 314 unsigned long long link_hash) { |
| 315 return GetContentClient()->renderer()->IsLinkVisited(link_hash); | 315 return GetContentClient()->renderer()->IsLinkVisited(link_hash); |
| 316 } | 316 } |
| 317 | 317 |
| 318 blink::WebMessagePortChannel* | |
| 319 RendererWebKitPlatformSupportImpl::createMessagePortChannel() { | |
| 320 return new WebMessagePortChannelImpl(child_thread_loop_.get()); | |
| 321 } | |
| 322 | |
| 323 void RendererWebKitPlatformSupportImpl::createMessageChannel( | 318 void RendererWebKitPlatformSupportImpl::createMessageChannel( |
| 324 blink::WebMessagePortChannel** channel1, | 319 blink::WebMessagePortChannel** channel1, |
| 325 blink::WebMessagePortChannel** channel2) { | 320 blink::WebMessagePortChannel** channel2) { |
| 326 *channel1 = new WebMessagePortChannelImpl(child_thread_loop_.get()); | 321 WebMessagePortChannelImpl::CreatePair( |
| 327 *channel2 = new WebMessagePortChannelImpl(child_thread_loop_.get()); | 322 child_thread_loop_.get(), channel1, channel2); |
| 328 (*channel1)->entangle(*channel2); | |
| 329 (*channel2)->entangle(*channel1); | |
| 330 } | 323 } |
| 331 | 324 |
| 332 blink::WebPrescientNetworking* | 325 blink::WebPrescientNetworking* |
| 333 RendererWebKitPlatformSupportImpl::prescientNetworking() { | 326 RendererWebKitPlatformSupportImpl::prescientNetworking() { |
| 334 return GetContentClient()->renderer()->GetPrescientNetworking(); | 327 return GetContentClient()->renderer()->GetPrescientNetworking(); |
| 335 } | 328 } |
| 336 | 329 |
| 337 bool | 330 bool |
| 338 RendererWebKitPlatformSupportImpl::CheckPreparsedJsCachingEnabled() const { | 331 RendererWebKitPlatformSupportImpl::CheckPreparsedJsCachingEnabled() const { |
| 339 static bool checked = false; | 332 static bool checked = false; |
| (...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1180 return; | 1173 return; |
| 1181 QuotaDispatcher::ThreadSpecificInstance( | 1174 QuotaDispatcher::ThreadSpecificInstance( |
| 1182 thread_safe_sender_.get(), | 1175 thread_safe_sender_.get(), |
| 1183 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 1176 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
| 1184 storage_partition, | 1177 storage_partition, |
| 1185 static_cast<quota::StorageType>(type), | 1178 static_cast<quota::StorageType>(type), |
| 1186 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 1179 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
| 1187 } | 1180 } |
| 1188 | 1181 |
| 1189 } // namespace content | 1182 } // namespace content |
| OLD | NEW |