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

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

Issue 12770014: Restore SnapshotTabHelper temporarily (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 }
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
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
OLDNEW
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698