| OLD | NEW |
| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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" | 94 #include "content/browser/plugin_service.h" |
| 95 #include "content/browser/user_metrics.h" | |
| 96 #include "content/public/browser/browser_thread.h" | 95 #include "content/public/browser/browser_thread.h" |
| 97 #include "content/public/browser/devtools_agent_host_registry.h" | 96 #include "content/public/browser/devtools_agent_host_registry.h" |
| 98 #include "content/public/browser/devtools_manager.h" | 97 #include "content/public/browser/devtools_manager.h" |
| 99 #include "content/public/browser/notification_service.h" | 98 #include "content/public/browser/notification_service.h" |
| 100 #include "content/public/browser/notification_types.h" | 99 #include "content/public/browser/notification_types.h" |
| 101 #include "content/public/browser/render_process_host.h" | 100 #include "content/public/browser/render_process_host.h" |
| 102 #include "content/public/common/pepper_plugin_info.h" | 101 #include "content/public/common/pepper_plugin_info.h" |
| 103 #include "googleurl/src/gurl.h" | 102 #include "googleurl/src/gurl.h" |
| 104 #include "grit/theme_resources.h" | 103 #include "grit/theme_resources.h" |
| 105 #include "net/base/registry_controlled_domain.h" | 104 #include "net/base/registry_controlled_domain.h" |
| (...skipping 2450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2556 // | 2555 // |
| 2557 // To coexist with certain unit tests that don't have an IO thread message | 2556 // To coexist with certain unit tests that don't have an IO thread message |
| 2558 // loop available at ExtensionService shutdown, we lazy-initialize this | 2557 // loop available at ExtensionService shutdown, we lazy-initialize this |
| 2559 // object so that those cases neither create nor destroy a SocketController. | 2558 // object so that those cases neither create nor destroy a SocketController. |
| 2560 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 2559 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 2561 if (!socket_controller_) { | 2560 if (!socket_controller_) { |
| 2562 socket_controller_ = new extensions::SocketController(); | 2561 socket_controller_ = new extensions::SocketController(); |
| 2563 } | 2562 } |
| 2564 return socket_controller_; | 2563 return socket_controller_; |
| 2565 } | 2564 } |
| OLD | NEW |