Chromium Code Reviews| OLD | NEW |
|---|---|
| 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" | |
| 11 #include "base/files/file_enumerator.h" | 10 #include "base/files/file_enumerator.h" |
| 12 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 13 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 14 #include "base/location.h" | 13 #include "base/location.h" |
| 15 #include "base/logging.h" | 14 #include "base/logging.h" |
| 16 #include "base/mac/bind_objc_block.h" | 15 #include "base/mac/bind_objc_block.h" |
| 16 #include "base/mac/bind_objc_block.h" | |
|
tapted
2015/05/19 03:31:10
heh. I guess I can delete this one. aaaand a few o
| |
| 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/web/public/web_thread.h" | 23 #include "ios/web/public/web_thread.h" |
| 24 | 24 |
| 25 @interface SnapshotCache () | 25 @interface SnapshotCache () |
| 26 + (base::FilePath)imagePathForSessionID:(NSString*)sessionID; | 26 + (base::FilePath)imagePathForSessionID:(NSString*)sessionID; |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 500 backgroundingImageSessionId_.reset(); | 500 backgroundingImageSessionId_.reset(); |
| 501 } | 501 } |
| 502 } | 502 } |
| 503 | 503 |
| 504 web::WebThread::PostBlockingPoolTask( | 504 web::WebThread::PostBlockingPoolTask( |
| 505 FROM_HERE, base::Bind(&ConvertAndSaveGreyImage, colorImagePath, | 505 FROM_HERE, base::Bind(&ConvertAndSaveGreyImage, colorImagePath, |
| 506 greyImagePath, backgroundingColorImage_)); | 506 greyImagePath, backgroundingColorImage_)); |
| 507 } | 507 } |
| 508 | 508 |
| 509 @end | 509 @end |
| OLD | NEW |