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

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

Issue 7631063: Prefix all IPC messages used by src\chrome with Chrome. For e.g ChromeViewMsg_, ChromeViewHostMsg... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 #if !defined(NACL_WIN64) // The code this needs isn't linked on Win64 builds. 281 #if !defined(NACL_WIN64) // The code this needs isn't linked on Win64 builds.
282 ComputeBuiltInPlugins(plugins); 282 ComputeBuiltInPlugins(plugins);
283 AddOutOfProcessFlash(plugins); 283 AddOutOfProcessFlash(plugins);
284 #endif 284 #endif
285 } 285 }
286 286
287 bool ChromeContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) { 287 bool ChromeContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) {
288 // Any Chrome-specific messages that must be allowed to be sent from swapped 288 // Any Chrome-specific messages that must be allowed to be sent from swapped
289 // out renderers. 289 // out renderers.
290 switch (msg->type()) { 290 switch (msg->type()) {
291 case ViewHostMsg_DomOperationResponse::ID: 291 case ChromeViewHostMsg_DomOperationResponse::ID:
292 return true; 292 return true;
293 default: 293 default:
294 break; 294 break;
295 } 295 }
296 return false; 296 return false;
297 } 297 }
298 298
299 bool ChromeContentClient::CanHandleWhileSwappedOut( 299 bool ChromeContentClient::CanHandleWhileSwappedOut(
300 const IPC::Message& msg) { 300 const IPC::Message& msg) {
301 // Any Chrome-specific messages (apart from those listed in 301 // Any Chrome-specific messages (apart from those listed in
302 // CanSendWhileSwappedOut) that must be handled by the browser when sent from 302 // CanSendWhileSwappedOut) that must be handled by the browser when sent from
303 // swapped out renderers. 303 // swapped out renderers.
304 switch (msg.type()) { 304 switch (msg.type()) {
305 case ViewHostMsg_Snapshot::ID: 305 case ChromeViewHostMsg_Snapshot::ID:
306 return true; 306 return true;
307 default: 307 default:
308 break; 308 break;
309 } 309 }
310 return false; 310 return false;
311 } 311 }
312 312
313 std::string ChromeContentClient::GetUserAgent(bool mimic_windows) const { 313 std::string ChromeContentClient::GetUserAgent(bool mimic_windows) const {
314 chrome::VersionInfo version_info; 314 chrome::VersionInfo version_info;
315 std::string product("Chrome/"); 315 std::string product("Chrome/");
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 policy->SetJobLevel(sandbox::JOB_UNPROTECTED, 0); 388 policy->SetJobLevel(sandbox::JOB_UNPROTECTED, 0);
389 policy->SetTokenLevel( 389 policy->SetTokenLevel(
390 sandbox::USER_UNPROTECTED, sandbox::USER_UNPROTECTED); 390 sandbox::USER_UNPROTECTED, sandbox::USER_UNPROTECTED);
391 } 391 }
392 392
393 return true; 393 return true;
394 } 394 }
395 #endif 395 #endif
396 396
397 } // namespace chrome 397 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/web_resource/web_resource_service.cc ('k') | chrome/common/chrome_utility_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698