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

Side by Side Diff: Source/core/fileapi/FileReaderLoader.cpp

Issue 18512011: core/html: Include wtf files using "wtf/foo.h" form. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/fileapi/FileReader.cpp ('k') | Source/core/fileapi/FileReaderSync.cpp » ('j') | 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 24 matching lines...) Expand all
35 #include "core/dom/ScriptExecutionContext.h" 35 #include "core/dom/ScriptExecutionContext.h"
36 #include "core/fileapi/Blob.h" 36 #include "core/fileapi/Blob.h"
37 #include "core/fileapi/BlobRegistry.h" 37 #include "core/fileapi/BlobRegistry.h"
38 #include "core/fileapi/BlobURL.h" 38 #include "core/fileapi/BlobURL.h"
39 #include "core/fileapi/FileReaderLoaderClient.h" 39 #include "core/fileapi/FileReaderLoaderClient.h"
40 #include "core/fileapi/Stream.h" 40 #include "core/fileapi/Stream.h"
41 #include "core/loader/TextResourceDecoder.h" 41 #include "core/loader/TextResourceDecoder.h"
42 #include "core/loader/ThreadableLoader.h" 42 #include "core/loader/ThreadableLoader.h"
43 #include "core/platform/network/ResourceRequest.h" 43 #include "core/platform/network/ResourceRequest.h"
44 #include "core/platform/network/ResourceResponse.h" 44 #include "core/platform/network/ResourceResponse.h"
45 #include <wtf/ArrayBuffer.h> 45 #include "wtf/ArrayBuffer.h"
46 #include <wtf/PassRefPtr.h> 46 #include "wtf/PassRefPtr.h"
47 #include <wtf/RefPtr.h> 47 #include "wtf/RefPtr.h"
48 #include <wtf/text/Base64.h> 48 #include "wtf/Vector.h"
49 #include <wtf/text/StringBuilder.h> 49 #include "wtf/text/Base64.h"
50 #include <wtf/Vector.h> 50 #include "wtf/text/StringBuilder.h"
51 51
52 using namespace std; 52 using namespace std;
53 53
54 namespace WebCore { 54 namespace WebCore {
55 55
56 const int defaultBufferLength = 32768; 56 const int defaultBufferLength = 32768;
57 57
58 FileReaderLoader::FileReaderLoader(ReadType readType, FileReaderLoaderClient* cl ient) 58 FileReaderLoader::FileReaderLoader(ReadType readType, FileReaderLoaderClient* cl ient)
59 : m_readType(readType) 59 : m_readType(readType)
60 , m_client(client) 60 , m_client(client)
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 void FileReaderLoader::setRange(unsigned start, unsigned length) 399 void FileReaderLoader::setRange(unsigned start, unsigned length)
400 { 400 {
401 ASSERT(length > 0); 401 ASSERT(length > 0);
402 m_hasRange = true; 402 m_hasRange = true;
403 m_rangeStart = start; 403 m_rangeStart = start;
404 m_rangeEnd = start + length - 1; 404 m_rangeEnd = start + length - 1;
405 } 405 }
406 #endif // ENABLE(STREAM) 406 #endif // ENABLE(STREAM)
407 407
408 } // namespace WebCore 408 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/fileapi/FileReader.cpp ('k') | Source/core/fileapi/FileReaderSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698