OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_content_client.h" | 5 #include "chrome/common/chrome_content_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 const char* kPDFPluginExtension = "pdf"; | 37 const char* kPDFPluginExtension = "pdf"; |
38 const char* kPDFPluginDescription = "Portable Document Format"; | 38 const char* kPDFPluginDescription = "Portable Document Format"; |
39 const char* kPDFPluginPrintPreviewMimeType | 39 const char* kPDFPluginPrintPreviewMimeType |
40 = "application/x-google-chrome-print-preview-pdf"; | 40 = "application/x-google-chrome-print-preview-pdf"; |
41 | 41 |
42 const char* kNaClPluginName = "Native Client"; | 42 const char* kNaClPluginName = "Native Client"; |
43 const char* kNaClPluginMimeType = "application/x-nacl"; | 43 const char* kNaClPluginMimeType = "application/x-nacl"; |
44 const char* kNaClPluginExtension = "nexe"; | 44 const char* kNaClPluginExtension = "nexe"; |
45 const char* kNaClPluginDescription = "Native Client Executable"; | 45 const char* kNaClPluginDescription = "Native Client Executable"; |
46 | 46 |
| 47 const char* kNaClOldPluginName = "Chrome NaCl"; |
| 48 |
47 #if defined(ENABLE_REMOTING) | 49 #if defined(ENABLE_REMOTING) |
48 const char* kRemotingViewerPluginName = "Remoting Viewer"; | 50 const char* kRemotingViewerPluginName = "Remoting Viewer"; |
49 const FilePath::CharType kRemotingViewerPluginPath[] = | 51 const FilePath::CharType kRemotingViewerPluginPath[] = |
50 FILE_PATH_LITERAL("internal-remoting-viewer"); | 52 FILE_PATH_LITERAL("internal-remoting-viewer"); |
51 // Use a consistent MIME-type regardless of branding. | 53 // Use a consistent MIME-type regardless of branding. |
52 const char* kRemotingViewerPluginMimeType = | 54 const char* kRemotingViewerPluginMimeType = |
53 "application/vnd.chromium.remoting-viewer"; | 55 "application/vnd.chromium.remoting-viewer"; |
54 // TODO(wez): Remove the old MIME-type once client code no longer needs it. | 56 // TODO(wez): Remove the old MIME-type once client code no longer needs it. |
55 const char* kRemotingViewerPluginOldMimeType = | 57 const char* kRemotingViewerPluginOldMimeType = |
56 "pepper-application/x-chromoting"; | 58 "pepper-application/x-chromoting"; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 ChangeWindowMessageFilterFunction g_ChangeWindowMessageFilter; | 262 ChangeWindowMessageFilterFunction g_ChangeWindowMessageFilter; |
261 | 263 |
262 #endif // OS_WIN | 264 #endif // OS_WIN |
263 | 265 |
264 } // namespace | 266 } // namespace |
265 | 267 |
266 namespace chrome { | 268 namespace chrome { |
267 | 269 |
268 const char* ChromeContentClient::kPDFPluginName = ::kPDFPluginName; | 270 const char* ChromeContentClient::kPDFPluginName = ::kPDFPluginName; |
269 const char* ChromeContentClient::kNaClPluginName = ::kNaClPluginName; | 271 const char* ChromeContentClient::kNaClPluginName = ::kNaClPluginName; |
| 272 const char* ChromeContentClient::kNaClOldPluginName = ::kNaClOldPluginName; |
270 | 273 |
271 void ChromeContentClient::SetActiveURL(const GURL& url) { | 274 void ChromeContentClient::SetActiveURL(const GURL& url) { |
272 child_process_logging::SetActiveURL(url); | 275 child_process_logging::SetActiveURL(url); |
273 } | 276 } |
274 | 277 |
275 void ChromeContentClient::SetGpuInfo(const GPUInfo& gpu_info) { | 278 void ChromeContentClient::SetGpuInfo(const GPUInfo& gpu_info) { |
276 child_process_logging::SetGpuInfo(gpu_info); | 279 child_process_logging::SetGpuInfo(gpu_info); |
277 } | 280 } |
278 | 281 |
279 void ChromeContentClient::AddPepperPlugins( | 282 void ChromeContentClient::AddPepperPlugins( |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 policy->SetJobLevel(sandbox::JOB_UNPROTECTED, 0); | 391 policy->SetJobLevel(sandbox::JOB_UNPROTECTED, 0); |
389 policy->SetTokenLevel( | 392 policy->SetTokenLevel( |
390 sandbox::USER_UNPROTECTED, sandbox::USER_UNPROTECTED); | 393 sandbox::USER_UNPROTECTED, sandbox::USER_UNPROTECTED); |
391 } | 394 } |
392 | 395 |
393 return true; | 396 return true; |
394 } | 397 } |
395 #endif | 398 #endif |
396 | 399 |
397 } // namespace chrome | 400 } // namespace chrome |
OLD | NEW |