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

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

Issue 9006036: Create an API around PluginService and use it from Chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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/browser/extensions/extension_service.h" 5 #include "chrome/browser/extensions/extension_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #include "chrome/common/chrome_switches.h" 84 #include "chrome/common/chrome_switches.h"
85 #include "chrome/common/extensions/extension.h" 85 #include "chrome/common/extensions/extension.h"
86 #include "chrome/common/extensions/extension_constants.h" 86 #include "chrome/common/extensions/extension_constants.h"
87 #include "chrome/common/extensions/extension_error_utils.h" 87 #include "chrome/common/extensions/extension_error_utils.h"
88 #include "chrome/common/extensions/extension_file_util.h" 88 #include "chrome/common/extensions/extension_file_util.h"
89 #include "chrome/common/extensions/extension_messages.h" 89 #include "chrome/common/extensions/extension_messages.h"
90 #include "chrome/common/extensions/extension_resource.h" 90 #include "chrome/common/extensions/extension_resource.h"
91 #include "chrome/common/pref_names.h" 91 #include "chrome/common/pref_names.h"
92 #include "chrome/common/url_constants.h" 92 #include "chrome/common/url_constants.h"
93 #include "content/browser/plugin_process_host.h" 93 #include "content/browser/plugin_process_host.h"
94 #include "content/browser/plugin_service.h"
95 #include "content/public/browser/browser_thread.h" 94 #include "content/public/browser/browser_thread.h"
96 #include "content/public/browser/devtools_agent_host_registry.h" 95 #include "content/public/browser/devtools_agent_host_registry.h"
97 #include "content/public/browser/devtools_manager.h" 96 #include "content/public/browser/devtools_manager.h"
98 #include "content/public/browser/notification_service.h" 97 #include "content/public/browser/notification_service.h"
99 #include "content/public/browser/notification_types.h" 98 #include "content/public/browser/notification_types.h"
99 #include "content/public/browser/plugin_service.h"
100 #include "content/public/browser/render_process_host.h" 100 #include "content/public/browser/render_process_host.h"
101 #include "content/public/common/pepper_plugin_info.h" 101 #include "content/public/common/pepper_plugin_info.h"
102 #include "googleurl/src/gurl.h" 102 #include "googleurl/src/gurl.h"
103 #include "grit/theme_resources.h" 103 #include "grit/theme_resources.h"
104 #include "net/base/registry_controlled_domain.h" 104 #include "net/base/registry_controlled_domain.h"
105 #include "webkit/database/database_tracker.h" 105 #include "webkit/database/database_tracker.h"
106 #include "webkit/database/database_util.h" 106 #include "webkit/database/database_util.h"
107 107
108 #if defined(OS_CHROMEOS) 108 #if defined(OS_CHROMEOS)
109 #include "chrome/browser/chromeos/cros/cros_library.h" 109 #include "chrome/browser/chromeos/cros/cros_library.h"
110 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h" 110 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h"
111 #include "chrome/browser/chromeos/extensions/input_method_event_router.h" 111 #include "chrome/browser/chromeos/extensions/input_method_event_router.h"
112 #include "chrome/browser/chromeos/extensions/media_player_event_router.h" 112 #include "chrome/browser/chromeos/extensions/media_player_event_router.h"
113 #include "chrome/browser/chromeos/input_method/input_method_manager.h" 113 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
114 #include "chrome/browser/extensions/extension_input_ime_api.h" 114 #include "chrome/browser/extensions/extension_input_ime_api.h"
115 #include "webkit/fileapi/file_system_context.h" 115 #include "webkit/fileapi/file_system_context.h"
116 #include "webkit/fileapi/file_system_mount_point_provider.h" 116 #include "webkit/fileapi/file_system_mount_point_provider.h"
117 #include "webkit/fileapi/file_system_path_manager.h" 117 #include "webkit/fileapi/file_system_path_manager.h"
118 #endif 118 #endif
119 119
120 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD) 120 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD)
121 #include "chrome/browser/extensions/extension_input_ui_api.h" 121 #include "chrome/browser/extensions/extension_input_ui_api.h"
122 #endif 122 #endif
123 123
124 using base::Time; 124 using base::Time;
125 using content::BrowserThread; 125 using content::BrowserThread;
126 using content::DevToolsAgentHost; 126 using content::DevToolsAgentHost;
127 using content::DevToolsAgentHostRegistry; 127 using content::DevToolsAgentHostRegistry;
128 using content::PluginService;
128 129
129 namespace errors = extension_manifest_errors; 130 namespace errors = extension_manifest_errors;
130 131
131 namespace { 132 namespace {
132 133
133 #if defined(OS_LINUX) 134 #if defined(OS_LINUX)
134 static const int kOmniboxIconPaddingLeft = 2; 135 static const int kOmniboxIconPaddingLeft = 2;
135 static const int kOmniboxIconPaddingRight = 2; 136 static const int kOmniboxIconPaddingRight = 2;
136 #elif defined(OS_MACOSX) 137 #elif defined(OS_MACOSX)
137 static const int kOmniboxIconPaddingLeft = 0; 138 static const int kOmniboxIconPaddingLeft = 0;
(...skipping 2499 matching lines...) Expand 10 before | Expand all | Expand 10 after
2637 // 2638 //
2638 // To coexist with certain unit tests that don't have an IO thread message 2639 // To coexist with certain unit tests that don't have an IO thread message
2639 // loop available at ExtensionService shutdown, we lazy-initialize this 2640 // loop available at ExtensionService shutdown, we lazy-initialize this
2640 // object so that those cases neither create nor destroy a SocketController. 2641 // object so that those cases neither create nor destroy a SocketController.
2641 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 2642 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
2642 if (!socket_controller_) { 2643 if (!socket_controller_) {
2643 socket_controller_ = new extensions::SocketController(); 2644 socket_controller_ = new extensions::SocketController();
2644 } 2645 }
2645 return socket_controller_; 2646 return socket_controller_;
2646 } 2647 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_content_settings_api.cc ('k') | chrome/browser/extensions/file_manager_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698