| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_SHOW_PARAMS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_SHOW_PARAMS_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_SHOW_PARAMS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_SHOW_PARAMS_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
| 11 | 12 |
| 12 class NativeWindowTracker; | 13 class NativeWindowTracker; |
| 13 class Profile; | 14 class Profile; |
| 14 | 15 |
| 15 namespace content { | 16 namespace content { |
| 16 class WebContents; | 17 class WebContents; |
| 17 } | 18 } |
| 18 | 19 |
| 19 // Parameters to show an install prompt dialog. The parameters control: | 20 // Parameters to show an install prompt dialog. The parameters control: |
| (...skipping 28 matching lines...) Expand all Loading... |
| 48 | 49 |
| 49 private: | 50 private: |
| 50 void WebContentsDestroyed(); | 51 void WebContentsDestroyed(); |
| 51 | 52 |
| 52 Profile* profile_; | 53 Profile* profile_; |
| 53 content::WebContents* parent_web_contents_; | 54 content::WebContents* parent_web_contents_; |
| 54 bool parent_web_contents_destroyed_; | 55 bool parent_web_contents_destroyed_; |
| 55 gfx::NativeWindow parent_window_; | 56 gfx::NativeWindow parent_window_; |
| 56 | 57 |
| 57 class WebContentsDestructionObserver; | 58 class WebContentsDestructionObserver; |
| 58 scoped_ptr<WebContentsDestructionObserver> web_contents_destruction_observer_; | 59 std::unique_ptr<WebContentsDestructionObserver> |
| 60 web_contents_destruction_observer_; |
| 59 | 61 |
| 60 scoped_ptr<NativeWindowTracker> native_window_tracker_; | 62 std::unique_ptr<NativeWindowTracker> native_window_tracker_; |
| 61 | 63 |
| 62 DISALLOW_COPY_AND_ASSIGN(ExtensionInstallPromptShowParams); | 64 DISALLOW_COPY_AND_ASSIGN(ExtensionInstallPromptShowParams); |
| 63 }; | 65 }; |
| 64 | 66 |
| 65 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_SHOW_PARAMS_H_ | 67 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_SHOW_PARAMS_H_ |
| OLD | NEW |