OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SEARCH_PROVIDER_LOGOS_LOGO_CACHE_H_ | 5 #ifndef COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_CACHE_H_ |
6 #define COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_CACHE_H_ | 6 #define COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_CACHE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
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/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
14 #include "base/memory/ref_counted_memory.h" | 15 #include "base/memory/ref_counted_memory.h" |
15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
16 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
17 #include "components/search_provider_logos/logo_common.h" | 18 #include "components/search_provider_logos/logo_common.h" |
18 | 19 |
19 namespace search_provider_logos { | 20 namespace search_provider_logos { |
20 | 21 |
21 // A file-based cache for the search provider's logo. This allows clients to | 22 // A file-based cache for the search provider's logo. This allows clients to |
22 // store and retrieve a logo (of type EncodedLogo) and its associated metadata | 23 // store and retrieve a logo (of type EncodedLogo) and its associated metadata |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 117 |
117 // Ensure LogoCache is only used on a single thread. | 118 // Ensure LogoCache is only used on a single thread. |
118 base::ThreadChecker thread_checker_; | 119 base::ThreadChecker thread_checker_; |
119 | 120 |
120 DISALLOW_COPY_AND_ASSIGN(LogoCache); | 121 DISALLOW_COPY_AND_ASSIGN(LogoCache); |
121 }; | 122 }; |
122 | 123 |
123 } // namespace search_provider_logos | 124 } // namespace search_provider_logos |
124 | 125 |
125 #endif // COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_CACHE_H_ | 126 #endif // COMPONENTS_SEARCH_PROVIDER_LOGOS_LOGO_CACHE_H_ |
OLD | NEW |