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

Side by Side Diff: content/child/blink_platform_impl.cc

Issue 1693183002: Move multipart resource handling to core/fetch (1/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@multipart-cleanup-preliminary
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/child/blink_platform_impl.h" 5 #include "content/child/blink_platform_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 461
462 bool BlinkPlatformImpl::portAllowed(const blink::WebURL& url) const { 462 bool BlinkPlatformImpl::portAllowed(const blink::WebURL& url) const {
463 GURL gurl = GURL(url); 463 GURL gurl = GURL(url);
464 // Return true for URLs without a port specified. This is needed to let 464 // Return true for URLs without a port specified. This is needed to let
465 // through non-network schemes that don't go over the network. 465 // through non-network schemes that don't go over the network.
466 if (!gurl.has_port()) 466 if (!gurl.has_port())
467 return true; 467 return true;
468 return net::IsPortAllowedForScheme(gurl.EffectiveIntPort(), gurl.scheme()); 468 return net::IsPortAllowedForScheme(gurl.EffectiveIntPort(), gurl.scheme());
469 } 469 }
470 470
471 bool BlinkPlatformImpl::parseAdditionalHeaders(const char* bytes,
472 size_t size,
473 blink::WebURLResponse* response,
474 size_t* end) const {
475 return WebURLLoaderImpl::ParseAdditionalHeaders(
476 bytes, size, response, end);
477 }
478
471 blink::WebThread* BlinkPlatformImpl::createThread(const char* name) { 479 blink::WebThread* BlinkPlatformImpl::createThread(const char* name) {
472 scoped_ptr<WebThreadImplForWorkerScheduler> thread( 480 scoped_ptr<WebThreadImplForWorkerScheduler> thread(
473 new WebThreadImplForWorkerScheduler(name)); 481 new WebThreadImplForWorkerScheduler(name));
474 thread->Init(); 482 thread->Init();
475 WaitUntilWebThreadTLSUpdate(thread.get()); 483 WaitUntilWebThreadTLSUpdate(thread.get());
476 return thread.release(); 484 return thread.release();
477 } 485 }
478 486
479 void BlinkPlatformImpl::SetCompositorThread( 487 void BlinkPlatformImpl::SetCompositorThread(
480 scheduler::WebThreadBase* compositor_thread) { 488 scheduler::WebThreadBase* compositor_thread) {
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( 1049 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString(
1042 static_cast<ui::DomKey>(dom_key))); 1050 static_cast<ui::DomKey>(dom_key)));
1043 } 1051 }
1044 1052
1045 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { 1053 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) {
1046 return static_cast<int>( 1054 return static_cast<int>(
1047 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); 1055 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8()));
1048 } 1056 }
1049 1057
1050 } // namespace content 1058 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698