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

Unified Diff: content/browser/ppapi_plugin_process_host.h

Issue 10387195: Open pepper files directly in browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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: content/browser/ppapi_plugin_process_host.h
===================================================================
--- content/browser/ppapi_plugin_process_host.h (revision 140544)
+++ content/browser/ppapi_plugin_process_host.h (working copy)
@@ -6,12 +6,14 @@
#define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
#pragma once
+#include <string>
#include <queue>
#include "base/basictypes.h"
#include "base/file_path.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "base/memory/ref_counted.h"
+#include "content/browser/renderer_host/pepper_file_message_filter.h"
#include "content/browser/renderer_host/pepper_message_filter.h"
#include "content/public/browser/browser_child_process_host_delegate.h"
#include "content/public/browser/browser_child_process_host_iterator.h"
@@ -79,7 +81,8 @@
const FilePath& plugin_path() const { return plugin_path_; }
const FilePath& profile_data_directory() const {
- return profile_data_directory_; }
+ return profile_data_directory_;
+ }
// The client pointer must remain valid until its callback is issued.
@@ -88,7 +91,8 @@
// Constructors for plugin and broker process hosts, respectively.
// You must call Init before doing anything else.
- PpapiPluginProcessHost(const FilePath& profile_data_directory,
+ PpapiPluginProcessHost(const std::string& plugin_name,
+ const FilePath& profile_data_directory,
net::HostResolver* host_resolver);
PpapiPluginProcessHost();
@@ -112,6 +116,9 @@
// Handles most requests from the plugin. May be NULL.
scoped_refptr<PepperMessageFilter> filter_;
+ // Handles filesystem requests from flash plugins. May be NULL.
+ scoped_refptr<PepperFileMessageFilter> file_filter_;
+
// Observes network changes. May be NULL.
scoped_ptr<PluginNetworkObserver> network_observer_;

Powered by Google App Engine
This is Rietveld 408576698