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

Side by Side Diff: chrome/browser/file_system/file_system_dispatcher_host.h

Issue 3208007: Add final part of IPC plumbing for FileSystem API (Closed)
Patch Set: fixing Created 10 years, 3 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ 5 #ifndef CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_
6 #define CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ 6 #define CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/nullable_string16.h" 9 #include "base/nullable_string16.h"
10 #include "base/process.h" 10 #include "base/process.h"
(...skipping 12 matching lines...) Expand all
23 void Init(base::ProcessHandle process_handle); 23 void Init(base::ProcessHandle process_handle);
24 void Shutdown(); 24 void Shutdown();
25 25
26 bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok); 26 bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok);
27 27
28 void OnOpenFileSystem(const ViewHostMsg_OpenFileSystemRequest_Params&); 28 void OnOpenFileSystem(const ViewHostMsg_OpenFileSystemRequest_Params&);
29 void OnMove( 29 void OnMove(
30 int request_id, 30 int request_id,
31 const string16& src_path, 31 const string16& src_path,
32 const string16& dest_path); 32 const string16& dest_path);
33 33 void OnCopy(
34 // TODO(kinuko): add more methods. 34 int request_id,
35 35 const string16& src_path,
36 const string16& dest_path);
37 void OnRemove(
38 int request_id,
39 const string16& path);
40 void OnReadMetadata(
41 int request_id,
42 const string16& path);
43 void OnCreate(
44 int request_id,
45 const string16& path,
46 bool exclusive,
47 bool is_directory);
48 void OnExists(
49 int request_id,
50 const string16& path,
51 bool is_directory);
52 void OnReadDirectory(
53 int request_id,
54 const string16& path);
36 void Send(IPC::Message* message); 55 void Send(IPC::Message* message);
37 56
38 private: 57 private:
39 void Move(const string16& src, const string16& dest, int operation_id); 58 void Move(const string16& src, const string16& dest, int operation_id);
40 59
41 // The sender to be used for sending out IPC messages. 60 // The sender to be used for sending out IPC messages.
42 IPC::Message::Sender* message_sender_; 61 IPC::Message::Sender* message_sender_;
43 62
44 // The handle of this process. 63 // The handle of this process.
45 base::ProcessHandle process_handle_; 64 base::ProcessHandle process_handle_;
46 65
47 bool shutdown_; 66 bool shutdown_;
48 67
49 // Used to look up permissions. 68 // Used to look up permissions.
50 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 69 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
51 }; 70 };
52 71
53 #endif // CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ 72 #endif // CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/file_system/file_system_dispatcher_host.cc » ('j') | chrome/common/webkit_param_traits.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698