Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: components/web_cache/renderer/web_cache_impl.cc

Issue 2675303004: Move WebCache from public/web into public/platform (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/web_cache/renderer/DEPS ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/web_cache/renderer/DEPS ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698