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

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

Issue 8760024: Cross-process postMessage (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: New patch, still not quite done Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/file_util.h" 8 #include "base/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 } 310 }
311 return false; 311 return false;
312 } 312 }
313 313
314 bool ChromeContentClient::CanHandleWhileSwappedOut( 314 bool ChromeContentClient::CanHandleWhileSwappedOut(
315 const IPC::Message& msg) { 315 const IPC::Message& msg) {
316 // Any Chrome-specific messages (apart from those listed in 316 // Any Chrome-specific messages (apart from those listed in
317 // CanSendWhileSwappedOut) that must be handled by the browser when sent from 317 // CanSendWhileSwappedOut) that must be handled by the browser when sent from
318 // swapped out renderers. 318 // swapped out renderers.
319 switch (msg.type()) { 319 switch (msg.type()) {
320 case ChromeViewHostMsg_DomOperationResponse::ID:
320 case ChromeViewHostMsg_Snapshot::ID: 321 case ChromeViewHostMsg_Snapshot::ID:
321 return true; 322 return true;
322 default: 323 default:
323 break; 324 break;
324 } 325 }
325 return false; 326 return false;
326 } 327 }
327 328
328 std::string ChromeContentClient::GetUserAgent(bool* overriding) const { 329 std::string ChromeContentClient::GetUserAgent(bool* overriding) const {
329 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kUserAgent)) { 330 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kUserAgent)) {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 DCHECK(sandbox_profile_resource_id); 410 DCHECK(sandbox_profile_resource_id);
410 if (sandbox_type == CHROME_SANDBOX_TYPE_NACL_LOADER) { 411 if (sandbox_type == CHROME_SANDBOX_TYPE_NACL_LOADER) {
411 *sandbox_profile_resource_id = IDR_NACL_SANDBOX_PROFILE; 412 *sandbox_profile_resource_id = IDR_NACL_SANDBOX_PROFILE;
412 return true; 413 return true;
413 } 414 }
414 return false; 415 return false;
415 } 416 }
416 #endif 417 #endif
417 418
418 } // namespace chrome 419 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698