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 "content/browser/appcache/appcache_response.h" | 5 #include "content/browser/appcache/appcache_response.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
9 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
10 #include "base/location.h" | 12 #include "base/location.h" |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
12 #include "base/numerics/safe_math.h" | 14 #include "base/numerics/safe_math.h" |
13 #include "base/pickle.h" | 15 #include "base/pickle.h" |
14 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
15 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
16 #include "base/thread_task_runner_handle.h" | 18 #include "base/thread_task_runner_handle.h" |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 } | 475 } |
474 WriteRaw(kResponseMetadataIndex, 0, buffer_.get(), write_amount_); | 476 WriteRaw(kResponseMetadataIndex, 0, buffer_.get(), write_amount_); |
475 } | 477 } |
476 | 478 |
477 void AppCacheResponseMetadataWriter::OnIOComplete(int result) { | 479 void AppCacheResponseMetadataWriter::OnIOComplete(int result) { |
478 DCHECK(result < 0 || write_amount_ == result); | 480 DCHECK(result < 0 || write_amount_ == result); |
479 InvokeUserCompletionCallback(result); | 481 InvokeUserCompletionCallback(result); |
480 } | 482 } |
481 | 483 |
482 } // namespace content | 484 } // namespace content |
OLD | NEW |