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

Side by Side Diff: ios/crnet/crnet_environment.mm

Issue 2270063005: Add support for time based deletion of browsing data on iOS (Closed)
Patch Set: Updated comment in AccountConsistencyService Created 4 years, 3 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 "ios/crnet/crnet_environment.h" 5 #include "ios/crnet/crnet_environment.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 main_context_->http_user_agent_settings(); 493 main_context_->http_user_agent_settings();
494 if (!user_agent_settings) { 494 if (!user_agent_settings) {
495 return nullptr; 495 return nullptr;
496 } 496 }
497 497
498 return user_agent_settings->GetUserAgent(); 498 return user_agent_settings->GetUserAgent();
499 } 499 }
500 500
501 void CrNetEnvironment::ClearCache(ClearCacheCallback callback) { 501 void CrNetEnvironment::ClearCache(ClearCacheCallback callback) {
502 PostToNetworkThread( 502 PostToNetworkThread(
503 FROM_HERE, 503 FROM_HERE, base::Bind(&net::ClearHttpCache, main_context_getter_,
504 base::Bind(&net::ClearHttpCache, main_context_getter_, 504 network_io_thread_->task_runner(), base::Time(),
505 network_io_thread_->task_runner(), base::BindBlock(callback))); 505 base::Time::Max(), base::BindBlock(callback)));
506 } 506 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/commands/clear_browsing_data_command.mm ('k') | ios/net/http_cache_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698