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

Side by Side Diff: chrome/browser/platform_util_internal.h

Issue 352393002: Be explicit about target type in platform_util::OpenItem() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Chdir on Linux, Fix memory leak in test and address Mac comment. Created 5 years, 10 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 2015 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_PLATFORM_UTIL_INTERNAL_H_
6 #define CHROME_BROWSER_PLATFORM_UTIL_INTERNAL_H_
7
8 namespace base {
9 class FilePath;
10 }
11
12 namespace platform_util {
13 namespace internal {
14
15 enum OpenItemType { OPEN_FILE, OPEN_FOLDER };
16
17 // Called by platform_util.cc on desktop platforms to invoke platform specific
18 // logic to open |path| using a suitable handler. |path| has been verified to be
19 // of type |type|.
20 void PlatformOpenVerifiedItem(const base::FilePath& path, OpenItemType type);
21
22 // Prevent shell or external applications from being invoked during testing.
23 void DisableShellOperationsForTesting();
24
25 } // namespace internal
26 } // namespace platform_util
27
28 #endif // CHROME_BROWSER_PLATFORM_UTIL_INTERNAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698