| 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 #include "chrome/browser/ui/app_list/search/webstore_cache.h" | 5 #include "chrome/browser/ui/app_list/search/webstore/webstore_cache.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 | 8 |
| 9 namespace app_list { | 9 namespace app_list { |
| 10 namespace { | 10 namespace { |
| 11 | 11 |
| 12 const int kWebstoreCacheMaxSize = 100; | 12 const int kWebstoreCacheMaxSize = 100; |
| 13 const int kWebstoreCacheTimeLimitInMinutes = 1; | 13 const int kWebstoreCacheTimeLimitInMinutes = 1; |
| 14 | 14 |
| 15 } // namespace | 15 } // namespace |
| (...skipping 22 matching lines...) Expand all Loading... |
| 38 return NULL; | 38 return NULL; |
| 39 } | 39 } |
| 40 | 40 |
| 41 void WebstoreCache::Put(const std::string& query, | 41 void WebstoreCache::Put(const std::string& query, |
| 42 scoped_ptr<base::DictionaryValue> result) { | 42 scoped_ptr<base::DictionaryValue> result) { |
| 43 if (result) | 43 if (result) |
| 44 cache_.Put(query, std::make_pair(base::Time::Now(), result.release())); | 44 cache_.Put(query, std::make_pair(base::Time::Now(), result.release())); |
| 45 } | 45 } |
| 46 | 46 |
| 47 } // namespace app_list | 47 } // namespace app_list |
| OLD | NEW |