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