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

Side by Side Diff: chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/media_galleries/fileapi/supported_image_type_validator. h" 5 #include "chrome/browser/media_galleries/fileapi/supported_image_type_validator. h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
14 #include "base/stl_util.h" 15 #include "base/stl_util.h"
15 #include "base/threading/thread_restrictions.h" 16 #include "base/threading/thread_restrictions.h"
16 #include "chrome/browser/image_decoder.h" 17 #include "chrome/browser/image_decoder.h"
17 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
18 19
19 using content::BrowserThread; 20 using content::BrowserThread;
20 21
21 namespace { 22 namespace {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 if (!data.get()) { 123 if (!data.get()) {
123 callback_.Run(base::File::FILE_ERROR_SECURITY); 124 callback_.Run(base::File::FILE_ERROR_SECURITY);
124 return; 125 return;
125 } 126 }
126 127
127 // |adapter| will delete itself after a completion message is received. 128 // |adapter| will delete itself after a completion message is received.
128 ImageDecoderDelegateAdapter* adapter = 129 ImageDecoderDelegateAdapter* adapter =
129 new ImageDecoderDelegateAdapter(data.Pass(), callback_); 130 new ImageDecoderDelegateAdapter(data.Pass(), callback_);
130 ImageDecoder::Start(adapter, adapter->data()); 131 ImageDecoder::Start(adapter, adapter->data());
131 } 132 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698