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

Side by Side Diff: chrome/browser/media_galleries/fileapi/safe_audio_video_checker.h

Issue 2639503002: Convert utility process CheckMediaFile IPC to mojo (Closed)
Patch Set: Removed unused #include files, add TODO. Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_AUDIO_VIDEO_CHECKER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_AUDIO_VIDEO_CHECKER_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_AUDIO_VIDEO_CHECKER_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_AUDIO_VIDEO_CHECKER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "chrome/common/extensions/media_parser.mojom.h"
12 #include "content/public/browser/utility_process_host_client.h" 13 #include "content/public/browser/utility_process_host_client.h"
13 #include "storage/browser/fileapi/copy_or_move_file_validator.h" 14 #include "storage/browser/fileapi/copy_or_move_file_validator.h"
14 15
15 namespace content { 16 namespace content {
16 class UtilityProcessHost; 17 class UtilityProcessHost;
17 } 18 }
18 19
19 // Uses a utility process to validate a media file. If the callback returns 20 // Uses a utility process to validate a media file. If the callback returns
20 // File::FILE_OK, then the file appears to be a valid media file. This does 21 // File::FILE_OK, then the file appears to be a valid media file. This does
21 // not attempt to decode the entire file, which may take a considerable amount 22 // not attempt to decode the entire file, which may take a considerable amount
(...skipping 26 matching lines...) Expand all
48 bool OnMessageReceived(const IPC::Message& message) override; 49 bool OnMessageReceived(const IPC::Message& message) override;
49 50
50 State state_; 51 State state_;
51 52
52 base::File file_; 53 base::File file_;
53 54
54 const storage::CopyOrMoveFileValidator::ResultCallback callback_; 55 const storage::CopyOrMoveFileValidator::ResultCallback callback_;
55 56
56 base::WeakPtr<content::UtilityProcessHost> utility_process_host_; 57 base::WeakPtr<content::UtilityProcessHost> utility_process_host_;
57 58
59 extensions::mojom::MediaParserPtr interface_;
60
58 DISALLOW_COPY_AND_ASSIGN(SafeAudioVideoChecker); 61 DISALLOW_COPY_AND_ASSIGN(SafeAudioVideoChecker);
59 }; 62 };
60 63
61 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_AUDIO_VIDEO_CHECKER_H_ 64 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_AUDIO_VIDEO_CHECKER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698