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

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

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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/app/BUILD.gn » ('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/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
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
OLDNEW
« no previous file with comments | « components/web_cache/renderer/DEPS ('k') | content/app/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698