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/browser/appcache/appcache_response.h" | 5 #include "content/browser/appcache/appcache_response.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/pickle.h" | 12 #include "base/pickle.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 #include "content/browser/appcache/appcache_storage.h" |
14 #include "net/base/completion_callback.h" | 15 #include "net/base/completion_callback.h" |
15 #include "net/base/io_buffer.h" | 16 #include "net/base/io_buffer.h" |
16 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
17 #include "webkit/browser/appcache/appcache_storage.h" | |
18 | 18 |
19 namespace appcache { | 19 namespace content { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // Disk cache entry data indices. | 23 // Disk cache entry data indices. |
24 enum { | 24 enum { |
25 kResponseInfoIndex, | 25 kResponseInfoIndex, |
26 kResponseContentIndex | 26 kResponseContentIndex |
27 }; | 27 }; |
28 | 28 |
29 // An IOBuffer that wraps a pickle's data. Ownership of the | 29 // An IOBuffer that wraps a pickle's data. Ownership of the |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 | 413 |
414 create_callback_.Reset(); | 414 create_callback_.Reset(); |
415 } | 415 } |
416 | 416 |
417 if (info_buffer_.get()) | 417 if (info_buffer_.get()) |
418 ContinueWriteInfo(); | 418 ContinueWriteInfo(); |
419 else | 419 else |
420 ContinueWriteData(); | 420 ContinueWriteData(); |
421 } | 421 } |
422 | 422 |
423 } // namespace appcache | 423 } // namespace content |
OLD | NEW |