OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_NACL_BROWSER_PNACL_TRANSLATION_CACHE_H_ | 5 #ifndef COMPONENTS_NACL_BROWSER_PNACL_TRANSLATION_CACHE_H_ |
6 #define COMPONENTS_NACL_BROWSER_PNACL_TRANSLATION_CACHE_H_ | 6 #define COMPONENTS_NACL_BROWSER_PNACL_TRANSLATION_CACHE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "net/base/cache_type.h" | 14 #include "net/base/cache_type.h" |
15 | 15 |
16 namespace base { | |
17 class MessageLoopProxy; | |
18 } | |
19 | |
20 namespace disk_cache { | 16 namespace disk_cache { |
21 class Backend; | 17 class Backend; |
22 } | 18 } |
23 | 19 |
24 namespace nacl { | 20 namespace nacl { |
25 struct PnaclCacheInfo; | 21 struct PnaclCacheInfo; |
26 } | 22 } |
27 | 23 |
28 namespace net { | 24 namespace net { |
29 class DrainableIOBuffer; | 25 class DrainableIOBuffer; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 CompletionCallback init_callback_; | 93 CompletionCallback init_callback_; |
98 bool in_memory_; | 94 bool in_memory_; |
99 std::map<void*, scoped_refptr<PnaclTranslationCacheEntry> > open_entries_; | 95 std::map<void*, scoped_refptr<PnaclTranslationCacheEntry> > open_entries_; |
100 | 96 |
101 DISALLOW_COPY_AND_ASSIGN(PnaclTranslationCache); | 97 DISALLOW_COPY_AND_ASSIGN(PnaclTranslationCache); |
102 }; | 98 }; |
103 | 99 |
104 } // namespace pnacl | 100 } // namespace pnacl |
105 | 101 |
106 #endif // COMPONENTS_NACL_BROWSER_PNACL_TRANSLATION_CACHE_H_ | 102 #endif // COMPONENTS_NACL_BROWSER_PNACL_TRANSLATION_CACHE_H_ |
OLD | NEW |