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