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

Side by Side Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc

Issue 464533002: Move guest_view to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small changes are made in guest_view_manager_unittest.cc Created 6 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
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/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h" 5 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 const GURL& url, 458 const GURL& url,
459 int child_id, 459 int child_id,
460 int route_id) { 460 int route_id) {
461 #if defined(OS_ANDROID) 461 #if defined(OS_ANDROID)
462 // Android use a resource throttle to handle external as well as internal 462 // Android use a resource throttle to handle external as well as internal
463 // protocols. 463 // protocols.
464 return false; 464 return false;
465 #else 465 #else
466 466
467 #if defined(ENABLE_EXTENSIONS) 467 #if defined(ENABLE_EXTENSIONS)
468 if (WebViewRendererState::GetInstance()->IsGuest(child_id)) 468 if (extensions::WebViewRendererState::GetInstance()->IsGuest(child_id))
469 return false; 469 return false;
470 470
471 #endif // defined(ENABLE_EXTENSIONS) 471 #endif // defined(ENABLE_EXTENSIONS)
472 472
473 BrowserThread::PostTask(BrowserThread::UI, 473 BrowserThread::PostTask(BrowserThread::UI,
474 FROM_HERE, 474 FROM_HERE,
475 base::Bind(&LaunchURL, url, child_id, route_id)); 475 base::Bind(&LaunchURL, url, child_id, route_id));
476 return true; 476 return true;
477 #endif 477 #endif
478 } 478 }
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 url_request->GetTotalReceivedBytes())); 733 url_request->GetTotalReceivedBytes()));
734 } 734 }
735 } 735 }
736 736
737 // static 737 // static
738 void ChromeResourceDispatcherHostDelegate:: 738 void ChromeResourceDispatcherHostDelegate::
739 SetExternalProtocolHandlerDelegateForTesting( 739 SetExternalProtocolHandlerDelegateForTesting(
740 ExternalProtocolHandler::Delegate* delegate) { 740 ExternalProtocolHandler::Delegate* delegate) {
741 g_external_protocol_handler_delegate = delegate; 741 g_external_protocol_handler_delegate = delegate;
742 } 742 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.cc ('k') | chrome/browser/task_manager/extension_information.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698