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 "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" |
(...skipping 19 matching lines...) Expand all Loading... |
30 // pickle is transfered to the WrappedPickleIOBuffer object. | 30 // pickle is transfered to the WrappedPickleIOBuffer object. |
31 class WrappedPickleIOBuffer : public net::WrappedIOBuffer { | 31 class WrappedPickleIOBuffer : public net::WrappedIOBuffer { |
32 public: | 32 public: |
33 explicit WrappedPickleIOBuffer(const Pickle* pickle) : | 33 explicit WrappedPickleIOBuffer(const Pickle* pickle) : |
34 net::WrappedIOBuffer(reinterpret_cast<const char*>(pickle->data())), | 34 net::WrappedIOBuffer(reinterpret_cast<const char*>(pickle->data())), |
35 pickle_(pickle) { | 35 pickle_(pickle) { |
36 DCHECK(pickle->data()); | 36 DCHECK(pickle->data()); |
37 } | 37 } |
38 | 38 |
39 private: | 39 private: |
40 virtual ~WrappedPickleIOBuffer() {} | 40 ~WrappedPickleIOBuffer() override {} |
41 | 41 |
42 scoped_ptr<const Pickle> pickle_; | 42 scoped_ptr<const Pickle> pickle_; |
43 }; | 43 }; |
44 | 44 |
45 } // anon namespace | 45 } // anon namespace |
46 | 46 |
47 | 47 |
48 // AppCacheResponseInfo ---------------------------------------------- | 48 // AppCacheResponseInfo ---------------------------------------------- |
49 | 49 |
50 AppCacheResponseInfo::AppCacheResponseInfo( | 50 AppCacheResponseInfo::AppCacheResponseInfo( |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 content | 423 } // namespace content |
OLD | NEW |