| 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/shell/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/web/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 shell::InterfaceRegistry* registry = | 18 shell::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 } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 case kNavigate_Pending: | 66 case kNavigate_Pending: |
| 67 blink::WebCache::clear(); | 67 blink::WebCache::clear(); |
| 68 clear_cache_state_ = kInit; | 68 clear_cache_state_ = kInit; |
| 69 break; | 69 break; |
| 70 case kClearCache_Pending: | 70 case kClearCache_Pending: |
| 71 break; | 71 break; |
| 72 } | 72 } |
| 73 } | 73 } |
| 74 | 74 |
| 75 } // namespace web_cache | 75 } // namespace web_cache |
| OLD | NEW |