#include "extensions/browser/extension_host.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_registry_observer.h"
-#include "extensions/browser/extension_system.h"
#include "extensions/common/constants.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/extension.h"
const Debuggee& debuggee,
infobars::InfoBar* infobar);
- virtual ~ExtensionDevToolsClientHost();
+ ~ExtensionDevToolsClientHost() override;
const std::string& extension_id() { return extension_id_; }
DevToolsAgentHost* agent_host() { return agent_host_.get(); }
void MarkAsDismissed();
// DevToolsAgentHostClient interface.
- virtual void AgentHostClosed(
- DevToolsAgentHost* agent_host,
- bool replaced_with_another_client) OVERRIDE;
- virtual void DispatchProtocolMessage(
- DevToolsAgentHost* agent_host,
- const std::string& message) OVERRIDE;
+ void AgentHostClosed(DevToolsAgentHost* agent_host,
+ bool replaced_with_another_client) override;
+ void DispatchProtocolMessage(DevToolsAgentHost* agent_host,
+ const std::string& message) override;
private:
void SendDetachedEvent();
// content::NotificationObserver implementation.
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) override;
// ExtensionRegistryObserver implementation.
- virtual void OnExtensionUnloaded(
- content::BrowserContext* browser_context,
- const Extension* extension,
- UnloadedExtensionInfo::Reason reason) OVERRIDE;
+ void OnExtensionUnloaded(content::BrowserContext* browser_context,
+ const Extension* extension,
+ UnloadedExtensionInfo::Reason reason) override;
Profile* profile_;
scoped_refptr<DevToolsAgentHost> agent_host_;
private:
explicit ExtensionDevToolsInfoBarDelegate(const std::string& client_name);
- virtual ~ExtensionDevToolsInfoBarDelegate();
+ ~ExtensionDevToolsInfoBarDelegate() override;
// ConfirmInfoBarDelegate:
- virtual void InfoBarDismissed() OVERRIDE;
- virtual Type GetInfoBarType() const OVERRIDE;
- virtual bool ShouldExpireInternal(
- const NavigationDetails& details) const OVERRIDE;
- virtual base::string16 GetMessageText() const OVERRIDE;
- virtual int GetButtons() const OVERRIDE;
- virtual bool Cancel() OVERRIDE;
+ void InfoBarDismissed() override;
+ Type GetInfoBarType() const override;
+ bool ShouldExpireInternal(const NavigationDetails& details) const override;
+ base::string16 GetMessageText() const override;
+ int GetButtons() const override;
+ bool Cancel() override;
std::string client_name_;
ExtensionDevToolsClientHost* client_host_;
}
} else if (debuggee_.extension_id) {
ExtensionHost* extension_host =
- ExtensionSystem::Get(GetProfile())
- ->process_manager()
+ ProcessManager::Get(GetProfile())
->GetBackgroundHostForExtension(*debuggee_.extension_id);
if (extension_host) {
if (PermissionsData::IsRestrictedUrl(extension_host->GetURL(),