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

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

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, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/fetch/MultipartImageResourceParserTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 class WebSpeechSynthesizer; 113 class WebSpeechSynthesizer;
114 class WebSpeechSynthesizerClient; 114 class WebSpeechSynthesizerClient;
115 class WebStorageNamespace; 115 class WebStorageNamespace;
116 class WebSyncProvider; 116 class WebSyncProvider;
117 struct WebFloatPoint; 117 struct WebFloatPoint;
118 class WebThemeEngine; 118 class WebThemeEngine;
119 class WebThread; 119 class WebThread;
120 class WebTrialTokenValidator; 120 class WebTrialTokenValidator;
121 class WebURL; 121 class WebURL;
122 class WebURLLoader; 122 class WebURLLoader;
123 class WebURLResponse;
123 class WebUnitTestSupport; 124 class WebUnitTestSupport;
124 struct WebLocalizedString; 125 struct WebLocalizedString;
125 struct WebSize; 126 struct WebSize;
126 127
127 class BLINK_PLATFORM_EXPORT Platform { 128 class BLINK_PLATFORM_EXPORT Platform {
128 public: 129 public:
129 // HTML5 Database ------------------------------------------------------ 130 // HTML5 Database ------------------------------------------------------
130 131
131 #ifdef WIN32 132 #ifdef WIN32
132 typedef HANDLE FileHandle; 133 typedef HANDLE FileHandle;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 316
316 // Returns the decoded data url if url had a supported mimetype and parsing was successful. 317 // Returns the decoded data url if url had a supported mimetype and parsing was successful.
317 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); } 318 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); }
318 319
319 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); } 320 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); }
320 321
321 virtual bool isReservedIPAddress(const WebString& host) const { return false ; } 322 virtual bool isReservedIPAddress(const WebString& host) const { return false ; }
322 323
323 virtual bool portAllowed(const WebURL&) const { return false; } 324 virtual bool portAllowed(const WebURL&) const { return false; }
324 325
326 // Returns true and stores the position of the end of the headers to |*end|
327 // if the headers part ends in |bytes[0..size]|. Returns false otherwise.
328 virtual bool parseMultipartHeadersFromBody(const char* bytes, size_t /* size */, WebURLResponse*, size_t* end) const { return false; }
329
325 // Plugins ------------------------------------------------------------- 330 // Plugins -------------------------------------------------------------
326 331
327 // If refresh is true, then cached information should not be used to 332 // If refresh is true, then cached information should not be used to
328 // satisfy this call. 333 // satisfy this call.
329 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } 334 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { }
330 335
331 336
332 // Public Suffix List -------------------------------------------------- 337 // Public Suffix List --------------------------------------------------
333 338
334 // May return null on some platforms. 339 // May return null on some platforms.
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 protected: 617 protected:
613 Platform(); 618 Platform();
614 virtual ~Platform() { } 619 virtual ~Platform() { }
615 620
616 WebThread* m_mainThread; 621 WebThread* m_mainThread;
617 }; 622 };
618 623
619 } // namespace blink 624 } // namespace blink
620 625
621 #endif 626 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/MultipartImageResourceParserTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698