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

Unified Diff: chrome_frame/utils.h

Issue 11048029: Allow Thread to initialize COM for Windows consumers who need it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/urlmon_url_request.cc ('k') | content/browser/renderer_host/media/media_stream_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/utils.h
===================================================================
--- chrome_frame/utils.h (revision 163371)
+++ chrome_frame/utils.h (working copy)
@@ -16,8 +16,6 @@
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/string16.h"
-#include "base/threading/thread.h"
-#include "base/win/scoped_com_initializer.h"
#include "base/win/scoped_comptr.h"
#include "googleurl/src/gurl.h"
#include "ui/gfx/rect.h"
@@ -396,32 +394,6 @@
#define COM_INTERFACE_BLIND_DELEGATE() \
COM_INTERFACE_ENTRY_FUNC_BLIND(0, CheckOutgoingInterface<_ComMapClass>)
-// Thread that enters STA and has a UI message loop.
-class STAThread : public base::Thread {
- public:
- explicit STAThread(const char *name) : Thread(name) {}
- virtual ~STAThread() {
- Stop();
- }
-
- bool Start() {
- return StartWithOptions(Options(MessageLoop::TYPE_UI, 0));
- }
-
- private:
- virtual void Init() OVERRIDE {
- com_initializer_.reset(new base::win::ScopedCOMInitializer());
- }
-
- virtual void CleanUp() OVERRIDE {
- com_initializer_.reset();
- }
-
- scoped_ptr<base::win::ScopedCOMInitializer> com_initializer_;
-
- DISALLOW_COPY_AND_ASSIGN(STAThread);
-};
-
std::wstring GuidToString(const GUID& guid);
// The urls retrieved from the IMoniker interface don't contain the anchor
« no previous file with comments | « chrome_frame/urlmon_url_request.cc ('k') | content/browser/renderer_host/media/media_stream_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698