Chromium Code Reviews| 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/string_split.h" | 10 #include "base/string_split.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "chrome/common/child_process_logging.h" | 12 #include "chrome/common/child_process_logging.h" |
| 13 #include "chrome/common/chrome_paths.h" | 13 #include "chrome/common/chrome_paths.h" |
| 14 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
| 15 #include "chrome/common/render_messages.h" | |
|
jam
2011/05/11 20:19:31
the reason you're getting the compile link failure
Charlie Reis
2011/05/11 20:49:15
Thanks. (Fixed in render_messages.h, as you saw.
| |
| 15 #include "content/common/pepper_plugin_registry.h" | 16 #include "content/common/pepper_plugin_registry.h" |
| 16 #include "remoting/client/plugin/pepper_entrypoints.h" | 17 #include "remoting/client/plugin/pepper_entrypoints.h" |
| 17 | 18 |
| 18 namespace { | 19 namespace { |
| 19 | 20 |
| 20 const char* kPDFPluginName = "Chrome PDF Viewer"; | 21 const char* kPDFPluginName = "Chrome PDF Viewer"; |
| 21 const char* kPDFPluginMimeType = "application/pdf"; | 22 const char* kPDFPluginMimeType = "application/pdf"; |
| 22 const char* kPDFPluginExtension = "pdf"; | 23 const char* kPDFPluginExtension = "pdf"; |
| 23 const char* kPDFPluginDescription = "Portable Document Format"; | 24 const char* kPDFPluginDescription = "Portable Document Format"; |
| 24 | 25 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 177 } | 178 } |
| 178 | 179 |
| 179 void ChromeContentClient::AddPepperPlugins( | 180 void ChromeContentClient::AddPepperPlugins( |
| 180 std::vector<PepperPluginInfo>* plugins) { | 181 std::vector<PepperPluginInfo>* plugins) { |
| 181 #if !defined(NACL_WIN64) // The code this needs isn't linked on Win64 builds. | 182 #if !defined(NACL_WIN64) // The code this needs isn't linked on Win64 builds. |
| 182 ComputeBuiltInPlugins(plugins); | 183 ComputeBuiltInPlugins(plugins); |
| 183 AddOutOfProcessFlash(plugins); | 184 AddOutOfProcessFlash(plugins); |
| 184 #endif | 185 #endif |
| 185 } | 186 } |
| 186 | 187 |
| 188 bool ChromeContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) { | |
| 189 // Any Chrome-specific messages that must be allowed to be sent from swapped | |
| 190 // out renderers. | |
| 191 switch (msg->type()) { | |
| 192 case ViewHostMsg_DomOperationResponse::ID: | |
| 193 return true; | |
| 194 default: | |
| 195 break; | |
| 196 } | |
| 197 return false; | |
| 198 } | |
| 199 | |
| 200 bool ChromeContentClient::CanHandleWhileSwappedOut( | |
| 201 const IPC::Message& msg) { | |
| 202 // Any Chrome-specific messages (apart from those listed in | |
| 203 // CanSendWhileSwappedOut) that must be handled by the browser when sent from | |
| 204 // swapped out renderers. | |
| 205 switch (msg.type()) { | |
| 206 case ViewHostMsg_Snapshot::ID: | |
| 207 return true; | |
| 208 default: | |
| 209 break; | |
| 210 } | |
| 211 return false; | |
| 212 } | |
| 213 | |
| 187 } // namespace chrome | 214 } // namespace chrome |
| OLD | NEW |