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

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

Issue 3245010: Revert 57915 - Add final part of IPC plumbing for FileSystem API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/file_system/file_system_dispatcher_host.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 (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 14 matching lines...) Expand all
25 void Init(base::ProcessHandle process_handle); 25 void Init(base::ProcessHandle process_handle);
26 void Shutdown(); 26 void Shutdown();
27 27
28 bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok); 28 bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok);
29 29
30 void OnOpenFileSystem(const ViewHostMsg_OpenFileSystemRequest_Params&); 30 void OnOpenFileSystem(const ViewHostMsg_OpenFileSystemRequest_Params&);
31 void OnMove( 31 void OnMove(
32 int request_id, 32 int request_id,
33 const string16& src_path, 33 const string16& src_path,
34 const string16& dest_path); 34 const string16& dest_path);
35 void OnCopy( 35
36 int request_id, 36 // TODO(kinuko): add more methods.
37 const string16& src_path, 37
38 const string16& dest_path);
39 void OnRemove(
40 int request_id,
41 const string16& path);
42 void OnReadMetadata(
43 int request_id,
44 const string16& path);
45 void OnCreate(
46 int request_id,
47 const string16& path,
48 bool exclusive,
49 bool is_directory);
50 void OnExists(
51 int request_id,
52 const string16& path,
53 bool is_directory);
54 void OnReadDirectory(
55 int request_id,
56 const string16& path);
57 void Send(IPC::Message* message); 38 void Send(IPC::Message* message);
58 39
59 private: 40 private:
60 void Move(const string16& src, const string16& dest, int operation_id); 41 void Move(const string16& src, const string16& dest, int operation_id);
61 42
62 // The sender to be used for sending out IPC messages. 43 // The sender to be used for sending out IPC messages.
63 IPC::Message::Sender* message_sender_; 44 IPC::Message::Sender* message_sender_;
64 45
65 // The handle of this process. 46 // The handle of this process.
66 base::ProcessHandle process_handle_; 47 base::ProcessHandle process_handle_;
67 48
68 bool shutdown_; 49 bool shutdown_;
69 50
70 scoped_refptr<FileSystemHostContext> context_; 51 scoped_refptr<FileSystemHostContext> context_;
71 52
72 // Used to look up permissions. 53 // Used to look up permissions.
73 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 54 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
74 }; 55 };
75 56
76 #endif // CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ 57 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698