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

Side by Side Diff: chrome/browser/media_galleries/fileapi/supported_audio_video_checker.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_audio_video_checker.h " 5 #include "chrome/browser/media_galleries/fileapi/supported_audio_video_checker.h "
6 6
7 #include <stddef.h>
8
7 #include <set> 9 #include <set>
8 #include <vector> 10 #include <vector>
9 11
10 #include "base/bind.h" 12 #include "base/bind.h"
11 #include "base/callback.h" 13 #include "base/callback.h"
12 #include "base/lazy_instance.h" 14 #include "base/lazy_instance.h"
13 #include "base/location.h" 15 #include "base/location.h"
14 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/macros.h"
15 #include "base/stl_util.h" 18 #include "base/stl_util.h"
16 #include "chrome/browser/media_galleries/fileapi/safe_audio_video_checker.h" 19 #include "chrome/browser/media_galleries/fileapi/safe_audio_video_checker.h"
17 #include "components/mime_util/mime_util.h" 20 #include "components/mime_util/mime_util.h"
18 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
19 #include "net/base/mime_util.h" 22 #include "net/base/mime_util.h"
20 23
21 namespace { 24 namespace {
22 25
23 class SupportedAudioVideoExtensions { 26 class SupportedAudioVideoExtensions {
24 public: 27 public:
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void SupportedAudioVideoChecker::OnFileOpen(base::File file) { 89 void SupportedAudioVideoChecker::OnFileOpen(base::File file) {
87 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); 90 DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
88 if (!file.IsValid()) { 91 if (!file.IsValid()) {
89 callback_.Run(base::File::FILE_ERROR_SECURITY); 92 callback_.Run(base::File::FILE_ERROR_SECURITY);
90 return; 93 return;
91 } 94 }
92 95
93 safe_checker_ = new SafeAudioVideoChecker(file.Pass(), callback_); 96 safe_checker_ = new SafeAudioVideoChecker(file.Pass(), callback_);
94 safe_checker_->Start(); 97 safe_checker_->Start();
95 } 98 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698