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/macros.h" |
12 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
14 #include "net/base/cache_type.h" | 15 #include "net/base/cache_type.h" |
15 | 16 |
16 namespace disk_cache { | 17 namespace disk_cache { |
17 class Backend; | 18 class Backend; |
18 } | 19 } |
19 | 20 |
20 namespace nacl { | 21 namespace nacl { |
21 struct PnaclCacheInfo; | 22 struct PnaclCacheInfo; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 CompletionCallback init_callback_; | 94 CompletionCallback init_callback_; |
94 bool in_memory_; | 95 bool in_memory_; |
95 std::map<void*, scoped_refptr<PnaclTranslationCacheEntry> > open_entries_; | 96 std::map<void*, scoped_refptr<PnaclTranslationCacheEntry> > open_entries_; |
96 | 97 |
97 DISALLOW_COPY_AND_ASSIGN(PnaclTranslationCache); | 98 DISALLOW_COPY_AND_ASSIGN(PnaclTranslationCache); |
98 }; | 99 }; |
99 | 100 |
100 } // namespace pnacl | 101 } // namespace pnacl |
101 | 102 |
102 #endif // COMPONENTS_NACL_BROWSER_PNACL_TRANSLATION_CACHE_H_ | 103 #endif // COMPONENTS_NACL_BROWSER_PNACL_TRANSLATION_CACHE_H_ |
OLD | NEW |