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

Side by Side Diff: content/browser/ppapi_plugin_process_host.h

Issue 8759013: Dispatch the Windows font caching IPCs in one filter. This avoids having the code that calls thos... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <queue> 9 #include <queue>
10 10
11 #if defined(OS_WIN)
12 #include <windows.h>
13 #endif
14
15 #include "base/basictypes.h" 11 #include "base/basictypes.h"
16 #include "base/file_path.h" 12 #include "base/file_path.h"
17 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
18 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
19 #include "content/browser/browser_child_process_host.h" 15 #include "content/browser/browser_child_process_host.h"
20 #include "content/browser/renderer_host/pepper_message_filter.h" 16 #include "content/browser/renderer_host/pepper_message_filter.h"
21 17
22 namespace content { 18 namespace content {
23 struct PepperPluginInfo; 19 struct PepperPluginInfo;
24 class ResourceContext; 20 class ResourceContext;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 virtual void OnProcessLaunched() OVERRIDE; 86 virtual void OnProcessLaunched() OVERRIDE;
91 87
92 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 88 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
93 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 89 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
94 virtual void OnChannelError() OVERRIDE; 90 virtual void OnChannelError() OVERRIDE;
95 91
96 void CancelRequests(); 92 void CancelRequests();
97 93
98 // IPC message handlers. 94 // IPC message handlers.
99 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); 95 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle);
100 #if defined(OS_WIN)
101 void OnPreCacheFont(const LOGFONT& font);
102 #endif
103 96
104 // Handles most requests from the plugin. May be NULL. 97 // Handles most requests from the plugin. May be NULL.
105 scoped_refptr<PepperMessageFilter> filter_; 98 scoped_refptr<PepperMessageFilter> filter_;
106 99
107 // Observes network changes. May be NULL. 100 // Observes network changes. May be NULL.
108 scoped_ptr<PluginNetworkObserver> network_observer_; 101 scoped_ptr<PluginNetworkObserver> network_observer_;
109 102
110 // Channel requests that we are waiting to send to the plugin process once 103 // Channel requests that we are waiting to send to the plugin process once
111 // the channel is opened. 104 // the channel is opened.
112 std::vector<Client*> pending_requests_; 105 std::vector<Client*> pending_requests_;
113 106
114 // Channel requests that we have already sent to the plugin process, but 107 // Channel requests that we have already sent to the plugin process, but
115 // haven't heard back about yet. 108 // haven't heard back about yet.
116 std::queue<Client*> sent_requests_; 109 std::queue<Client*> sent_requests_;
117 110
118 // Path to the plugin library. 111 // Path to the plugin library.
119 FilePath plugin_path_; 112 FilePath plugin_path_;
120 113
121 const bool is_broker_; 114 const bool is_broker_;
122 115
123 // The unique id created for the process. 116 // The unique id created for the process.
124 int process_id_; 117 int process_id_;
125 118
126 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); 119 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost);
127 }; 120 };
128 121
129 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 122 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
130 123
OLDNEW
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698