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

Side by Side Diff: content/browser/webui/web_ui_impl.h

Issue 1874893002: Convert //content/browser 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 (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 #ifndef CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_
6 #define CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ 6 #define CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory>
9 #include <set> 10 #include <set>
10 11
11 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "content/public/browser/web_ui.h" 16 #include "content/public/browser/web_ui.h"
17 #include "ipc/ipc_listener.h" 17 #include "ipc/ipc_listener.h"
18 18
19 namespace content { 19 namespace content {
20 class RenderFrameHost; 20 class RenderFrameHost;
21 class RenderViewHost; 21 class RenderViewHost;
22 22
23 class CONTENT_EXPORT WebUIImpl : public WebUI, 23 class CONTENT_EXPORT WebUIImpl : public WebUI,
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // The WebUIMessageHandlers we own. 110 // The WebUIMessageHandlers we own.
111 ScopedVector<WebUIMessageHandler> handlers_; 111 ScopedVector<WebUIMessageHandler> handlers_;
112 112
113 // Non-owning pointer to the WebContents this WebUI is associated with. 113 // Non-owning pointer to the WebContents this WebUI is associated with.
114 WebContents* web_contents_; 114 WebContents* web_contents_;
115 115
116 // The name of the frame this WebUI is embedded in. If empty, the main frame 116 // The name of the frame this WebUI is embedded in. If empty, the main frame
117 // is used. 117 // is used.
118 const std::string frame_name_; 118 const std::string frame_name_;
119 119
120 scoped_ptr<WebUIController> controller_; 120 std::unique_ptr<WebUIController> controller_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(WebUIImpl); 122 DISALLOW_COPY_AND_ASSIGN(WebUIImpl);
123 }; 123 };
124 124
125 } // namespace content 125 } // namespace content
126 126
127 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ 127 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/webui/url_data_source_impl.h ('k') | content/browser/webui/web_ui_mojo_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698