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

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

Issue 568403002: Unify shared and service workers in chrome://inspect, remove service workers iframe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed review comments Created 6 years, 3 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
(...skipping 28 matching lines...) Expand all
39 const Callback& callback, Profile* profile); 39 const Callback& callback, Profile* profile);
40 40
41 DevToolsTargetImpl* GetTarget(const std::string& target_id); 41 DevToolsTargetImpl* GetTarget(const std::string& target_id);
42 42
43 virtual void Open(const std::string& browser_id, const std::string& url, 43 virtual void Open(const std::string& browser_id, const std::string& url,
44 const TargetCallback& callback); 44 const TargetCallback& callback);
45 45
46 virtual scoped_refptr<content::DevToolsAgentHost> GetBrowserAgentHost( 46 virtual scoped_refptr<content::DevToolsAgentHost> GetBrowserAgentHost(
47 const std::string& browser_id); 47 const std::string& browser_id);
48 48
49 virtual void ForceUpdate();
50
49 protected: 51 protected:
50 base::DictionaryValue* Serialize(const DevToolsTargetImpl& target); 52 base::DictionaryValue* Serialize(const DevToolsTargetImpl& target);
51 void SendSerializedTargets(const base::ListValue& list); 53 void SendSerializedTargets(const base::ListValue& list);
52 54
53 typedef std::map<std::string, DevToolsTargetImpl*> TargetMap; 55 typedef std::map<std::string, DevToolsTargetImpl*> TargetMap;
54 TargetMap targets_; 56 TargetMap targets_;
55 57
56 private: 58 private:
57 const std::string source_id_; 59 const std::string source_id_;
58 Callback callback_; 60 Callback callback_;
(...skipping 10 matching lines...) Expand all
69 virtual ~PortForwardingStatusSerializer(); 71 virtual ~PortForwardingStatusSerializer();
70 72
71 virtual void PortStatusChanged(const DevicesStatus&) OVERRIDE; 73 virtual void PortStatusChanged(const DevicesStatus&) OVERRIDE;
72 74
73 private: 75 private:
74 Callback callback_; 76 Callback callback_;
75 Profile* profile_; 77 Profile* profile_;
76 }; 78 };
77 79
78 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ 80 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_target_impl.cc ('k') | chrome/browser/devtools/devtools_targets_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698