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

Side by Side Diff: content/browser/devtools/devtools_agent_host_impl.h

Issue 13305002: Remove redundant DevToolsManager methods and clean up its clients. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 23 matching lines...) Expand all
34 virtual void Detach() = 0; 34 virtual void Detach() = 0;
35 35
36 // Sends a message to the agent hosted by this object. 36 // Sends a message to the agent hosted by this object.
37 virtual void DispatchOnInspectorBackend(const std::string& message) = 0; 37 virtual void DispatchOnInspectorBackend(const std::string& message) = 0;
38 38
39 void set_close_listener(CloseListener* listener) { 39 void set_close_listener(CloseListener* listener) {
40 close_listener_ = listener; 40 close_listener_ = listener;
41 } 41 }
42 42
43 // DevToolsAgentHost implementation. 43 // DevToolsAgentHost implementation.
44 virtual bool IsAttached() OVERRIDE;
45
44 virtual void InspectElement(int x, int y) OVERRIDE; 46 virtual void InspectElement(int x, int y) OVERRIDE;
45 47
46 virtual std::string GetId() OVERRIDE; 48 virtual std::string GetId() OVERRIDE;
47 49
48 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; 50 virtual RenderViewHost* GetRenderViewHost() OVERRIDE;
49 51
50 protected: 52 protected:
51 DevToolsAgentHostImpl(); 53 DevToolsAgentHostImpl();
52 virtual ~DevToolsAgentHostImpl(); 54 virtual ~DevToolsAgentHostImpl();
53 55
54 void NotifyCloseListener(); 56 void NotifyCloseListener();
55 57
56 private: 58 private:
57 CloseListener* close_listener_; 59 CloseListener* close_listener_;
58 const std::string id_; 60 const std::string id_;
59 }; 61 };
60 62
61 } // namespace content 63 } // namespace content
62 64
63 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ 65 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/inspect_ui.cc ('k') | content/browser/devtools/devtools_agent_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698