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

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

Issue 10667026: Start consolidating cross-port file selection code into ui/base/dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_CHROME_SELECT_FILE_POLICY_H_
6 #define CHROME_BROWSER_UI_CHROME_SELECT_FILE_POLICY_H_
7
8 #include "base/basictypes.h"
9 #include "base/callback_forward.h"
10 #include "base/compiler_specific.h"
11 #include "ui/base/dialogs/select_file_policy.h"
12
13 namespace content {
14 class WebContents;
15 }
16
17 // A chrome specific SelectFilePolicy that checks local_state().
18 class ChromeSelectFilePolicy : public ui::SelectFilePolicy {
19 public:
20 explicit ChromeSelectFilePolicy(content::WebContents* source_contents);
sky 2012/06/28 21:01:40 Document ownership.
21 virtual ~ChromeSelectFilePolicy();
22
23 // Overridden from ui::SelectFilePolicy:
24 virtual bool CanOpenSelectFileDialog() OVERRIDE;
25 virtual void SelectFileDenied() OVERRIDE;
26
27 private:
28 content::WebContents* source_contents_;
29
30 DISALLOW_COPY_AND_ASSIGN(ChromeSelectFilePolicy);
31 };
32
33 #endif // CHROME_BROWSER_UI_CHROME_SELECT_FILE_POLICY_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/certificate_dialogs.cc ('k') | chrome/browser/ui/chrome_select_file_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698