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

Side by Side Diff: content/shell/browser/layout_test/layout_test_javascript_dialog_manager.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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 CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAGER_ H_ 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAGER_ H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAGER_ H_ 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAGER_ H_
7 7
8 #include <memory>
9
8 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "content/shell/browser/shell_javascript_dialog_manager.h" 13 #include "content/shell/browser/shell_javascript_dialog_manager.h"
13 14
14 namespace content { 15 namespace content {
15 16
16 class LayoutTestJavaScriptDialogManager : public ShellJavaScriptDialogManager { 17 class LayoutTestJavaScriptDialogManager : public ShellJavaScriptDialogManager {
17 public: 18 public:
18 LayoutTestJavaScriptDialogManager(); 19 LayoutTestJavaScriptDialogManager();
19 ~LayoutTestJavaScriptDialogManager() override; 20 ~LayoutTestJavaScriptDialogManager() override;
20 21
21 // JavaScriptDialogManager: 22 // JavaScriptDialogManager:
22 void RunJavaScriptDialog(WebContents* web_contents, 23 void RunJavaScriptDialog(WebContents* web_contents,
23 const GURL& origin_url, 24 const GURL& origin_url,
24 JavaScriptMessageType javascript_message_type, 25 JavaScriptMessageType javascript_message_type,
25 const base::string16& message_text, 26 const base::string16& message_text,
26 const base::string16& default_prompt_text, 27 const base::string16& default_prompt_text,
27 const DialogClosedCallback& callback, 28 const DialogClosedCallback& callback,
28 bool* did_suppress_message) override; 29 bool* did_suppress_message) override;
29 30
30 void RunBeforeUnloadDialog(WebContents* web_contents, 31 void RunBeforeUnloadDialog(WebContents* web_contents,
31 bool is_reload, 32 bool is_reload,
32 const DialogClosedCallback& callback) override; 33 const DialogClosedCallback& callback) override;
33 34
34 private: 35 private:
35 DISALLOW_COPY_AND_ASSIGN(LayoutTestJavaScriptDialogManager); 36 DISALLOW_COPY_AND_ASSIGN(LayoutTestJavaScriptDialogManager);
36 }; 37 };
37 38
38 } // namespace content 39 } // namespace content
39 40
40 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAG ER_H_ 41 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAG ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698