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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 7104144: Get rid of the following dependencies from content: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 9 years, 6 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/renderer/chrome_content_renderer_client.h" 5 #include "chrome/renderer/chrome_content_renderer_client.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 if (url.SchemeIs(chrome::kExtensionScheme) && 497 if (url.SchemeIs(chrome::kExtensionScheme) &&
498 !ExtensionResourceRequestPolicy::CanRequestResource( 498 !ExtensionResourceRequestPolicy::CanRequestResource(
499 url, GURL(frame->url()), extension_dispatcher_->extensions())) { 499 url, GURL(frame->url()), extension_dispatcher_->extensions())) {
500 *new_url = GURL("chrome-extension://invalid/"); 500 *new_url = GURL("chrome-extension://invalid/");
501 return true; 501 return true;
502 } 502 }
503 503
504 return false; 504 return false;
505 } 505 }
506 506
507 FilePath ChromeContentRendererClient::GetMediaLibraryPath() {
508 FilePath rv;
509 PathService::Get(chrome::DIR_MEDIA_LIBS, &rv);
510 return rv;
511 }
512
513 bool ChromeContentRendererClient::ShouldPumpEventsDuringCookieMessage() { 507 bool ChromeContentRendererClient::ShouldPumpEventsDuringCookieMessage() {
514 // We only need to pump events for chrome frame processes as the 508 // We only need to pump events for chrome frame processes as the
515 // cookie policy is controlled by the host browser (IE). If the 509 // cookie policy is controlled by the host browser (IE). If the
516 // policy is set to prompt then the host would put up UI which 510 // policy is set to prompt then the host would put up UI which
517 // would require plugins if any to also pump to ensure that we 511 // would require plugins if any to also pump to ensure that we
518 // don't have a deadlock. 512 // don't have a deadlock.
519 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kChromeFrame); 513 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kChromeFrame);
520 } 514 }
521 515
522 void ChromeContentRendererClient::DidCreateScriptContext(WebFrame* frame) { 516 void ChromeContentRendererClient::DidCreateScriptContext(WebFrame* frame) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 if (old_url == new_url) { 572 if (old_url == new_url) {
579 bool is_extension_url = !!extensions->GetByURL(new_url); 573 bool is_extension_url = !!extensions->GetByURL(new_url);
580 if (is_extension_url != extension_dispatcher_->is_extension_process()) 574 if (is_extension_url != extension_dispatcher_->is_extension_process())
581 return true; 575 return true;
582 } 576 }
583 577
584 return !extensions->InSameExtent(old_url, new_url); 578 return !extensions->InSameExtent(old_url, new_url);
585 } 579 }
586 580
587 } // namespace chrome 581 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.h ('k') | chrome/renderer/chrome_render_process_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698