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

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

Issue 442303002: DevTools: migrate DevTools APIs to use WebContents instead of RenderViewHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments addressed. Created 6 years, 4 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 29 matching lines...) Expand all
40 close_listener_ = listener; 40 close_listener_ = listener;
41 } 41 }
42 42
43 // DevToolsAgentHost implementation. 43 // DevToolsAgentHost implementation.
44 virtual bool IsAttached() OVERRIDE; 44 virtual bool IsAttached() OVERRIDE;
45 45
46 virtual void InspectElement(int x, int y) OVERRIDE; 46 virtual void InspectElement(int x, int y) OVERRIDE;
47 47
48 virtual std::string GetId() OVERRIDE; 48 virtual std::string GetId() OVERRIDE;
49 49
50 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; 50 virtual WebContents* GetWebContents() OVERRIDE;
51 51
52 virtual void DisconnectRenderViewHost() OVERRIDE; 52 virtual void DisconnectWebContents() OVERRIDE;
53 53
54 virtual void ConnectRenderViewHost(RenderViewHost* rvh) OVERRIDE; 54 virtual void ConnectWebContents(WebContents* rvh) OVERRIDE;
55 55
56 virtual bool IsWorker() const OVERRIDE; 56 virtual bool IsWorker() const OVERRIDE;
57 57
58 protected: 58 protected:
59 DevToolsAgentHostImpl(); 59 DevToolsAgentHostImpl();
60 virtual ~DevToolsAgentHostImpl(); 60 virtual ~DevToolsAgentHostImpl();
61 61
62 void NotifyCloseListener(); 62 void NotifyCloseListener();
63 63
64 private: 64 private:
65 CloseListener* close_listener_; 65 CloseListener* close_listener_;
66 const std::string id_; 66 const std::string id_;
67 }; 67 };
68 68
69 } // namespace content 69 } // namespace content
70 70
71 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ 71 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698