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

Side by Side Diff: chrome/browser/gpu_process_host.h

Issue 5874002: Create a ResourceMessageFilter to filter resource related IPCs. This gets ri... (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_GPU_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_GPU_PROCESS_HOST_H_
6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <queue> 9 #include <queue>
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 #endif 99 #endif
100 100
101 // Sends the response for establish channel request to the renderer. 101 // Sends the response for establish channel request to the renderer.
102 void SendEstablishChannelReply(const IPC::ChannelHandle& channel, 102 void SendEstablishChannelReply(const IPC::ChannelHandle& channel,
103 const GPUInfo& gpu_info, 103 const GPUInfo& gpu_info,
104 RenderMessageFilter* filter); 104 RenderMessageFilter* filter);
105 // Sends the response for synchronization request to the renderer. 105 // Sends the response for synchronization request to the renderer.
106 void SendSynchronizationReply(IPC::Message* reply, 106 void SendSynchronizationReply(IPC::Message* reply,
107 RenderMessageFilter* filter); 107 RenderMessageFilter* filter);
108 108
109 // ResourceDispatcherHost::Receiver implementation:
110 virtual URLRequestContext* GetRequestContext(
111 uint32 request_id,
112 const ViewHostMsg_Resource_Request& request_data);
113
114 virtual bool CanShutdown(); 109 virtual bool CanShutdown();
115 virtual void OnChildDied(); 110 virtual void OnChildDied();
116 virtual void OnProcessCrashed(int exit_code); 111 virtual void OnProcessCrashed(int exit_code);
117 112
118 bool CanLaunchGpuProcess() const; 113 bool CanLaunchGpuProcess() const;
119 bool LaunchGpuProcess(); 114 bool LaunchGpuProcess();
120 115
121 bool LoadGpuBlacklist(); 116 bool LoadGpuBlacklist();
122 117
123 bool initialized_; 118 bool initialized_;
124 bool initialized_successfully_; 119 bool initialized_successfully_;
125 120
126 scoped_ptr<GpuBlacklist> gpu_blacklist_; 121 scoped_ptr<GpuBlacklist> gpu_blacklist_;
127 122
128 // These are the channel requests that we have already sent to 123 // These are the channel requests that we have already sent to
129 // the GPU process, but haven't heard back about yet. 124 // the GPU process, but haven't heard back about yet.
130 std::queue<ChannelRequest> sent_requests_; 125 std::queue<ChannelRequest> sent_requests_;
131 126
132 // The pending synchronization requests we need to reply to. 127 // The pending synchronization requests we need to reply to.
133 std::queue<SynchronizationRequest> queued_synchronization_replies_; 128 std::queue<SynchronizationRequest> queued_synchronization_replies_;
134 129
135 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 130 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
136 }; 131 };
137 132
138 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ 133 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698