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

Side by Side Diff: content/browser/renderer_host/file_utilities_message_filter.h

Issue 145303002: Convert Media Galleries to use base::File (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_FILE_UTILITIES_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_FILE_UTILITIES_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_FILE_UTILITIES_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_FILE_UTILITIES_MESSAGE_FILTER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/files/file.h"
9 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
10 #include "content/public/browser/browser_message_filter.h" 11 #include "content/public/browser/browser_message_filter.h"
11 #include "ipc/ipc_platform_file.h"
12
13 namespace base {
14 struct PlatformFileInfo;
15 }
16 12
17 namespace IPC { 13 namespace IPC {
18 class Message; 14 class Message;
19 } 15 }
20 16
21 namespace content { 17 namespace content {
22 18
23 class FileUtilitiesMessageFilter : public BrowserMessageFilter { 19 class FileUtilitiesMessageFilter : public BrowserMessageFilter {
24 public: 20 public:
25 explicit FileUtilitiesMessageFilter(int process_id); 21 explicit FileUtilitiesMessageFilter(int process_id);
26 22
27 // BrowserMessageFilter implementation. 23 // BrowserMessageFilter implementation.
28 virtual void OverrideThreadForMessage( 24 virtual void OverrideThreadForMessage(
29 const IPC::Message& message, 25 const IPC::Message& message,
30 BrowserThread::ID* thread) OVERRIDE; 26 BrowserThread::ID* thread) OVERRIDE;
31 virtual bool OnMessageReceived(const IPC::Message& message, 27 virtual bool OnMessageReceived(const IPC::Message& message,
32 bool* message_was_ok) OVERRIDE; 28 bool* message_was_ok) OVERRIDE;
33 private: 29 private:
34 virtual ~FileUtilitiesMessageFilter(); 30 virtual ~FileUtilitiesMessageFilter();
35 31
36 typedef void (*FileInfoWriteFunc)(IPC::Message* reply_msg, 32 typedef void (*FileInfoWriteFunc)(IPC::Message* reply_msg,
37 const base::PlatformFileInfo& file_info); 33 const base::File::Info& file_info);
38 34
39 void OnGetFileInfo(const base::FilePath& path, 35 void OnGetFileInfo(const base::FilePath& path,
40 base::PlatformFileInfo* result, 36 base::File::Info* result,
41 base::PlatformFileError* status); 37 base::File::Error* status);
42 38
43 // The ID of this process. 39 // The ID of this process.
44 int process_id_; 40 int process_id_;
45 41
46 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilitiesMessageFilter); 42 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilitiesMessageFilter);
47 }; 43 };
48 44
49 } // namespace content 45 } // namespace content
50 46
51 #endif // CONTENT_BROWSER_RENDERER_HOST_FILE_UTILITIES_MESSAGE_FILTER_H_ 47 #endif // CONTENT_BROWSER_RENDERER_HOST_FILE_UTILITIES_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698