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

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

Issue 3012021: CommandLine: add a CopySwitchesFrom() for copying from another CommandLine (Closed)
Patch Set: minor cleanups Created 10 years, 4 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/first_run_win.cc ('k') | chrome/browser/gpu_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle, 85 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle,
86 const GPUInfo& gpu_info); 86 const GPUInfo& gpu_info);
87 void OnSynchronizeReply(); 87 void OnSynchronizeReply();
88 #if defined(OS_LINUX) 88 #if defined(OS_LINUX)
89 void OnGetViewXID(gfx::NativeViewId id, unsigned long* xid); 89 void OnGetViewXID(gfx::NativeViewId id, unsigned long* xid);
90 #endif 90 #endif
91 91
92 void ReplyToRenderer(const IPC::ChannelHandle& channel, 92 void ReplyToRenderer(const IPC::ChannelHandle& channel,
93 ResourceMessageFilter* filter); 93 ResourceMessageFilter* filter);
94 94
95 // Copies applicable command line switches from the given |browser_cmd| line
96 // flags to the output |gpu_cmd| line flags. Not all switches will be
97 // copied over.
98 void PropagateBrowserCommandLineToGpu(const CommandLine& browser_cmd,
99 CommandLine* gpu_cmd) const;
100
101 // ResourceDispatcherHost::Receiver implementation: 95 // ResourceDispatcherHost::Receiver implementation:
102 virtual URLRequestContext* GetRequestContext( 96 virtual URLRequestContext* GetRequestContext(
103 uint32 request_id, 97 uint32 request_id,
104 const ViewHostMsg_Resource_Request& request_data); 98 const ViewHostMsg_Resource_Request& request_data);
105 99
106 virtual bool CanShutdown(); 100 virtual bool CanShutdown();
107 101
108 bool initialized_; 102 bool initialized_;
109 bool initialized_successfully_; 103 bool initialized_successfully_;
110 104
111 // GPUInfo class used for collecting gpu stats 105 // GPUInfo class used for collecting gpu stats
112 GPUInfo gpu_info_; 106 GPUInfo gpu_info_;
113 107
114 // These are the channel requests that we have already sent to 108 // These are the channel requests that we have already sent to
115 // the GPU process, but haven't heard back about yet. 109 // the GPU process, but haven't heard back about yet.
116 std::queue<ChannelRequest> sent_requests_; 110 std::queue<ChannelRequest> sent_requests_;
117 111
118 // The pending synchronization requests we need to reply to. 112 // The pending synchronization requests we need to reply to.
119 std::queue<SynchronizationRequest> queued_synchronization_replies_; 113 std::queue<SynchronizationRequest> queued_synchronization_replies_;
120 114
121 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 115 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
122 }; 116 };
123 117
124 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ 118 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/first_run_win.cc ('k') | chrome/browser/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698