| OLD | NEW |
| 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_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/cpu.h" | 8 #include "base/cpu.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 #if defined(OS_CHROMEOS) | 391 #if defined(OS_CHROMEOS) |
| 392 standard_schemes->push_back(kCrosScheme); | 392 standard_schemes->push_back(kCrosScheme); |
| 393 #endif | 393 #endif |
| 394 } | 394 } |
| 395 | 395 |
| 396 bool ChromeContentClient::CanHandleWhileSwappedOut( | 396 bool ChromeContentClient::CanHandleWhileSwappedOut( |
| 397 const IPC::Message& msg) { | 397 const IPC::Message& msg) { |
| 398 // Any Chrome-specific messages (apart from those listed in | 398 // Any Chrome-specific messages (apart from those listed in |
| 399 // CanSendWhileSwappedOut) that must be handled by the browser when sent from | 399 // CanSendWhileSwappedOut) that must be handled by the browser when sent from |
| 400 // swapped out renderers. | 400 // swapped out renderers. |
| 401 switch (msg.type()) { | |
| 402 case ChromeViewHostMsg_Snapshot::ID: | |
| 403 return true; | |
| 404 default: | |
| 405 break; | |
| 406 } | |
| 407 return false; | 401 return false; |
| 408 } | 402 } |
| 409 | 403 |
| 410 std::string ChromeContentClient::GetProduct() const { | 404 std::string ChromeContentClient::GetProduct() const { |
| 411 chrome::VersionInfo version_info; | 405 chrome::VersionInfo version_info; |
| 412 std::string product("Chrome/"); | 406 std::string product("Chrome/"); |
| 413 product += version_info.is_valid() ? version_info.Version() : "0.0.0.0"; | 407 product += version_info.is_valid() ? version_info.Version() : "0.0.0.0"; |
| 414 return product; | 408 return product; |
| 415 } | 409 } |
| 416 | 410 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 } | 449 } |
| 456 return false; | 450 return false; |
| 457 } | 451 } |
| 458 | 452 |
| 459 std::string ChromeContentClient::GetCarbonInterposePath() const { | 453 std::string ChromeContentClient::GetCarbonInterposePath() const { |
| 460 return std::string(kInterposeLibraryPath); | 454 return std::string(kInterposeLibraryPath); |
| 461 } | 455 } |
| 462 #endif | 456 #endif |
| 463 | 457 |
| 464 } // namespace chrome | 458 } // namespace chrome |
| OLD | NEW |