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

Side by Side Diff: net/tools/dump_cache/simple_cache_dumper.h

Issue 20737002: Change the API of disk_cache::CreateCacheBackend to use scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix new test Created 7 years, 4 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 | « net/http/mock_http_cache.cc ('k') | net/tools/dump_cache/simple_cache_dumper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef NET_TOOLS_DUMP_CACHE_SIMPLE_CACHE_DUMPER_H_ 5 #ifndef NET_TOOLS_DUMP_CACHE_SIMPLE_CACHE_DUMPER_H_
6 #define NET_TOOLS_DUMP_CACHE_SIMPLE_CACHE_DUMPER_H_ 6 #define NET_TOOLS_DUMP_CACHE_SIMPLE_CACHE_DUMPER_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 int DoReadBodyComplete(int rv); 69 int DoReadBodyComplete(int rv);
70 int DoWriteBody(); 70 int DoWriteBody();
71 int DoWriteBodyComplete(int rv); 71 int DoWriteBodyComplete(int rv);
72 int DoDone(); 72 int DoDone();
73 73
74 void OnIOComplete(int rv); 74 void OnIOComplete(int rv);
75 75
76 State state_; 76 State state_;
77 base::FilePath input_path_; 77 base::FilePath input_path_;
78 base::FilePath output_path_; 78 base::FilePath output_path_;
79 disk_cache::Backend* cache_; 79 scoped_ptr<disk_cache::Backend> cache_;
80 scoped_ptr<DiskDumper> writer_; 80 scoped_ptr<DiskDumper> writer_;
81 base::Thread* cache_thread_; 81 base::Thread* cache_thread_;
82 void* iter_; 82 void* iter_;
83 disk_cache::Entry* src_entry_; 83 disk_cache::Entry* src_entry_;
84 disk_cache::Entry* dst_entry_; 84 disk_cache::Entry* dst_entry_;
85 CompletionCallback io_callback_; 85 CompletionCallback io_callback_;
86 scoped_refptr<IOBufferWithSize> buf_; 86 scoped_refptr<IOBufferWithSize> buf_;
87 int rv_; 87 int rv_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(SimpleCacheDumper); 89 DISALLOW_COPY_AND_ASSIGN(SimpleCacheDumper);
90 }; 90 };
91 91
92 } // namespace net 92 } // namespace net
93 93
94 #endif // NET_TOOLS_DUMP_CACHE_SIMPLE_CACHE_DUMPER_H_ 94 #endif // NET_TOOLS_DUMP_CACHE_SIMPLE_CACHE_DUMPER_H_
OLDNEW
« no previous file with comments | « net/http/mock_http_cache.cc ('k') | net/tools/dump_cache/simple_cache_dumper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698