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

Unified Diff: chrome/browser/resource_message_filter.h

Issue 14142: Start using the proxy resolve IPC for plugins.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 | « chrome/browser/plugin_process_host.cc ('k') | chrome/browser/resource_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resource_message_filter.h
===================================================================
--- chrome/browser/resource_message_filter.h (revision 8931)
+++ chrome/browser/resource_message_filter.h (working copy)
@@ -11,6 +11,7 @@
#include "base/gfx/native_widget_types.h"
#include "base/ref_counted.h"
#include "build/build_config.h"
+#include "chrome/browser/net/resolve_proxy_msg_helper.h"
#include "chrome/browser/renderer_host/resource_dispatcher_host.h"
#include "chrome/common/ipc_channel_proxy.h"
#include "chrome/common/notification_service.h"
@@ -43,7 +44,8 @@
class ResourceMessageFilter : public IPC::ChannelProxy::MessageFilter,
public ResourceDispatcherHost::Receiver,
- public NotificationObserver {
+ public NotificationObserver,
+ public ResolveProxyMsgHelper::Delegate {
public:
// Create the filter.
// Note: because the lifecycle of the ResourceMessageFilter is not
@@ -157,6 +159,13 @@
base::SharedMemoryHandle* browser_handle);
void OnResourceTypeStats(const CacheManager::ResourceTypeStats& stats);
+ void OnResolveProxy(const GURL& url, IPC::Message* reply_msg);
+
+ // ResolveProxyMsgHelper::Delegate implementation:
+ virtual void OnResolveProxyCompleted(IPC::Message* reply_msg,
+ int result,
+ const std::string& proxy_list);
+
// A javascript code requested to print the current page. This is done in two
// steps and this is the first step. Get the print setting right here
// synchronously. It will hang the I/O completely.
@@ -204,6 +213,10 @@
// Our spellchecker object.
scoped_refptr<SpellChecker> spellchecker_;
+ // Helper class for handling PluginProcessHost_ResolveProxy messages (manages
+ // the requests to the proxy service).
+ ResolveProxyMsgHelper resolve_proxy_msg_helper_;
+
// Process handle of the renderer process.
base::ProcessHandle render_handle_;
« no previous file with comments | « chrome/browser/plugin_process_host.cc ('k') | chrome/browser/resource_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698