Extract code handling PrinterProviderAPI from PrintPreviewHandler
[chromium-blink-merge.git] / chrome / browser / android / dev_tools_manager_delegate_android.h
blob1a0f51e4df23fa1a8e3f20faddd09a4e9902de21
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_ANDROID_DEV_TOOLS_MANAGER_DELEGATE_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_DEV_TOOLS_MANAGER_DELEGATE_ANDROID_H_
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/devtools/devtools_network_protocol_handler.h"
12 #include "content/public/browser/devtools_manager_delegate.h"
14 class DevToolsManagerDelegateAndroid : public content::DevToolsManagerDelegate {
15 public:
16 DevToolsManagerDelegateAndroid();
17 ~DevToolsManagerDelegateAndroid() override;
19 // content::DevToolsManagerDelegate implementation.
20 void Inspect(content::BrowserContext* browser_context,
21 content::DevToolsAgentHost* agent_host) override;
22 void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host,
23 bool attached) override;
24 base::DictionaryValue* HandleCommand(
25 content::DevToolsAgentHost* agent_host,
26 base::DictionaryValue* command_dict) override;
27 scoped_ptr<content::DevToolsTarget> CreateNewTarget(const GURL& url) override;
28 void EnumerateTargets(TargetCallback callback) override;
29 std::string GetPageThumbnailData(const GURL& url) override;
31 private:
32 scoped_ptr<DevToolsNetworkProtocolHandler> network_protocol_handler_;
34 DISALLOW_COPY_AND_ASSIGN(DevToolsManagerDelegateAndroid);
37 #endif // CHROME_BROWSER_ANDROID_DEV_TOOLS_MANAGER_DELEGATE_ANDROID_H_