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

Side by Side Diff: ui/web_dialogs/web_dialog_web_contents_delegate.h

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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
« no previous file with comments | « ui/views_content_client/views_content_main_delegate.h ('k') | ui/wm/core/accelerator_filter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
6 #define UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_ 6 #define UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "content/public/browser/web_contents_delegate.h" 10 #include "content/public/browser/web_contents_delegate.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 bool user_gesture, 64 bool user_gesture,
65 bool* was_blocked) override; 65 bool* was_blocked) override;
66 bool IsPopupOrPanel(const content::WebContents* source) const override; 66 bool IsPopupOrPanel(const content::WebContents* source) const override;
67 bool PreHandleGestureEvent(content::WebContents* source, 67 bool PreHandleGestureEvent(content::WebContents* source,
68 const blink::WebGestureEvent& event) override; 68 const blink::WebGestureEvent& event) override;
69 69
70 private: 70 private:
71 // Weak pointer. Always an original profile. 71 // Weak pointer. Always an original profile.
72 content::BrowserContext* browser_context_; 72 content::BrowserContext* browser_context_;
73 73
74 scoped_ptr<WebContentsHandler> handler_; 74 std::unique_ptr<WebContentsHandler> handler_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(WebDialogWebContentsDelegate); 76 DISALLOW_COPY_AND_ASSIGN(WebDialogWebContentsDelegate);
77 }; 77 };
78 78
79 } // namespace ui 79 } // namespace ui
80 80
81 #endif // UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_ 81 #endif // UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views_content_client/views_content_main_delegate.h ('k') | ui/wm/core/accelerator_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698