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

Side by Side Diff: chrome/browser/ui/chrome_select_file_policy.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 CHROME_BROWSER_UI_CHROME_SELECT_FILE_POLICY_H_ 5 #ifndef CHROME_BROWSER_UI_CHROME_SELECT_FILE_POLICY_H_
6 #define CHROME_BROWSER_UI_CHROME_SELECT_FILE_POLICY_H_ 6 #define CHROME_BROWSER_UI_CHROME_SELECT_FILE_POLICY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "ui/shell_dialogs/select_file_policy.h" 11 #include "ui/shell_dialogs/select_file_policy.h"
12 12
13 namespace content { 13 namespace content {
14 class WebContents; 14 class WebContents;
15 } 15 }
16 16
17 // A chrome specific SelectFilePolicy that checks local_state(), and will 17 // A chrome specific SelectFilePolicy that checks local_state(), and will
18 // display an infobar on the weakly owned |source_contents|. 18 // display an infobar on the weakly owned |source_contents|.
19 class ChromeSelectFilePolicy : public ui::SelectFilePolicy { 19 class ChromeSelectFilePolicy : public ui::SelectFilePolicy {
20 public: 20 public:
21 explicit ChromeSelectFilePolicy(content::WebContents* source_contents); 21 explicit ChromeSelectFilePolicy(content::WebContents* source_contents);
22 virtual ~ChromeSelectFilePolicy(); 22 ~ChromeSelectFilePolicy() override;
23 23
24 // Overridden from ui::SelectFilePolicy: 24 // Overridden from ui::SelectFilePolicy:
25 virtual bool CanOpenSelectFileDialog() override; 25 bool CanOpenSelectFileDialog() override;
26 virtual void SelectFileDenied() override; 26 void SelectFileDenied() override;
27 27
28 // Returns true if local state allows showing file pickers. 28 // Returns true if local state allows showing file pickers.
29 static bool FileSelectDialogsAllowed(); 29 static bool FileSelectDialogsAllowed();
30 30
31 private: 31 private:
32 content::WebContents* source_contents_; 32 content::WebContents* source_contents_;
33 33
34 DISALLOW_COPY_AND_ASSIGN(ChromeSelectFilePolicy); 34 DISALLOW_COPY_AND_ASSIGN(ChromeSelectFilePolicy);
35 }; 35 };
36 36
37 #endif // CHROME_BROWSER_UI_CHROME_SELECT_FILE_POLICY_H_ 37 #endif // CHROME_BROWSER_UI_CHROME_SELECT_FILE_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698