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 #include "components/web_cache/renderer/web_cache_impl.h" | 5 #include "components/web_cache/renderer/web_cache_impl.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/numerics/safe_conversions.h" | 10 #include "base/numerics/safe_conversions.h" |
11 #include "content/public/renderer/render_thread.h" | 11 #include "content/public/renderer/render_thread.h" |
12 #include "services/service_manager/public/cpp/interface_registry.h" | 12 #include "services/service_manager/public/cpp/interface_registry.h" |
13 #include "third_party/WebKit/public/web/WebCache.h" | 13 #include "third_party/WebKit/public/platform/WebCache.h" |
14 | 14 |
15 namespace web_cache { | 15 namespace web_cache { |
16 | 16 |
17 WebCacheImpl::WebCacheImpl() : clear_cache_state_(kInit) { | 17 WebCacheImpl::WebCacheImpl() : clear_cache_state_(kInit) { |
18 service_manager::InterfaceRegistry* registry = | 18 service_manager::InterfaceRegistry* registry = |
19 content::RenderThread::Get()->GetInterfaceRegistry(); | 19 content::RenderThread::Get()->GetInterfaceRegistry(); |
20 registry->AddInterface( | 20 registry->AddInterface( |
21 base::Bind(&WebCacheImpl::BindRequest, base::Unretained(this))); | 21 base::Bind(&WebCacheImpl::BindRequest, base::Unretained(this))); |
22 } | 22 } |
23 | 23 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 case kNavigate_Pending: | 61 case kNavigate_Pending: |
62 blink::WebCache::clear(); | 62 blink::WebCache::clear(); |
63 clear_cache_state_ = kInit; | 63 clear_cache_state_ = kInit; |
64 break; | 64 break; |
65 case kClearCache_Pending: | 65 case kClearCache_Pending: |
66 break; | 66 break; |
67 } | 67 } |
68 } | 68 } |
69 | 69 |
70 } // namespace web_cache | 70 } // namespace web_cache |
OLD | NEW |