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

Side by Side Diff: chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc

Issue 1988613005: ppapi: PPB_VpnProvider: Implement Service Helper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vpn-permission
Patch Set: Pass VpnServiceProxy using unique_ptr. Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/extensions/chrome_content_browser_client_extensions_par t.h" 5 #include "chrome/browser/extensions/chrome_content_browser_client_extensions_par t.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" 21 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
22 #include "chrome/common/chrome_constants.h" 22 #include "chrome/common/chrome_constants.h"
23 #include "chrome/common/chrome_switches.h" 23 #include "chrome/common/chrome_switches.h"
24 #include "chrome/common/extensions/extension_process_policy.h" 24 #include "chrome/common/extensions/extension_process_policy.h"
25 #include "components/guest_view/browser/guest_view_message_filter.h" 25 #include "components/guest_view/browser/guest_view_message_filter.h"
26 #include "content/public/browser/browser_thread.h" 26 #include "content/public/browser/browser_thread.h"
27 #include "content/public/browser/browser_url_handler.h" 27 #include "content/public/browser/browser_url_handler.h"
28 #include "content/public/browser/render_process_host.h" 28 #include "content/public/browser/render_process_host.h"
29 #include "content/public/browser/render_view_host.h" 29 #include "content/public/browser/render_view_host.h"
30 #include "content/public/browser/site_instance.h" 30 #include "content/public/browser/site_instance.h"
31 #include "content/public/browser/vpn_service_proxy.h"
31 #include "content/public/browser/web_contents.h" 32 #include "content/public/browser/web_contents.h"
32 #include "content/public/common/content_switches.h" 33 #include "content/public/common/content_switches.h"
33 #include "extensions/browser/api/web_request/web_request_api.h" 34 #include "extensions/browser/api/web_request/web_request_api.h"
34 #include "extensions/browser/api/web_request/web_request_api_helpers.h" 35 #include "extensions/browser/api/web_request/web_request_api_helpers.h"
35 #include "extensions/browser/extension_host.h" 36 #include "extensions/browser/extension_host.h"
36 #include "extensions/browser/extension_message_filter.h" 37 #include "extensions/browser/extension_message_filter.h"
37 #include "extensions/browser/extension_registry.h" 38 #include "extensions/browser/extension_registry.h"
38 #include "extensions/browser/extension_service_worker_message_filter.h" 39 #include "extensions/browser/extension_service_worker_message_filter.h"
39 #include "extensions/browser/extension_system.h" 40 #include "extensions/browser/extension_system.h"
40 #include "extensions/browser/guest_view/extensions_guest_view_message_filter.h" 41 #include "extensions/browser/guest_view/extensions_guest_view_message_filter.h"
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 483
483 if (!WebAccessibleResourcesInfo::IsResourceWebAccessible( 484 if (!WebAccessibleResourcesInfo::IsResourceWebAccessible(
484 extension, to_url.path())) { 485 extension, to_url.path())) {
485 *result = false; 486 *result = false;
486 return true; 487 return true;
487 } 488 }
488 } 489 }
489 return false; 490 return false;
490 } 491 }
491 492
493 // static
494 std::unique_ptr<content::VpnServiceProxy>
495 ChromeContentBrowserClientExtensionsPart::GetVpnServiceProxy(
496 content::BrowserContext* browser_context) {
497 return nullptr;
498 }
499
492 void ChromeContentBrowserClientExtensionsPart::RenderProcessWillLaunch( 500 void ChromeContentBrowserClientExtensionsPart::RenderProcessWillLaunch(
493 content::RenderProcessHost* host) { 501 content::RenderProcessHost* host) {
494 int id = host->GetID(); 502 int id = host->GetID();
495 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); 503 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext());
496 504
497 host->AddFilter(new ChromeExtensionMessageFilter(id, profile)); 505 host->AddFilter(new ChromeExtensionMessageFilter(id, profile));
498 host->AddFilter(new ExtensionMessageFilter(id, profile)); 506 host->AddFilter(new ExtensionMessageFilter(id, profile));
499 host->AddFilter(new IOThreadExtensionMessageFilter(id, profile)); 507 host->AddFilter(new IOThreadExtensionMessageFilter(id, profile));
500 host->AddFilter(new ExtensionsGuestViewMessageFilter(id, profile)); 508 host->AddFilter(new ExtensionsGuestViewMessageFilter(id, profile));
501 if (extensions::ExtensionsClient::Get() 509 if (extensions::ExtensionsClient::Get()
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 command_line->AppendSwitch(::switches::kEnableWebRtcHWH264Encoding); 635 command_line->AppendSwitch(::switches::kEnableWebRtcHWH264Encoding);
628 #endif 636 #endif
629 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 637 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
630 switches::kEnableMojoSerialService)) { 638 switches::kEnableMojoSerialService)) {
631 command_line->AppendSwitch(switches::kEnableMojoSerialService); 639 command_line->AppendSwitch(switches::kEnableMojoSerialService);
632 } 640 }
633 } 641 }
634 } 642 }
635 643
636 } // namespace extensions 644 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698