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