OLD | NEW |
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 #include "content/browser/tab_contents/web_contents_drag_win.h" | 5 #include "content/browser/web_contents/web_contents_drag_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/pickle.h" | 14 #include "base/pickle.h" |
15 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 void WebContentsDragWin::OnDataObjectDisposed() { | 362 void WebContentsDragWin::OnDataObjectDisposed() { |
363 DCHECK(drag_drop_thread_id_ == base::PlatformThread::CurrentId()); | 363 DCHECK(drag_drop_thread_id_ == base::PlatformThread::CurrentId()); |
364 | 364 |
365 // The drag-and-drop thread is only closed after OLE is done with | 365 // The drag-and-drop thread is only closed after OLE is done with |
366 // DataObjectImpl. | 366 // DataObjectImpl. |
367 BrowserThread::PostTask( | 367 BrowserThread::PostTask( |
368 BrowserThread::UI, | 368 BrowserThread::UI, |
369 FROM_HERE, | 369 FROM_HERE, |
370 base::Bind(&WebContentsDragWin::CloseThread, this)); | 370 base::Bind(&WebContentsDragWin::CloseThread, this)); |
371 } | 371 } |
OLD | NEW |