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

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

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_IPC_DEVTOOLS_AGENT_HOST_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_
7 7
8 #include "content/browser/devtools/devtools_agent_host_impl.h" 8 #include "content/browser/devtools/devtools_agent_host_impl.h"
9 9
10 namespace IPC { 10 namespace IPC {
11 class Message; 11 class Message;
12 } 12 }
13 13
14 namespace content { 14 namespace content {
15 15
16 class CONTENT_EXPORT IPCDevToolsAgentHost : public DevToolsAgentHostImpl { 16 class CONTENT_EXPORT IPCDevToolsAgentHost : public DevToolsAgentHostImpl {
17 public: 17 public:
18 // DevToolsAgentHostImpl implementation. 18 // DevToolsAgentHostImpl implementation.
19 virtual void Attach() override; 19 void Attach() override;
20 virtual void Detach() override; 20 void Detach() override;
21 virtual void DispatchProtocolMessage(const std::string& message) override; 21 void DispatchProtocolMessage(const std::string& message) override;
22 virtual void InspectElement(int x, int y) override; 22 void InspectElement(int x, int y) override;
23 23
24 protected: 24 protected:
25 IPCDevToolsAgentHost(); 25 IPCDevToolsAgentHost();
26 virtual ~IPCDevToolsAgentHost(); 26 ~IPCDevToolsAgentHost() override;
27 27
28 void Reattach(const std::string& saved_agent_state); 28 void Reattach(const std::string& saved_agent_state);
29 void ProcessChunkedMessageFromAgent(const std::string& message, 29 void ProcessChunkedMessageFromAgent(const std::string& message,
30 uint32 total_size); 30 uint32 total_size);
31 31
32 virtual void SendMessageToAgent(IPC::Message* msg) = 0; 32 virtual void SendMessageToAgent(IPC::Message* msg) = 0;
33 virtual void OnClientAttached() = 0; 33 virtual void OnClientAttached() = 0;
34 virtual void OnClientDetached() = 0; 34 virtual void OnClientDetached() = 0;
35 35
36 private: 36 private:
37 std::string message_buffer_; 37 std::string message_buffer_;
38 uint32 message_buffer_size_; 38 uint32 message_buffer_size_;
39 }; 39 };
40 40
41 } // namespace content 41 } // namespace content
42 42
43 #endif // CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_ 43 #endif // CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/forwarding_agent_host.h ('k') | content/browser/devtools/protocol/power_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698