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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 #if defined(OS_CHROMEOS) | 392 #if defined(OS_CHROMEOS) |
393 standard_schemes->push_back(kCrosScheme); | 393 standard_schemes->push_back(kCrosScheme); |
394 #endif | 394 #endif |
395 } | 395 } |
396 | 396 |
397 bool ChromeContentClient::CanHandleWhileSwappedOut( | 397 bool ChromeContentClient::CanHandleWhileSwappedOut( |
398 const IPC::Message& msg) { | 398 const IPC::Message& msg) { |
399 // Any Chrome-specific messages (apart from those listed in | 399 // Any Chrome-specific messages (apart from those listed in |
400 // CanSendWhileSwappedOut) that must be handled by the browser when sent from | 400 // CanSendWhileSwappedOut) that must be handled by the browser when sent from |
401 // swapped out renderers. | 401 // swapped out renderers. |
| 402 switch (msg.type()) { |
| 403 case ChromeViewHostMsg_Snapshot::ID: |
| 404 return true; |
| 405 default: |
| 406 break; |
| 407 } |
402 return false; | 408 return false; |
403 } | 409 } |
404 | 410 |
405 std::string ChromeContentClient::GetProduct() const { | 411 std::string ChromeContentClient::GetProduct() const { |
406 chrome::VersionInfo version_info; | 412 chrome::VersionInfo version_info; |
407 std::string product("Chrome/"); | 413 std::string product("Chrome/"); |
408 product += version_info.is_valid() ? version_info.Version() : "0.0.0.0"; | 414 product += version_info.is_valid() ? version_info.Version() : "0.0.0.0"; |
409 return product; | 415 return product; |
410 } | 416 } |
411 | 417 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 } | 470 } |
465 return false; | 471 return false; |
466 } | 472 } |
467 | 473 |
468 std::string ChromeContentClient::GetCarbonInterposePath() const { | 474 std::string ChromeContentClient::GetCarbonInterposePath() const { |
469 return std::string(kInterposeLibraryPath); | 475 return std::string(kInterposeLibraryPath); |
470 } | 476 } |
471 #endif | 477 #endif |
472 | 478 |
473 } // namespace chrome | 479 } // namespace chrome |
OLD | NEW |