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

Side by Side Diff: chrome/browser/android/dev_tools_manager_delegate_android.h

Issue 1114503002: [DevTools] Cleanup DevToolsTarget and DevToolsManagerDelegate after moving to devtools_discovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@devtools-discovery-chrome
Patch Set: Created 5 years, 7 months 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
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_ANDROID_DEV_TOOLS_MANAGER_DELEGATE_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_DEV_TOOLS_MANAGER_DELEGATE_ANDROID_H_
7
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"
13
14 // TODO(dgozman): remove this class once transition to devtools_discovery is
15 // completed.
16 class DevToolsManagerDelegateAndroid : public content::DevToolsManagerDelegate {
17 public:
18 DevToolsManagerDelegateAndroid();
19 ~DevToolsManagerDelegateAndroid() override;
20
21 // content::DevToolsManagerDelegate implementation.
22 void Inspect(content::BrowserContext* browser_context,
23 content::DevToolsAgentHost* agent_host) override;
24 void DevToolsAgentStateChanged(content::DevToolsAgentHost* agent_host,
25 bool attached) override;
26 base::DictionaryValue* HandleCommand(
27 content::DevToolsAgentHost* agent_host,
28 base::DictionaryValue* command_dict) override;
29 scoped_ptr<content::DevToolsTarget> CreateNewTarget(const GURL& url) override;
30 void EnumerateTargets(TargetCallback callback) override;
31 std::string GetPageThumbnailData(const GURL& url) override;
32
33 private:
34 scoped_ptr<DevToolsNetworkProtocolHandler> network_protocol_handler_;
35
36 DISALLOW_COPY_AND_ASSIGN(DevToolsManagerDelegateAndroid);
37 };
38
39 #endif // CHROME_BROWSER_ANDROID_DEV_TOOLS_MANAGER_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698