OLD | NEW |
1 // Copyright (c) 2009 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/views/extensions/extension_popup.h" | 5 #include "chrome/browser/ui/views/extensions/extension_popup.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "chrome/browser/debugger/devtools_manager.h" | 9 #include "chrome/browser/debugger/devtools_manager.h" |
10 #include "chrome/browser/debugger/devtools_toggle_action.h" | 10 #include "chrome/browser/debugger/devtools_toggle_action.h" |
11 #include "chrome/browser/extensions/extension_host.h" | 11 #include "chrome/browser/extensions/extension_host.h" |
12 #include "chrome/browser/extensions/extension_process_manager.h" | 12 #include "chrome/browser/extensions/extension_process_manager.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 14 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
15 #include "chrome/browser/renderer_host/render_view_host.h" | 15 #include "chrome/browser/renderer_host/render_view_host.h" |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 DCHECK(closing_) << "ExtensionPopup to be destroyed before being closed."; | 437 DCHECK(closing_) << "ExtensionPopup to be destroyed before being closed."; |
438 ExtensionPopup::Observer* observer = observer_; | 438 ExtensionPopup::Observer* observer = observer_; |
439 delete this; | 439 delete this; |
440 | 440 |
441 // |this| is passed only as a 'cookie'. The observer API explicitly takes a | 441 // |this| is passed only as a 'cookie'. The observer API explicitly takes a |
442 // void* argument to emphasize this. | 442 // void* argument to emphasize this. |
443 if (observer) | 443 if (observer) |
444 observer->ExtensionPopupClosed(this); | 444 observer->ExtensionPopupClosed(this); |
445 } | 445 } |
446 } | 446 } |
OLD | NEW |