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

Unified 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: Catch up with changes to JSONStringValueSerializer and address CrOS comment Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/platform_util_chromeos.cc ('k') | chrome/browser/platform_util_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/platform_util_internal.h
diff --git a/chrome/browser/platform_util_internal.h b/chrome/browser/platform_util_internal.h
new file mode 100644
index 0000000000000000000000000000000000000000..0b93b7dcddacfe74e6ce07729351ad10cdba45e0
--- /dev/null
+++ b/chrome/browser/platform_util_internal.h
@@ -0,0 +1,29 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PLATFORM_UTIL_INTERNAL_H_
+#define CHROME_BROWSER_PLATFORM_UTIL_INTERNAL_H_
+
+#include "chrome/browser/platform_util.h"
+
+namespace base {
+class FilePath;
+}
+
+namespace platform_util {
+namespace internal {
+
+// Called by platform_util.cc on desktop platforms to invoke platform specific
+// logic to open |path| using a suitable handler. |path| has been verified to be
+// of type |type|.
+// Always called on the blocking pool.
+void PlatformOpenVerifiedItem(const base::FilePath& path, OpenItemType type);
+
+// Prevent shell or external applications from being invoked during testing.
+void DisableShellOperationsForTesting();
+
+} // namespace internal
+} // namespace platform_util
+
+#endif // CHROME_BROWSER_PLATFORM_UTIL_INTERNAL_H_
« no previous file with comments | « chrome/browser/platform_util_chromeos.cc ('k') | chrome/browser/platform_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698