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

Side by Side Diff: content/renderer/devtools/devtools_agent.h

Issue 670683003: Standardize usage of virtual/override/final in content/renderer/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 (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_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ 5 #ifndef CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_
6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ 6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 // DevToolsAgent belongs to the inspectable RenderView and provides Glue's 28 // DevToolsAgent belongs to the inspectable RenderView and provides Glue's
29 // agents with the communication capabilities. All messages from/to Glue's 29 // agents with the communication capabilities. All messages from/to Glue's
30 // agents infrastructure are flowing through this communication agent. 30 // agents infrastructure are flowing through this communication agent.
31 // There is a corresponding DevToolsClient object on the client side. 31 // There is a corresponding DevToolsClient object on the client side.
32 class DevToolsAgent : public RenderViewObserver, 32 class DevToolsAgent : public RenderViewObserver,
33 public base::SupportsWeakPtr<DevToolsAgent>, 33 public base::SupportsWeakPtr<DevToolsAgent>,
34 public blink::WebDevToolsAgentClient { 34 public blink::WebDevToolsAgentClient {
35 public: 35 public:
36 explicit DevToolsAgent(RenderViewImpl* render_view); 36 explicit DevToolsAgent(RenderViewImpl* render_view);
37 virtual ~DevToolsAgent(); 37 ~DevToolsAgent() override;
38 38
39 // Returns agent instance for its routing id. 39 // Returns agent instance for its routing id.
40 static DevToolsAgent* FromRoutingId(int routing_id); 40 static DevToolsAgent* FromRoutingId(int routing_id);
41 41
42 blink::WebDevToolsAgent* GetWebAgent(); 42 blink::WebDevToolsAgent* GetWebAgent();
43 43
44 bool IsAttached(); 44 bool IsAttached();
45 45
46 private: 46 private:
47 // RenderView::Observer implementation. 47 // RenderView::Observer implementation.
48 virtual bool OnMessageReceived(const IPC::Message& message) override; 48 bool OnMessageReceived(const IPC::Message& message) override;
49 49
50 // WebDevToolsAgentClient implementation 50 // WebDevToolsAgentClient implementation
51 virtual void sendMessageToInspectorFrontend(const blink::WebString& data); 51 virtual void sendMessageToInspectorFrontend(const blink::WebString& data);
52 52
53 virtual long processId() override; 53 virtual long processId() override;
54 virtual int debuggerId() override; 54 virtual int debuggerId() override;
55 virtual void saveAgentRuntimeState(const blink::WebString& state) override; 55 virtual void saveAgentRuntimeState(const blink::WebString& state) override;
56 virtual blink::WebDevToolsAgentClient::WebKitClientMessageLoop* 56 virtual blink::WebDevToolsAgentClient::WebKitClientMessageLoop*
57 createClientMessageLoop() override; 57 createClientMessageLoop() override;
58 virtual void willEnterDebugLoop() override; 58 virtual void willEnterDebugLoop() override;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 bool paused_in_mouse_move_; 105 bool paused_in_mouse_move_;
106 106
107 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_; 107 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); 109 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent);
110 }; 110 };
111 111
112 } // namespace content 112 } // namespace content
113 113
114 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ 114 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698