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

Unified Diff: webkit/plugins/ppapi/file_path.cc

Issue 10387195: Open pepper files directly in browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
Index: webkit/plugins/ppapi/file_path.cc
===================================================================
--- webkit/plugins/ppapi/file_path.cc (revision 140544)
+++ webkit/plugins/ppapi/file_path.cc (working copy)
@@ -1,55 +0,0 @@
-// Copyright (c) 2011 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.
-
-#include "webkit/plugins/ppapi/file_path.h"
-
-#include <string>
-
-#include "webkit/plugins/ppapi/plugin_module.h"
-
-#if defined(OS_WIN)
-#include "base/utf_string_conversions.h"
-#endif
-
-namespace webkit {
-namespace ppapi {
-
-namespace {
-
-FilePath GetFilePathFromUTF8(const std::string& utf8_path) {
-#if defined(OS_WIN)
- return FilePath(UTF8ToUTF16(utf8_path));
-#else
- return FilePath(utf8_path);
-#endif
-}
-
-} // namespace
-
-PepperFilePath::PepperFilePath()
- : domain_(DOMAIN_INVALID),
- path_() {
-}
-
-PepperFilePath::PepperFilePath(Domain domain, const FilePath& path)
- : domain_(domain),
- path_(path) {
- // TODO(viettrungluu): Should we DCHECK() some things here?
-}
-
-// static
-PepperFilePath PepperFilePath::MakeAbsolute(const FilePath& path) {
- return PepperFilePath(DOMAIN_ABSOLUTE, path);
-}
-
-// static
-PepperFilePath PepperFilePath::MakeModuleLocal(PluginModule* module,
- const char* utf8_path) {
- FilePath full_path = GetFilePathFromUTF8(module->name()).Append(
- GetFilePathFromUTF8(utf8_path));
- return PepperFilePath(DOMAIN_MODULE_LOCAL, full_path);
-}
-
-} // namespace ppapi
-} // namespace webkit

Powered by Google App Engine
This is Rietveld 408576698