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

Side by Side Diff: chrome/browser/devtools/devtools_targets_ui.h

Issue 652033004: Android: Remove some devtools code from the build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "content/public/browser/devtools_agent_host.h"
14
15 #if !defined(OS_ANDROID) && !defined(OS_IOS)
13 #include "chrome/browser/devtools/device/devtools_android_bridge.h" 16 #include "chrome/browser/devtools/device/devtools_android_bridge.h"
17 #endif
14 18
15 namespace base { 19 namespace base {
16 class ListValue; 20 class ListValue;
17 class DictionaryValue; 21 class DictionaryValue;
18 } 22 }
19 23
20 class DevToolsTargetImpl; 24 class DevToolsTargetImpl;
21 class Profile; 25 class Profile;
22 26
23 class DevToolsTargetsUIHandler { 27 class DevToolsTargetsUIHandler {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 typedef std::map<std::string, DevToolsTargetImpl*> TargetMap; 59 typedef std::map<std::string, DevToolsTargetImpl*> TargetMap;
56 TargetMap targets_; 60 TargetMap targets_;
57 61
58 private: 62 private:
59 const std::string source_id_; 63 const std::string source_id_;
60 Callback callback_; 64 Callback callback_;
61 65
62 DISALLOW_COPY_AND_ASSIGN(DevToolsTargetsUIHandler); 66 DISALLOW_COPY_AND_ASSIGN(DevToolsTargetsUIHandler);
63 }; 67 };
64 68
69 #if !defined(OS_ANDROID) && !defined(OS_IOS)
65 class PortForwardingStatusSerializer 70 class PortForwardingStatusSerializer
66 : private DevToolsAndroidBridge::PortForwardingListener { 71 : private DevToolsAndroidBridge::PortForwardingListener {
67 public: 72 public:
68 typedef base::Callback<void(const base::Value&)> Callback; 73 typedef base::Callback<void(const base::Value&)> Callback;
69 74
70 PortForwardingStatusSerializer(const Callback& callback, Profile* profile); 75 PortForwardingStatusSerializer(const Callback& callback, Profile* profile);
71 ~PortForwardingStatusSerializer() override; 76 ~PortForwardingStatusSerializer() override;
72 77
73 void PortStatusChanged(const ForwardingStatus& status) override; 78 void PortStatusChanged(const ForwardingStatus& status) override;
74 79
75 private: 80 private:
76 Callback callback_; 81 Callback callback_;
77 Profile* profile_; 82 Profile* profile_;
78 }; 83 };
84 #endif
79 85
80 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ 86 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698