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

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

Issue 345693002: Extensions: Split extensions utility IPC messages into its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable another test Created 6 years, 6 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 | Annotate | Revision Log
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/safe_audio_video_checker.h" 5 #include "chrome/browser/media_galleries/fileapi/safe_audio_video_checker.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/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/process/process_handle.h" 11 #include "base/process/process_handle.h"
12 #include "chrome/common/chrome_utility_messages.h" 12 #include "chrome/common/chrome_utility_messages.h"
13 #include "chrome/common/extensions/chrome_utility_extensions_messages.h"
13 #include "content/public/browser/child_process_data.h" 14 #include "content/public/browser/child_process_data.h"
14 #include "content/public/browser/utility_process_host.h" 15 #include "content/public/browser/utility_process_host.h"
15 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
16 #include "ipc/ipc_message_macros.h" 17 #include "ipc/ipc_message_macros.h"
17 #include "ipc/ipc_platform_file.h" 18 #include "ipc/ipc_platform_file.h"
18 19
19 SafeAudioVideoChecker::SafeAudioVideoChecker( 20 SafeAudioVideoChecker::SafeAudioVideoChecker(
20 base::File file, 21 base::File file,
21 const fileapi::CopyOrMoveFileValidator::ResultCallback& callback) 22 const fileapi::CopyOrMoveFileValidator::ResultCallback& callback)
22 : state_(INITIAL_STATE), 23 : state_(INITIAL_STATE),
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 bool handled = true; 79 bool handled = true;
79 IPC_BEGIN_MESSAGE_MAP(SafeAudioVideoChecker, message) 80 IPC_BEGIN_MESSAGE_MAP(SafeAudioVideoChecker, message)
80 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_ProcessStarted, 81 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_ProcessStarted,
81 OnProcessStarted) 82 OnProcessStarted)
82 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_CheckMediaFile_Finished, 83 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_CheckMediaFile_Finished,
83 OnCheckingFinished) 84 OnCheckingFinished)
84 IPC_MESSAGE_UNHANDLED(handled = false) 85 IPC_MESSAGE_UNHANDLED(handled = false)
85 IPC_END_MESSAGE_MAP() 86 IPC_END_MESSAGE_MAP()
86 return handled; 87 return handled;
87 } 88 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698