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

Unified Diff: chrome/browser/renderer_host/pepper_file_message_filter.h

Issue 6532073: Move core pieces of browser\renderer_host to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/pepper_file_message_filter.h
===================================================================
--- chrome/browser/renderer_host/pepper_file_message_filter.h (revision 75488)
+++ chrome/browser/renderer_host/pepper_file_message_filter.h (working copy)
@@ -6,67 +6,7 @@
#define CHROME_BROWSER_RENDERER_HOST_PEPPER_FILE_MESSAGE_FILTER_H_
#pragma once
-#include <string>
-#include <vector>
+// TODO(jam): remove this file when all files have been converted.
+#include "content/browser/renderer_host/pepper_file_message_filter.h"
-#include "base/file_path.h"
-#include "base/process.h"
-#include "base/ref_counted.h"
-#include "base/task.h"
-#include "build/build_config.h"
-#include "chrome/browser/browser_message_filter.h"
-#include "ipc/ipc_platform_file.h"
-#include "webkit/plugins/ppapi/dir_contents.h"
-
-class Profile;
-
-// A message filter for Pepper-specific File I/O messages.
-class PepperFileMessageFilter : public BrowserMessageFilter {
- public:
- PepperFileMessageFilter(int child_id, Profile* profile);
-
- // BrowserMessageFilter methods:
- virtual void OverrideThreadForMessage(const IPC::Message& message,
- BrowserThread::ID* thread);
- virtual bool OnMessageReceived(const IPC::Message& message,
- bool* message_was_ok);
- virtual void OnDestruct() const;
-
- private:
- friend class BrowserThread;
- friend class DeleteTask<PepperFileMessageFilter>;
- virtual ~PepperFileMessageFilter();
-
- // Called on the FILE thread:
- void OnPepperOpenFile(const FilePath& path,
- int flags,
- base::PlatformFileError* error,
- IPC::PlatformFileForTransit* file);
- void OnPepperRenameFile(const FilePath& path_from,
- const FilePath& path_to,
- base::PlatformFileError* error);
- void OnPepperDeleteFileOrDir(const FilePath& path,
- bool recursive,
- base::PlatformFileError* error);
- void OnPepperCreateDir(const FilePath& path,
- base::PlatformFileError* error);
- void OnPepperQueryFile(const FilePath& path,
- base::PlatformFileInfo* info,
- base::PlatformFileError* error);
- void OnPepperGetDirContents(const FilePath& path,
- webkit::ppapi::DirContents* contents,
- base::PlatformFileError* error);
-
- FilePath MakePepperPath(const FilePath& base_path);
-
- // The channel associated with the renderer connection. This pointer is not
- // owned by this class.
- IPC::Channel* channel_;
-
- // The base path for the pepper data.
- FilePath pepper_path_;
-
- DISALLOW_COPY_AND_ASSIGN(PepperFileMessageFilter);
-};
-
#endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_FILE_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698