OLD | NEW |
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_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 public: | 43 public: |
44 static void OnCancelPendingNavigation(RenderViewHost* pending, | 44 static void OnCancelPendingNavigation(RenderViewHost* pending, |
45 RenderViewHost* current); | 45 RenderViewHost* current); |
46 | 46 |
47 RenderViewDevToolsAgentHost(RenderViewHost*); | 47 RenderViewDevToolsAgentHost(RenderViewHost*); |
48 | 48 |
49 void SynchronousSwapCompositorFrame( | 49 void SynchronousSwapCompositorFrame( |
50 const cc::CompositorFrameMetadata& frame_metadata); | 50 const cc::CompositorFrameMetadata& frame_metadata); |
51 | 51 |
52 // DevTooolsAgentHost overrides. | 52 // DevTooolsAgentHost overrides. |
53 virtual void DisconnectWebContents() override; | 53 void DisconnectWebContents() override; |
54 virtual void ConnectWebContents(WebContents* web_contents) override; | 54 void ConnectWebContents(WebContents* web_contents) override; |
55 virtual WebContents* GetWebContents() override; | 55 WebContents* GetWebContents() override; |
56 virtual Type GetType() override; | 56 Type GetType() override; |
57 virtual std::string GetTitle() override; | 57 std::string GetTitle() override; |
58 virtual GURL GetURL() override; | 58 GURL GetURL() override; |
59 virtual bool Activate() override; | 59 bool Activate() override; |
60 virtual bool Close() override; | 60 bool Close() override; |
61 | 61 |
62 private: | 62 private: |
63 friend class DevToolsAgentHost; | 63 friend class DevToolsAgentHost; |
64 virtual ~RenderViewDevToolsAgentHost(); | 64 ~RenderViewDevToolsAgentHost() override; |
65 | 65 |
66 // IPCDevToolsAgentHost overrides. | 66 // IPCDevToolsAgentHost overrides. |
67 virtual void DispatchProtocolMessage(const std::string& message) override; | 67 void DispatchProtocolMessage(const std::string& message) override; |
68 virtual void SendMessageToAgent(IPC::Message* msg) override; | 68 void SendMessageToAgent(IPC::Message* msg) override; |
69 virtual void OnClientAttached() override; | 69 void OnClientAttached() override; |
70 virtual void OnClientDetached() override; | 70 void OnClientDetached() override; |
71 | 71 |
72 // WebContentsObserver overrides. | 72 // WebContentsObserver overrides. |
73 virtual void AboutToNavigateRenderView(RenderViewHost* dest_rvh) override; | 73 void AboutToNavigateRenderView(RenderViewHost* dest_rvh) override; |
74 virtual void RenderViewHostChanged(RenderViewHost* old_host, | 74 void RenderViewHostChanged(RenderViewHost* old_host, |
75 RenderViewHost* new_host) override; | 75 RenderViewHost* new_host) override; |
76 virtual void RenderViewDeleted(RenderViewHost* rvh) override; | 76 void RenderViewDeleted(RenderViewHost* rvh) override; |
77 virtual void RenderProcessGone(base::TerminationStatus status) override; | 77 void RenderProcessGone(base::TerminationStatus status) override; |
78 virtual bool OnMessageReceived(const IPC::Message& message, | 78 bool OnMessageReceived(const IPC::Message& message, |
79 RenderFrameHost* render_frame_host) override; | 79 RenderFrameHost* render_frame_host) override; |
80 virtual bool OnMessageReceived(const IPC::Message& message) override; | 80 bool OnMessageReceived(const IPC::Message& message) override; |
81 virtual void DidAttachInterstitialPage() override; | 81 void DidAttachInterstitialPage() override; |
82 virtual void DidDetachInterstitialPage() override; | 82 void DidDetachInterstitialPage() override; |
83 virtual void TitleWasSet(NavigationEntry* entry, bool explicit_set) override; | 83 void TitleWasSet(NavigationEntry* entry, bool explicit_set) override; |
84 virtual void NavigationEntryCommitted( | 84 void NavigationEntryCommitted( |
85 const LoadCommittedDetails& load_details) override; | 85 const LoadCommittedDetails& load_details) override; |
86 | 86 |
87 // NotificationObserver overrides: | 87 // NotificationObserver overrides: |
88 virtual void Observe(int type, | 88 void Observe(int type, |
89 const NotificationSource& source, | 89 const NotificationSource& source, |
90 const NotificationDetails& details) override; | 90 const NotificationDetails& details) override; |
91 | 91 |
92 void DisconnectRenderViewHost(); | 92 void DisconnectRenderViewHost(); |
93 void ConnectRenderViewHost(RenderViewHost* rvh); | 93 void ConnectRenderViewHost(RenderViewHost* rvh); |
94 void ReattachToRenderViewHost(RenderViewHost* rvh); | 94 void ReattachToRenderViewHost(RenderViewHost* rvh); |
95 | 95 |
96 bool DispatchIPCMessage(const IPC::Message& message); | 96 bool DispatchIPCMessage(const IPC::Message& message); |
97 | 97 |
98 void SetRenderViewHost(RenderViewHost* rvh); | 98 void SetRenderViewHost(RenderViewHost* rvh); |
99 void ClearRenderViewHost(); | 99 void ClearRenderViewHost(); |
100 | 100 |
(...skipping 25 matching lines...) Expand all Loading... |
126 std::string state_; | 126 std::string state_; |
127 NotificationRegistrar registrar_; | 127 NotificationRegistrar registrar_; |
128 bool reattaching_; | 128 bool reattaching_; |
129 | 129 |
130 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); | 130 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); |
131 }; | 131 }; |
132 | 132 |
133 } // namespace content | 133 } // namespace content |
134 | 134 |
135 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 135 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |