OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/renderer/fileapi/webfilewriter_base.h" | 5 #include "webkit/renderer/fileapi/webfilewriter_base.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 8 #include "third_party/WebKit/public/platform/WebURL.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileError.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileError.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileWriterClient.h
" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileWriterClient.h
" |
11 #include "webkit/common/fileapi/file_system_util.h" | 11 #include "webkit/common/fileapi/file_system_util.h" |
12 | 12 |
13 namespace fileapi { | 13 namespace fileapi { |
14 | 14 |
15 WebFileWriterBase::WebFileWriterBase( | 15 WebFileWriterBase::WebFileWriterBase( |
16 const GURL& path, WebKit::WebFileWriterClient* client) | 16 const GURL& path, WebKit::WebFileWriterClient* client) |
17 : path_(path), | 17 : path_(path), |
18 client_(client), | 18 client_(client), |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 void WebFileWriterBase::FinishCancel() { | 146 void WebFileWriterBase::FinishCancel() { |
147 DCHECK(kCancelReceivedWriteResponse == cancel_state_); | 147 DCHECK(kCancelReceivedWriteResponse == cancel_state_); |
148 DCHECK(kOperationNone != operation_); | 148 DCHECK(kOperationNone != operation_); |
149 cancel_state_ = kCancelNotInProgress; | 149 cancel_state_ = kCancelNotInProgress; |
150 operation_ = kOperationNone; | 150 operation_ = kOperationNone; |
151 client_->didFail(WebKit::WebFileErrorAbort); | 151 client_->didFail(WebKit::WebFileErrorAbort); |
152 } | 152 } |
153 | 153 |
154 } // namespace fileapi | 154 } // namespace fileapi |
OLD | NEW |