| 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_blink_platform_impl.h" | 5 #include "content/renderer/renderer_blink_platform_impl.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 return GetContentClient()->renderer()->VisitedLinkHash(canonical_url, length); | 371 return GetContentClient()->renderer()->VisitedLinkHash(canonical_url, length); |
| 372 } | 372 } |
| 373 | 373 |
| 374 bool RendererBlinkPlatformImpl::isLinkVisited(unsigned long long link_hash) { | 374 bool RendererBlinkPlatformImpl::isLinkVisited(unsigned long long link_hash) { |
| 375 return GetContentClient()->renderer()->IsLinkVisited(link_hash); | 375 return GetContentClient()->renderer()->IsLinkVisited(link_hash); |
| 376 } | 376 } |
| 377 | 377 |
| 378 void RendererBlinkPlatformImpl::createMessageChannel( | 378 void RendererBlinkPlatformImpl::createMessageChannel( |
| 379 blink::WebMessagePortChannel** channel1, | 379 blink::WebMessagePortChannel** channel1, |
| 380 blink::WebMessagePortChannel** channel2) { | 380 blink::WebMessagePortChannel** channel2) { |
| 381 WebMessagePortChannelImpl::CreatePair( | 381 WebMessagePortChannelImpl::CreatePair(channel1, channel2); |
| 382 default_task_runner_, channel1, channel2); | |
| 383 } | 382 } |
| 384 | 383 |
| 385 blink::WebPrescientNetworking* | 384 blink::WebPrescientNetworking* |
| 386 RendererBlinkPlatformImpl::prescientNetworking() { | 385 RendererBlinkPlatformImpl::prescientNetworking() { |
| 387 return GetContentClient()->renderer()->GetPrescientNetworking(); | 386 return GetContentClient()->renderer()->GetPrescientNetworking(); |
| 388 } | 387 } |
| 389 | 388 |
| 390 void RendererBlinkPlatformImpl::cacheMetadata(const blink::WebURL& url, | 389 void RendererBlinkPlatformImpl::cacheMetadata(const blink::WebURL& url, |
| 391 int64_t response_time, | 390 int64_t response_time, |
| 392 const char* data, | 391 const char* data, |
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 return &trial_token_validator_; | 1284 return &trial_token_validator_; |
| 1286 } | 1285 } |
| 1287 | 1286 |
| 1288 void RendererBlinkPlatformImpl::workerContextCreated( | 1287 void RendererBlinkPlatformImpl::workerContextCreated( |
| 1289 const v8::Local<v8::Context>& worker) { | 1288 const v8::Local<v8::Context>& worker) { |
| 1290 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( | 1289 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( |
| 1291 worker); | 1290 worker); |
| 1292 } | 1291 } |
| 1293 | 1292 |
| 1294 } // namespace content | 1293 } // namespace content |
| OLD | NEW |