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

Unified Diff: chrome/browser/file_system/file_system_dispatcher_host.h

Issue 3107026: Add IPC plumbing code for FileSystem API's openFileSystem (Closed)
Patch Set: nits fix + rebase Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/file_system/file_system_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/file_system/file_system_dispatcher_host.h
diff --git a/chrome/browser/file_system/file_system_dispatcher_host.h b/chrome/browser/file_system/file_system_dispatcher_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..dbe18a8c20d6c04faafab2286f7d73f990ca72e7
--- /dev/null
+++ b/chrome/browser/file_system/file_system_dispatcher_host.h
@@ -0,0 +1,46 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_
+#define CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_
+
+#include "base/basictypes.h"
+#include "base/nullable_string16.h"
+#include "base/process.h"
+#include "base/ref_counted.h"
+#include "chrome/common/render_messages.h"
+
+class HostContentSettingsMap;
+class Receiver;
+class ResourceMessageFilter;
+
+class FileSystemDispatcherHost
+ : public base::RefCountedThreadSafe<FileSystemDispatcherHost> {
+ public:
+ FileSystemDispatcherHost(IPC::Message::Sender* sender,
+ HostContentSettingsMap* host_content_settings_map);
+ void Init(base::ProcessHandle process_handle);
+ void Shutdown();
+
+ bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok);
+
+ void OnOpenFileSystem(const ViewHostMsg_OpenFileSystemRequest_Params&);
+ // TODO(kinuko): add more methods.
+
+ void Send(IPC::Message* message);
+
+ private:
+ // The sender to be used for sending out IPC messages.
+ IPC::Message::Sender* message_sender_;
+
+ // The handle of this process.
+ base::ProcessHandle process_handle_;
+
+ bool shutdown_;
+
+ // Used to look up permissions.
+ scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
+};
+
+#endif // CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_
« 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