Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / browser / devtools / chrome_devtools_manager_delegate.h
blob99b6cc2b5fa17138df5e81cefd6828896d30d2fb
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "content/public/browser/devtools_manager_delegate.h"
13 class DevToolsNetworkProtocolHandler;
15 class ChromeDevToolsManagerDelegate : public content::DevToolsManagerDelegate {
16 public:
17 ChromeDevToolsManagerDelegate();
18 ~ChromeDevToolsManagerDelegate() override;
20 // content::DevToolsManagerDelegate implementation.
21 void Inspect(content::BrowserContext* browser_context,
22 content::DevToolsAgentHost* agent_host) override;
23 void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host,
24 bool attached) override;
25 base::DictionaryValue* HandleCommand(
26 content::DevToolsAgentHost* agent_host,
27 base::DictionaryValue* command_dict) override;
29 private:
30 scoped_ptr<DevToolsNetworkProtocolHandler> network_protocol_handler_;
32 DISALLOW_COPY_AND_ASSIGN(ChromeDevToolsManagerDelegate);
35 #endif // CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_