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

Side by Side Diff: chrome_frame/chrome_frame_automation.h

Issue 12741012: base: Support setting thread priorities generically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove static initializers. Created 7 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_FRAME_CHROME_FRAME_AUTOMATION_H_ 5 #ifndef CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_
6 #define CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ 6 #define CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlwin.h> 9 #include <atlwin.h>
10 #include <map> 10 #include <map>
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 LaunchDelegate* delegate); 219 LaunchDelegate* delegate);
220 220
221 ~AutomationProxyCacheEntry(); 221 ~AutomationProxyCacheEntry();
222 222
223 void AddDelegate(LaunchDelegate* delegate); 223 void AddDelegate(LaunchDelegate* delegate);
224 void RemoveDelegate(LaunchDelegate* delegate, base::WaitableEvent* done, 224 void RemoveDelegate(LaunchDelegate* delegate, base::WaitableEvent* done,
225 bool* was_last_delegate); 225 bool* was_last_delegate);
226 226
227 DWORD WaitForThread(DWORD timeout) { // NOLINT 227 DWORD WaitForThread(DWORD timeout) { // NOLINT
228 DCHECK(thread_.get()); 228 DCHECK(thread_.get());
229 return ::WaitForSingleObject(thread_->thread_handle(), timeout); 229 return ::WaitForSingleObject(thread_->thread_handle().platform_handle(),
230 timeout);
230 } 231 }
231 232
232 bool IsSameProfile(const std::wstring& name) const { 233 bool IsSameProfile(const std::wstring& name) const {
233 return lstrcmpiW(name.c_str(), profile_name.c_str()) == 0; 234 return lstrcmpiW(name.c_str(), profile_name.c_str()) == 0;
234 } 235 }
235 236
236 base::Thread* thread() const { 237 base::Thread* thread() const {
237 return thread_.get(); 238 return thread_.get();
238 } 239 }
239 240
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 // set to true if the host needs to get notified of all top level navigations 511 // set to true if the host needs to get notified of all top level navigations
511 // in this page. This typically applies to hosts which would render the new 512 // in this page. This typically applies to hosts which would render the new
512 // page without chrome frame. Defaults to false. 513 // page without chrome frame. Defaults to false.
513 bool route_all_top_level_navigations_; 514 bool route_all_top_level_navigations_;
514 515
515 friend class BeginNavigateContext; 516 friend class BeginNavigateContext;
516 friend class CreateExternalTabContext; 517 friend class CreateExternalTabContext;
517 }; 518 };
518 519
519 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ 520 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_job.cc ('k') | content/renderer/media/webrtc_local_audio_track_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698