Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: chrome/common/chrome_content_client.cc

Issue 12881005: Allow CopyFromBackingStore to fallback to copying from the renderer side if the accelerated surface… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unused include Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
408 return false; 402 return false;
409 } 403 }
410 404
411 std::string ChromeContentClient::GetProduct() const { 405 std::string ChromeContentClient::GetProduct() const {
412 chrome::VersionInfo version_info; 406 chrome::VersionInfo version_info;
413 std::string product("Chrome/"); 407 std::string product("Chrome/");
414 product += version_info.is_valid() ? version_info.Version() : "0.0.0.0"; 408 product += version_info.is_valid() ? version_info.Version() : "0.0.0.0";
415 return product; 409 return product;
416 } 410 }
417 411
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 } 464 }
471 return false; 465 return false;
472 } 466 }
473 467
474 std::string ChromeContentClient::GetCarbonInterposePath() const { 468 std::string ChromeContentClient::GetCarbonInterposePath() const {
475 return std::string(kInterposeLibraryPath); 469 return std::string(kInterposeLibraryPath);
476 } 470 }
477 #endif 471 #endif
478 472
479 } // namespace chrome 473 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698