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

Side by Side Diff: ios/chrome/browser/snapshots/snapshot_cache.mm

Issue 940033003: Cleanup iOS upstreamed code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dom_distiller
Patch Set: Rebase Created 5 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #import "ios/chrome/browser/snapshots/snapshot_cache.h" 5 #import "ios/chrome/browser/snapshots/snapshot_cache.h"
6 6
7 #import <UIKit/UIKit.h> 7 #import <UIKit/UIKit.h>
8 8
9 #include "base/critical_closure.h" 9 #include "base/critical_closure.h"
10 #include "base/mac/bind_objc_block.h" 10 #include "base/mac/bind_objc_block.h"
11 #include "base/files/file_enumerator.h" 11 #include "base/files/file_enumerator.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
14 #include "base/location.h" 14 #include "base/location.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/mac/bind_objc_block.h" 16 #include "base/mac/bind_objc_block.h"
17 #include "base/mac/scoped_cftyperef.h" 17 #include "base/mac/scoped_cftyperef.h"
18 #include "base/strings/sys_string_conversions.h" 18 #include "base/strings/sys_string_conversions.h"
19 #include "base/task_runner_util.h" 19 #include "base/task_runner_util.h"
20 #include "base/threading/thread_restrictions.h" 20 #include "base/threading/thread_restrictions.h"
21 #include "ios/chrome/browser/ui/ui_util.h" 21 #include "ios/chrome/browser/ui/ui_util.h"
22 #import "ios/chrome/browser/ui/uikit_ui_util.h" 22 #import "ios/chrome/browser/ui/uikit_ui_util.h"
23 #include "ios/public/consumer/base/util.h"
24 #include "ios/web/public/web_thread.h" 23 #include "ios/web/public/web_thread.h"
25 24
26 @interface SnapshotCache () 25 @interface SnapshotCache ()
27 + (base::FilePath)imagePathForSessionID:(NSString*)sessionID; 26 + (base::FilePath)imagePathForSessionID:(NSString*)sessionID;
28 + (base::FilePath)greyImagePathForSessionID:(NSString*)sessionID; 27 + (base::FilePath)greyImagePathForSessionID:(NSString*)sessionID;
29 // Returns the directory where the thumbnails are saved. 28 // Returns the directory where the thumbnails are saved.
30 + (base::FilePath)cacheDirectory; 29 + (base::FilePath)cacheDirectory;
31 // Returns the directory where the thumbnails were stored in M28 and earlier. 30 // Returns the directory where the thumbnails were stored in M28 and earlier.
32 - (base::FilePath)oldCacheDirectory; 31 - (base::FilePath)oldCacheDirectory;
33 // Remove all UIImages from |imageDictionary_|. 32 // Remove all UIImages from |imageDictionary_|.
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 backgroundingImageSessionId_.reset(); 484 backgroundingImageSessionId_.reset();
486 } 485 }
487 } 486 }
488 487
489 web::WebThread::PostBlockingPoolTask( 488 web::WebThread::PostBlockingPoolTask(
490 FROM_HERE, base::Bind(&ConvertAndSaveGreyImage, colorImagePath, 489 FROM_HERE, base::Bind(&ConvertAndSaveGreyImage, colorImagePath,
491 greyImagePath, backgroundingColorImage_)); 490 greyImagePath, backgroundingColorImage_));
492 } 491 }
493 492
494 @end 493 @end
OLDNEW
« no previous file with comments | « components/policy/core/common/policy_loader_ios_unittest.mm ('k') | ios/chrome/browser/ui/uikit_ui_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698