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

Side by Side Diff: content/common/fileapi/file_system_dispatcher.h

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 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 | « content/common/database_util.cc ('k') | content/common/fileapi/file_system_dispatcher.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) 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_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ 5 #ifndef CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_
6 #define CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ 6 #define CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/file_util_proxy.h" 12 #include "base/file_util_proxy.h"
13 #include "base/id_map.h" 13 #include "base/id_map.h"
14 #include "base/process.h" 14 #include "base/process.h"
15 #include "ipc/ipc_listener.h" 15 #include "ipc/ipc_listener.h"
16 #include "ipc/ipc_platform_file.h" 16 #include "ipc/ipc_platform_file.h"
17 #include "webkit/fileapi/file_system_callback_dispatcher.h" 17 #include "webkit/fileapi/file_system_callback_dispatcher.h"
18 #include "webkit/fileapi/file_system_types.h" 18 #include "webkit/fileapi/file_system_types.h"
19 19
20 namespace base { 20 namespace base {
21 struct PlatformFileInfo; 21 struct PlatformFileInfo;
22 } 22 }
23 23
24 class FilePath; 24 class FilePath;
25 class GURL; 25 class GURL;
26 26
27 namespace content {
28
27 // Dispatches and sends file system related messages sent to/from a child 29 // Dispatches and sends file system related messages sent to/from a child
28 // process from/to the main browser process. There is one instance 30 // process from/to the main browser process. There is one instance
29 // per child process. Messages are dispatched on the main child thread. 31 // per child process. Messages are dispatched on the main child thread.
30 class FileSystemDispatcher : public IPC::Listener { 32 class FileSystemDispatcher : public IPC::Listener {
31 public: 33 public:
32 FileSystemDispatcher(); 34 FileSystemDispatcher();
33 virtual ~FileSystemDispatcher(); 35 virtual ~FileSystemDispatcher();
34 36
35 // IPC::Listener implementation. 37 // IPC::Listener implementation.
36 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 38 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void OnDidWrite(int request_id, int64 bytes, bool complete); 111 void OnDidWrite(int request_id, int64 bytes, bool complete);
110 void OnDidOpenFile( 112 void OnDidOpenFile(
111 int request_id, 113 int request_id,
112 IPC::PlatformFileForTransit file); 114 IPC::PlatformFileForTransit file);
113 115
114 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; 116 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_;
115 117
116 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); 118 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher);
117 }; 119 };
118 120
121 } // namespace content
122
119 #endif // CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ 123 #endif // CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/common/database_util.cc ('k') | content/common/fileapi/file_system_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698