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

Unified Diff: net/base/filename_util_internal.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 | « net/base/filename_util_icu.cc ('k') | net/base/filename_util_internal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/filename_util_internal.h
diff --git a/net/base/filename_util_internal.h b/net/base/filename_util_internal.h
deleted file mode 100644
index 0e6033439e0b138ae4fa9bc1500e19803b7b96a2..0000000000000000000000000000000000000000
--- a/net/base/filename_util_internal.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2014 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.
-
-// Functions used internally by filename_util, filename_util_icu and
-// filename_util_unsafe.
-
-#ifndef NET_BASE_FILENAME_UTIL_INTERNAL_H_
-#define NET_BASE_FILENAME_UTIL_INTERNAL_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "base/files/file_path.h"
-#include "base/strings/string16.h"
-
-class GURL;
-
-namespace net {
-
-typedef base::Callback<
- void(base::FilePath::StringType* file_name, char replace_char)>
- ReplaceIllegalCharactersCallback;
-
-void SanitizeGeneratedFileName(base::FilePath::StringType* filename,
- bool replace_trailing);
-
-bool IsShellIntegratedExtension(const base::FilePath::StringType& extension);
-
-bool IsReservedName(const base::FilePath::StringType& filename);
-
-void EnsureSafeExtension(const std::string& mime_type,
- bool ignore_extension,
- base::FilePath* file_name);
-
-bool FilePathToString16(const base::FilePath& path, base::string16* converted);
-
-// Similar to GetSuggestedFilename(), but takes callback to replace illegal
-// characters.
-base::string16 GetSuggestedFilenameImpl(
- const GURL& url,
- const std::string& content_disposition,
- const std::string& referrer_charset,
- const std::string& suggested_name,
- const std::string& mime_type,
- const std::string& default_name,
- ReplaceIllegalCharactersCallback replace_illegal_characters_callback);
-
-// Similar to GenerateFileName(), but takes callback to replace illegal
-// characters.
-base::FilePath GenerateFileNameImpl(
- const GURL& url,
- const std::string& content_disposition,
- const std::string& referrer_charset,
- const std::string& suggested_name,
- const std::string& mime_type,
- const std::string& default_name,
- ReplaceIllegalCharactersCallback replace_illegal_characters_callback);
-
-} // namespace net
-
-#endif // NET_BASE_FILENAME_UTIL_INTERNAL_H_
« no previous file with comments | « net/base/filename_util_icu.cc ('k') | net/base/filename_util_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698