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

Unified Diff: webkit/glue/plugins/pepper_file_ref.h

Issue 5828003: Move the Pepper implementation from webkit/glue/plugins/pepper_* to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | « webkit/glue/plugins/pepper_file_io.cc ('k') | webkit/glue/plugins/pepper_file_ref.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_file_ref.h
===================================================================
--- webkit/glue/plugins/pepper_file_ref.h (revision 69381)
+++ webkit/glue/plugins/pepper_file_ref.h (working copy)
@@ -1,62 +0,0 @@
-// 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 WEBKIT_GLUE_PLUGINS_PEPPER_FILE_REF_H_
-#define WEBKIT_GLUE_PLUGINS_PEPPER_FILE_REF_H_
-
-#include <string>
-
-#include "base/file_path.h"
-#include "ppapi/c/dev/ppb_file_ref_dev.h"
-#include "webkit/glue/plugins/pepper_resource.h"
-
-namespace pepper {
-
-class FileSystem;
-class PluginInstance;
-class PluginModule;
-
-class FileRef : public Resource {
- public:
- FileRef();
- FileRef(PluginModule* module,
- scoped_refptr<FileSystem> file_system,
- const std::string& validated_path);
- FileRef(PluginModule* module,
- const FilePath& external_file_path);
- virtual ~FileRef();
-
- // Returns a pointer to the interface implementing PPB_FileRef that is
- // exposed to the plugin.
- static const PPB_FileRef_Dev* GetInterface();
-
- // Resource overrides.
- virtual FileRef* AsFileRef();
-
- // PPB_FileRef implementation.
- std::string GetName() const;
- scoped_refptr<FileRef> GetParent();
-
- // Returns the file system to which this FileRef belongs.
- scoped_refptr<FileSystem> GetFileSystem() const;
-
- // Returns the type of the file system to which this FileRef belongs.
- PP_FileSystemType_Dev GetFileSystemType() const;
-
- // Returns the virtual path (i.e., the path that the pepper plugin sees)
- // corresponding to this file.
- std::string GetPath() const;
-
- // Returns the system path corresponding to this file.
- FilePath GetSystemPath() const;
-
- private:
- scoped_refptr<FileSystem> file_system_;
- std::string virtual_path_; // UTF-8 encoded
- FilePath system_path_;
-};
-
-} // namespace pepper
-
-#endif // WEBKIT_GLUE_PLUGINS_PEPPER_FILE_REF_H_
« no previous file with comments | « webkit/glue/plugins/pepper_file_io.cc ('k') | webkit/glue/plugins/pepper_file_ref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698