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

Side by Side Diff: chrome/browser/extensions/extension_install_prompt_show_params.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698