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

Side by Side Diff: extensions/browser/process_manager.cc

Issue 194333002: Move extension_messages.h to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "extensions/browser/process_manager.h" 5 #include "extensions/browser/process_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
13 #include "base/stl_util.h" 13 #include "base/stl_util.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "chrome/browser/chrome_notification_types.h" 16 #include "chrome/browser/chrome_notification_types.h"
17 #include "chrome/browser/extensions/api/runtime/runtime_api.h" 17 #include "chrome/browser/extensions/api/runtime/runtime_api.h"
18 #include "chrome/browser/extensions/extension_host.h" 18 #include "chrome/browser/extensions/extension_host.h"
19 #include "chrome/common/extensions/extension_messages.h"
20 #include "content/public/browser/browser_context.h" 19 #include "content/public/browser/browser_context.h"
21 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
22 #include "content/public/browser/devtools_agent_host.h" 21 #include "content/public/browser/devtools_agent_host.h"
23 #include "content/public/browser/devtools_manager.h" 22 #include "content/public/browser/devtools_manager.h"
24 #include "content/public/browser/notification_service.h" 23 #include "content/public/browser/notification_service.h"
25 #include "content/public/browser/render_frame_host.h" 24 #include "content/public/browser/render_frame_host.h"
26 #include "content/public/browser/render_process_host.h" 25 #include "content/public/browser/render_process_host.h"
27 #include "content/public/browser/render_view_host.h" 26 #include "content/public/browser/render_view_host.h"
28 #include "content/public/browser/site_instance.h" 27 #include "content/public/browser/site_instance.h"
29 #include "content/public/browser/web_contents.h" 28 #include "content/public/browser/web_contents.h"
30 #include "content/public/browser/web_contents_delegate.h" 29 #include "content/public/browser/web_contents_delegate.h"
31 #include "content/public/browser/web_contents_observer.h" 30 #include "content/public/browser/web_contents_observer.h"
32 #include "content/public/browser/web_contents_user_data.h" 31 #include "content/public/browser/web_contents_user_data.h"
33 #include "content/public/common/renderer_preferences.h" 32 #include "content/public/common/renderer_preferences.h"
34 #include "extensions/browser/extension_registry.h" 33 #include "extensions/browser/extension_registry.h"
35 #include "extensions/browser/extension_system.h" 34 #include "extensions/browser/extension_system.h"
36 #include "extensions/browser/extensions_browser_client.h" 35 #include "extensions/browser/extensions_browser_client.h"
37 #include "extensions/browser/view_type_utils.h" 36 #include "extensions/browser/view_type_utils.h"
38 #include "extensions/common/extension.h" 37 #include "extensions/common/extension.h"
38 #include "extensions/common/extension_messages.h"
39 #include "extensions/common/manifest_handlers/background_info.h" 39 #include "extensions/common/manifest_handlers/background_info.h"
40 #include "extensions/common/manifest_handlers/incognito_info.h" 40 #include "extensions/common/manifest_handlers/incognito_info.h"
41 #include "extensions/common/one_shot_event.h" 41 #include "extensions/common/one_shot_event.h"
42 #include "extensions/common/switches.h" 42 #include "extensions/common/switches.h"
43 43
44 using content::BrowserContext; 44 using content::BrowserContext;
45 using content::RenderViewHost; 45 using content::RenderViewHost;
46 using content::SiteInstance; 46 using content::SiteInstance;
47 using content::WebContents; 47 using content::WebContents;
48 48
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 const Extension* extension = 909 const Extension* extension =
910 registry->enabled_extensions().GetExtensionOrAppByURL(url); 910 registry->enabled_extensions().GetExtensionOrAppByURL(url);
911 if (extension && !IncognitoInfo::IsSplitMode(extension)) { 911 if (extension && !IncognitoInfo::IsSplitMode(extension)) {
912 return original_manager_->GetSiteInstanceForURL(url); 912 return original_manager_->GetSiteInstanceForURL(url);
913 } 913 }
914 } 914 }
915 return ProcessManager::GetSiteInstanceForURL(url); 915 return ProcessManager::GetSiteInstanceForURL(url);
916 } 916 }
917 917
918 } // namespace extensions 918 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/lazy_background_task_queue.cc ('k') | extensions/browser/renderer_startup_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698