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

Side by Side Diff: Source/web/AsyncFileWriterChromium.cpp

Issue 18411005: Use the async version of WebFileSystem::createFileWriter (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/web/AsyncFileWriterChromium.h ('k') | Source/web/WebFileSystemCallbacksImpl.h » ('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 20 matching lines...) Expand all
31 #include "config.h" 31 #include "config.h"
32 #include "AsyncFileWriterChromium.h" 32 #include "AsyncFileWriterChromium.h"
33 33
34 #include "WebFileWriter.h" 34 #include "WebFileWriter.h"
35 #include "core/fileapi/Blob.h" 35 #include "core/fileapi/Blob.h"
36 #include "modules/filesystem/AsyncFileWriterClient.h" 36 #include "modules/filesystem/AsyncFileWriterClient.h"
37 #include "public/platform/WebURL.h" 37 #include "public/platform/WebURL.h"
38 38
39 namespace WebCore { 39 namespace WebCore {
40 40
41 PassOwnPtr<AsyncFileWriterChromium> AsyncFileWriterChromium::create(AsyncFileWri terClient* client)
42 {
43 return adoptPtr(new AsyncFileWriterChromium(client));
44 }
45
41 AsyncFileWriterChromium::AsyncFileWriterChromium(AsyncFileWriterClient* client) 46 AsyncFileWriterChromium::AsyncFileWriterChromium(AsyncFileWriterClient* client)
42 : m_client(client) 47 : m_client(client)
43 { 48 {
44 } 49 }
45 50
46 AsyncFileWriterChromium::~AsyncFileWriterChromium() 51 AsyncFileWriterChromium::~AsyncFileWriterChromium()
47 { 52 {
48 } 53 }
49 54
50 void AsyncFileWriterChromium::setWebFileWriter(PassOwnPtr<WebKit::WebFileWriter> writer) 55 void AsyncFileWriterChromium::setWebFileWriter(PassOwnPtr<WebKit::WebFileWriter> writer)
(...skipping 29 matching lines...) Expand all
80 { 85 {
81 m_client->didTruncate(); 86 m_client->didTruncate();
82 } 87 }
83 88
84 void AsyncFileWriterChromium::didFail(WebKit::WebFileError error) 89 void AsyncFileWriterChromium::didFail(WebKit::WebFileError error)
85 { 90 {
86 m_client->didFail(static_cast<FileError::ErrorCode>(error)); 91 m_client->didFail(static_cast<FileError::ErrorCode>(error));
87 } 92 }
88 93
89 } // namespace 94 } // namespace
OLDNEW
« no previous file with comments | « Source/web/AsyncFileWriterChromium.h ('k') | Source/web/WebFileSystemCallbacksImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698