OLD | NEW |
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 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/debug/alias.h" | 12 #include "base/debug/alias.h" |
13 #include "base/debug/dump_without_crashing.h" | 13 #include "base/debug/dump_without_crashing.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "base/metrics/histogram_macros.h" | 15 #include "base/metrics/histogram_macros.h" |
| 16 #include "base/threading/sequenced_worker_pool.h" |
16 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
17 #include "chrome/browser/extensions/extension_service.h" | 18 #include "chrome/browser/extensions/extension_service.h" |
18 #include "chrome/browser/extensions/extension_web_ui.h" | 19 #include "chrome/browser/extensions/extension_web_ui.h" |
19 #include "chrome/browser/extensions/extension_webkit_preferences.h" | 20 #include "chrome/browser/extensions/extension_webkit_preferences.h" |
20 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" | 21 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" |
21 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
22 #include "chrome/browser/profiles/profile_io_data.h" | 23 #include "chrome/browser/profiles/profile_io_data.h" |
23 #include "chrome/browser/profiles/profile_manager.h" | 24 #include "chrome/browser/profiles/profile_manager.h" |
24 #include "chrome/browser/renderer_host/chrome_extension_message_filter.h" | 25 #include "chrome/browser/renderer_host/chrome_extension_message_filter.h" |
25 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 26 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 command_line->AppendSwitch(switches::kExtensionProcess); | 796 command_line->AppendSwitch(switches::kExtensionProcess); |
796 } | 797 } |
797 } | 798 } |
798 | 799 |
799 void ChromeContentBrowserClientExtensionsPart::ResourceDispatcherHostCreated() { | 800 void ChromeContentBrowserClientExtensionsPart::ResourceDispatcherHostCreated() { |
800 content::ResourceDispatcherHost::Get()->RegisterInterceptor( | 801 content::ResourceDispatcherHost::Get()->RegisterInterceptor( |
801 "Origin", kExtensionScheme, base::Bind(&OnHttpHeaderReceived)); | 802 "Origin", kExtensionScheme, base::Bind(&OnHttpHeaderReceived)); |
802 } | 803 } |
803 | 804 |
804 } // namespace extensions | 805 } // namespace extensions |
OLD | NEW |