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

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

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (Closed)
Patch Set: . Created 3 years, 7 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
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"
(...skipping 14 matching lines...) Expand all
25 if (content::ChildThread::Get()) { 25 if (content::ChildThread::Get()) {
26 content::ChildThread::Get() 26 content::ChildThread::Get()
27 ->GetServiceManagerConnection() 27 ->GetServiceManagerConnection()
28 ->AddConnectionFilter(base::MakeUnique<content::SimpleConnectionFilter>( 28 ->AddConnectionFilter(base::MakeUnique<content::SimpleConnectionFilter>(
29 std::move(registry))); 29 std::move(registry)));
30 } 30 }
31 } 31 }
32 32
33 WebCacheImpl::~WebCacheImpl() {} 33 WebCacheImpl::~WebCacheImpl() {}
34 34
35 void WebCacheImpl::BindRequest(mojom::WebCacheRequest web_cache_request) { 35 void WebCacheImpl::BindRequest(
36 const service_manager::BindSourceInfo& source_info,
37 mojom::WebCacheRequest web_cache_request) {
36 bindings_.AddBinding(this, std::move(web_cache_request)); 38 bindings_.AddBinding(this, std::move(web_cache_request));
37 } 39 }
38 40
39 void WebCacheImpl::ExecutePendingClearCache() { 41 void WebCacheImpl::ExecutePendingClearCache() {
40 switch (clear_cache_state_) { 42 switch (clear_cache_state_) {
41 case kInit: 43 case kInit:
42 clear_cache_state_ = kNavigate_Pending; 44 clear_cache_state_ = kNavigate_Pending;
43 break; 45 break;
44 case kNavigate_Pending: 46 case kNavigate_Pending:
45 break; 47 break;
(...skipping 23 matching lines...) Expand all
69 case kNavigate_Pending: 71 case kNavigate_Pending:
70 blink::WebCache::Clear(); 72 blink::WebCache::Clear();
71 clear_cache_state_ = kInit; 73 clear_cache_state_ = kInit;
72 break; 74 break;
73 case kClearCache_Pending: 75 case kClearCache_Pending:
74 break; 76 break;
75 } 77 }
76 } 78 }
77 79
78 } // namespace web_cache 80 } // namespace web_cache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698