OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "components/web_cache/browser/web_cache_manager.h" | 5 #include "components/web_cache/browser/web_cache_manager.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
15 #include "base/metrics/histogram_macros.h" | 15 #include "base/metrics/histogram_macros.h" |
16 #include "base/prefs/pref_registry_simple.h" | |
17 #include "base/prefs/pref_service.h" | |
18 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
19 #include "base/sys_info.h" | 17 #include "base/sys_info.h" |
20 #include "base/thread_task_runner_handle.h" | 18 #include "base/thread_task_runner_handle.h" |
21 #include "base/time/time.h" | 19 #include "base/time/time.h" |
| 20 #include "components/prefs/pref_registry_simple.h" |
| 21 #include "components/prefs/pref_service.h" |
22 #include "components/web_cache/common/web_cache_messages.h" | 22 #include "components/web_cache/common/web_cache_messages.h" |
23 #include "content/public/browser/notification_service.h" | 23 #include "content/public/browser/notification_service.h" |
24 #include "content/public/browser/notification_types.h" | 24 #include "content/public/browser/notification_types.h" |
25 #include "content/public/browser/render_process_host.h" | 25 #include "content/public/browser/render_process_host.h" |
26 | 26 |
27 using base::Time; | 27 using base::Time; |
28 using base::TimeDelta; | 28 using base::TimeDelta; |
29 using blink::WebCache; | 29 using blink::WebCache; |
30 | 30 |
31 namespace web_cache { | 31 namespace web_cache { |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 inactive_renderers_.insert(*iter); | 436 inactive_renderers_.insert(*iter); |
437 active_renderers_.erase(*iter); | 437 active_renderers_.erase(*iter); |
438 iter = active_renderers_.begin(); | 438 iter = active_renderers_.begin(); |
439 continue; | 439 continue; |
440 } | 440 } |
441 ++iter; | 441 ++iter; |
442 } | 442 } |
443 } | 443 } |
444 | 444 |
445 } // namespace web_cache | 445 } // namespace web_cache |
OLD | NEW |