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

Side by Side Diff: net/disk_cache/simple/simple_backend_impl.h

Issue 13880016: Make SimpleEntryImpl ref counted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remediation Created 7 years, 8 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_ 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_ 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/memory/ref_counted.h"
14 #include "base/task_runner.h" 15 #include "base/task_runner.h"
15 #include "net/base/cache_type.h" 16 #include "net/base/cache_type.h"
16 #include "net/disk_cache/disk_cache.h" 17 #include "net/disk_cache/disk_cache.h"
17 18
18 namespace base { 19 namespace base {
19 class MessageLoopProxy; 20 class MessageLoopProxy;
20 } 21 }
21 22
22 namespace disk_cache { 23 namespace disk_cache {
23 24
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void InitializeIndex(const CompletionCallback& callback, int result); 73 void InitializeIndex(const CompletionCallback& callback, int result);
73 74
74 // Try to create the directory if it doesn't exist. 75 // Try to create the directory if it doesn't exist.
75 // Must run on Cache Thread. 76 // Must run on Cache Thread.
76 static void CreateDirectory( 77 static void CreateDirectory(
77 base::MessageLoopProxy* io_thread, 78 base::MessageLoopProxy* io_thread,
78 const base::FilePath& path, 79 const base::FilePath& path,
79 const InitializeIndexCallback& initialize_index_callback); 80 const InitializeIndexCallback& initialize_index_callback);
80 81
81 const base::FilePath path_; 82 const base::FilePath path_;
82 scoped_ptr<SimpleIndex> index_; 83 scoped_refptr<SimpleIndex> index_;
83 const scoped_refptr<base::TaskRunner> cache_thread_; 84 const scoped_refptr<base::TaskRunner> cache_thread_;
84 }; 85 };
85 86
86 } // namespace disk_cache 87 } // namespace disk_cache
87 88
88 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_ 89 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | net/disk_cache/simple/simple_backend_impl.cc » ('j') | net/disk_cache/simple/simple_entry_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698