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

Side by Side Diff: chrome_frame/chrome_frame_activex_base.h

Issue 10836116: Purge ImplementsThreadSafeReferenceCounting() from the codebase now that Task is dead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/base/view_event_test_base.h ('k') | chrome_frame/test/ie_event_sink.h » ('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) 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_ACTIVEX_BASE_H_ 5 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_
6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 #include <atlctl.h> 10 #include <atlctl.h>
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 // of this template should implement this method based on how 371 // of this template should implement this method based on how
372 // it "feels" from a security perspective. If it's hosted in another 372 // it "feels" from a security perspective. If it's hosted in another
373 // scriptable document, return true, else false. 373 // scriptable document, return true, else false.
374 // 374 //
375 // The base implementation returns true unless we are in privileged 375 // The base implementation returns true unless we are in privileged
376 // mode, in which case we always trust our container so we return false. 376 // mode, in which case we always trust our container so we return false.
377 bool is_frame_busting_enabled() const { 377 bool is_frame_busting_enabled() const {
378 return !is_privileged(); 378 return !is_privileged();
379 } 379 }
380 380
381 // Needed to support PostTask.
382 static bool ImplementsThreadSafeReferenceCounting() {
383 return true;
384 }
385
386 static void BringWebBrowserWindowToTop(IWebBrowser2* web_browser2) { 381 static void BringWebBrowserWindowToTop(IWebBrowser2* web_browser2) {
387 DCHECK(web_browser2); 382 DCHECK(web_browser2);
388 if (web_browser2) { 383 if (web_browser2) {
389 web_browser2->put_Visible(VARIANT_TRUE); 384 web_browser2->put_Visible(VARIANT_TRUE);
390 HWND ie_window = NULL; 385 HWND ie_window = NULL;
391 web_browser2->get_HWND(reinterpret_cast<long*>(&ie_window)); 386 web_browser2->get_HWND(reinterpret_cast<long*>(&ie_window));
392 ::BringWindowToTop(ie_window); 387 ::BringWindowToTop(ie_window);
393 } 388 }
394 } 389 }
395 390
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 EventHandlers onreadystatechanged_; 1219 EventHandlers onreadystatechanged_;
1225 EventHandlers onprivatemessage_; 1220 EventHandlers onprivatemessage_;
1226 EventHandlers onextensionready_; 1221 EventHandlers onextensionready_;
1227 1222
1228 // Handle network requests when host network stack is used. Passed to the 1223 // Handle network requests when host network stack is used. Passed to the
1229 // automation client on initialization. 1224 // automation client on initialization.
1230 scoped_ptr<UrlmonUrlRequestManager> url_fetcher_; 1225 scoped_ptr<UrlmonUrlRequestManager> url_fetcher_;
1231 }; 1226 };
1232 1227
1233 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ 1228 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_
OLDNEW
« no previous file with comments | « chrome/test/base/view_event_test_base.h ('k') | chrome_frame/test/ie_event_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698