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

Side by Side Diff: chrome/common/chrome_paths.cc

Issue 397243004: Pepper: Remove trusted plugin loadable module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload for recommit after chromite fix Created 6 years, 4 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
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | chrome/installer/linux/common/installer.include » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/chrome_paths.h" 5 #include "chrome/common/chrome_paths.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/mac/bundle_locations.h" 10 #include "base/mac/bundle_locations.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // File name of the internal PDF plugin on different platforms. 53 // File name of the internal PDF plugin on different platforms.
54 const base::FilePath::CharType kInternalPDFPluginFileName[] = 54 const base::FilePath::CharType kInternalPDFPluginFileName[] =
55 #if defined(OS_WIN) 55 #if defined(OS_WIN)
56 FILE_PATH_LITERAL("pdf.dll"); 56 FILE_PATH_LITERAL("pdf.dll");
57 #elif defined(OS_MACOSX) 57 #elif defined(OS_MACOSX)
58 FILE_PATH_LITERAL("PDF.plugin"); 58 FILE_PATH_LITERAL("PDF.plugin");
59 #else // Linux and Chrome OS 59 #else // Linux and Chrome OS
60 FILE_PATH_LITERAL("libpdf.so"); 60 FILE_PATH_LITERAL("libpdf.so");
61 #endif 61 #endif
62 62
63 // File name of the internal NaCl plugin on different platforms.
64 const base::FilePath::CharType kInternalNaClPluginFileName[] = 63 const base::FilePath::CharType kInternalNaClPluginFileName[] =
65 #if defined(OS_WIN) 64 FILE_PATH_LITERAL("internal-nacl-plugin");
66 FILE_PATH_LITERAL("ppGoogleNaClPluginChrome.dll");
67 #elif defined(OS_MACOSX)
68 // TODO(noelallen) Please verify this extention name is correct.
69 FILE_PATH_LITERAL("ppGoogleNaClPluginChrome.plugin");
70 #else // Linux and Chrome OS
71 FILE_PATH_LITERAL("libppGoogleNaClPluginChrome.so");
72 #endif
73 65
74 const base::FilePath::CharType kEffectsPluginFileName[] = 66 const base::FilePath::CharType kEffectsPluginFileName[] =
75 #if defined(OS_WIN) 67 #if defined(OS_WIN)
76 FILE_PATH_LITERAL("pepper/libppeffects.dll"); 68 FILE_PATH_LITERAL("pepper/libppeffects.dll");
77 #elif defined(OS_MACOSX) 69 #elif defined(OS_MACOSX)
78 FILE_PATH_LITERAL("pepper/libppeffects.plugin"); 70 FILE_PATH_LITERAL("pepper/libppeffects.plugin");
79 #else // Linux and Chrome OS 71 #else // Linux and Chrome OS
80 FILE_PATH_LITERAL("pepper/libppeffects.so"); 72 FILE_PATH_LITERAL("pepper/libppeffects.so");
81 #endif 73 #endif
82 74
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 case chrome::FILE_PDF_PLUGIN: 297 case chrome::FILE_PDF_PLUGIN:
306 if (!GetInternalPluginsDirectory(&cur)) 298 if (!GetInternalPluginsDirectory(&cur))
307 return false; 299 return false;
308 cur = cur.Append(kInternalPDFPluginFileName); 300 cur = cur.Append(kInternalPDFPluginFileName);
309 break; 301 break;
310 case chrome::FILE_EFFECTS_PLUGIN: 302 case chrome::FILE_EFFECTS_PLUGIN:
311 if (!GetInternalPluginsDirectory(&cur)) 303 if (!GetInternalPluginsDirectory(&cur))
312 return false; 304 return false;
313 cur = cur.Append(kEffectsPluginFileName); 305 cur = cur.Append(kEffectsPluginFileName);
314 break; 306 break;
307 // TODO(teravest): Remove this case once the internal NaCl plugin is gone.
308 // We currently need a path here to look up whether the plugin is disabled
309 // and what its permissions are.
315 case chrome::FILE_NACL_PLUGIN: 310 case chrome::FILE_NACL_PLUGIN:
316 if (!GetInternalPluginsDirectory(&cur)) 311 if (!GetInternalPluginsDirectory(&cur))
317 return false; 312 return false;
318 cur = cur.Append(kInternalNaClPluginFileName); 313 cur = cur.Append(kInternalNaClPluginFileName);
319 break; 314 break;
320 // PNaCl is currenly installable via the component updater or by being 315 // PNaCl is currenly installable via the component updater or by being
321 // simply built-in. DIR_PNACL_BASE is used as the base directory for 316 // simply built-in. DIR_PNACL_BASE is used as the base directory for
322 // installation via component updater. DIR_PNACL_COMPONENT will be 317 // installation via component updater. DIR_PNACL_COMPONENT will be
323 // the final location of pnacl, which is a subdir of DIR_PNACL_BASE. 318 // the final location of pnacl, which is a subdir of DIR_PNACL_BASE.
324 case chrome::DIR_PNACL_BASE: 319 case chrome::DIR_PNACL_BASE:
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 599
605 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) { 600 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) {
606 g_invalid_specified_user_data_dir.Get() = user_data_dir; 601 g_invalid_specified_user_data_dir.Get() = user_data_dir;
607 } 602 }
608 603
609 const base::FilePath& GetInvalidSpecifiedUserDataDir() { 604 const base::FilePath& GetInvalidSpecifiedUserDataDir() {
610 return g_invalid_specified_user_data_dir.Get(); 605 return g_invalid_specified_user_data_dir.Get();
611 } 606 }
612 607
613 } // namespace chrome 608 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | chrome/installer/linux/common/installer.include » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698