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/worker/worker_webkitplatformsupport_impl.h" | 5 #include "content/worker/worker_webkitplatformsupport_impl.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 NOTREACHED(); | 135 NOTREACHED(); |
136 return 0; | 136 return 0; |
137 } | 137 } |
138 | 138 |
139 bool WorkerWebKitPlatformSupportImpl::isLinkVisited( | 139 bool WorkerWebKitPlatformSupportImpl::isLinkVisited( |
140 unsigned long long link_hash) { | 140 unsigned long long link_hash) { |
141 NOTREACHED(); | 141 NOTREACHED(); |
142 return false; | 142 return false; |
143 } | 143 } |
144 | 144 |
145 WebMessagePortChannel* | |
146 WorkerWebKitPlatformSupportImpl::createMessagePortChannel() { | |
147 return new WebMessagePortChannelImpl(child_thread_loop_.get()); | |
148 } | |
149 | |
150 void WorkerWebKitPlatformSupportImpl::createMessageChannel( | 145 void WorkerWebKitPlatformSupportImpl::createMessageChannel( |
151 blink::WebMessagePortChannel** channel1, | 146 blink::WebMessagePortChannel** channel1, |
152 blink::WebMessagePortChannel** channel2) { | 147 blink::WebMessagePortChannel** channel2) { |
153 *channel1 = new WebMessagePortChannelImpl(child_thread_loop_.get()); | 148 WebMessagePortChannelImpl::CreatePair( |
154 *channel2 = new WebMessagePortChannelImpl(child_thread_loop_.get()); | 149 child_thread_loop_.get(), channel1, channel2); |
155 (*channel1)->entangle(*channel2); | |
156 (*channel2)->entangle(*channel1); | |
157 } | 150 } |
158 | 151 |
159 void WorkerWebKitPlatformSupportImpl::setCookies( | 152 void WorkerWebKitPlatformSupportImpl::setCookies( |
160 const WebURL& url, | 153 const WebURL& url, |
161 const WebURL& first_party_for_cookies, | 154 const WebURL& first_party_for_cookies, |
162 const WebString& value) { | 155 const WebString& value) { |
163 NOTREACHED(); | 156 NOTREACHED(); |
164 } | 157 } |
165 | 158 |
166 WebString WorkerWebKitPlatformSupportImpl::cookies( | 159 WebString WorkerWebKitPlatformSupportImpl::cookies( |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 return; | 307 return; |
315 QuotaDispatcher::ThreadSpecificInstance( | 308 QuotaDispatcher::ThreadSpecificInstance( |
316 thread_safe_sender_.get(), | 309 thread_safe_sender_.get(), |
317 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 310 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
318 storage_partition, | 311 storage_partition, |
319 static_cast<quota::StorageType>(type), | 312 static_cast<quota::StorageType>(type), |
320 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 313 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
321 } | 314 } |
322 | 315 |
323 } // namespace content | 316 } // namespace content |
OLD | NEW |