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

Side by Side Diff: third_party/WebKit/Source/core/fileapi/File.cpp

Issue 2482653002: Move MIME related platform files under network/mime (Closed)
Patch Set: fix Created 4 years 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 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 12 matching lines...) Expand all
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "core/fileapi/File.h" 26 #include "core/fileapi/File.h"
27 27
28 #include "bindings/core/v8/ExceptionState.h" 28 #include "bindings/core/v8/ExceptionState.h"
29 #include "core/dom/ExceptionCode.h" 29 #include "core/dom/ExceptionCode.h"
30 #include "core/fileapi/FilePropertyBag.h" 30 #include "core/fileapi/FilePropertyBag.h"
31 #include "core/frame/UseCounter.h" 31 #include "core/frame/UseCounter.h"
32 #include "platform/FileMetadata.h" 32 #include "platform/FileMetadata.h"
33 #include "platform/MIMETypeRegistry.h"
34 #include "platform/blob/BlobData.h" 33 #include "platform/blob/BlobData.h"
34 #include "platform/network/mime/MIMETypeRegistry.h"
35 #include "public/platform/Platform.h" 35 #include "public/platform/Platform.h"
36 #include "public/platform/WebFileUtilities.h" 36 #include "public/platform/WebFileUtilities.h"
37 #include "wtf/CurrentTime.h" 37 #include "wtf/CurrentTime.h"
38 #include "wtf/DateMath.h" 38 #include "wtf/DateMath.h"
39 #include <memory> 39 #include <memory>
40 40
41 namespace blink { 41 namespace blink {
42 42
43 static String getContentTypeFromFileName(const String& name, 43 static String getContentTypeFromFileName(const String& name,
44 File::ContentTypeLookupPolicy policy) { 44 File::ContentTypeLookupPolicy policy) {
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 if (m_fileSystemURL.isEmpty() != other.m_fileSystemURL.isEmpty()) 398 if (m_fileSystemURL.isEmpty() != other.m_fileSystemURL.isEmpty())
399 return false; 399 return false;
400 400
401 if (!m_fileSystemURL.isEmpty()) 401 if (!m_fileSystemURL.isEmpty())
402 return m_fileSystemURL == other.m_fileSystemURL; 402 return m_fileSystemURL == other.m_fileSystemURL;
403 403
404 return uuid() == other.uuid(); 404 return uuid() == other.uuid();
405 } 405 }
406 406
407 } // namespace blink 407 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptLoader.cpp ('k') | third_party/WebKit/Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698