OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/tab_contents/web_drag_source_win.h" | 5 #include "content/browser/tab_contents/web_drag_source_win.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "chrome/browser/tab_contents/web_drag_utils_win.h" | |
9 #include "content/browser/renderer_host/render_view_host.h" | 8 #include "content/browser/renderer_host/render_view_host.h" |
| 9 #include "content/browser/tab_contents/web_drag_utils_win.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
11 #include "content/public/browser/notification_source.h" | 11 #include "content/public/browser/notification_source.h" |
12 #include "content/public/browser/notification_types.h" | 12 #include "content/public/browser/notification_types.h" |
13 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
14 | 14 |
15 using WebKit::WebDragOperationNone; | 15 using WebKit::WebDragOperationNone; |
16 using content::BrowserThread; | 16 using content::BrowserThread; |
17 using content::WebContents; | 17 using content::WebContents; |
18 | 18 |
19 namespace { | 19 namespace { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // That's OK, we can continue the drag, we just can't send messages back to | 117 // That's OK, we can continue the drag, we just can't send messages back to |
118 // our drag source. | 118 // our drag source. |
119 render_view_host_ = NULL; | 119 render_view_host_ = NULL; |
120 } else if (content::NOTIFICATION_WEB_CONTENTS_DISCONNECTED == type) { | 120 } else if (content::NOTIFICATION_WEB_CONTENTS_DISCONNECTED == type) { |
121 // This could be possible when we close the tab and the source is still | 121 // This could be possible when we close the tab and the source is still |
122 // being used in DoDragDrop at the time that the virtual file is being | 122 // being used in DoDragDrop at the time that the virtual file is being |
123 // downloaded. | 123 // downloaded. |
124 render_view_host_ = NULL; | 124 render_view_host_ = NULL; |
125 } | 125 } |
126 } | 126 } |
OLD | NEW |