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

Side by Side Diff: chrome/renderer/devtools_agent_filter.h

Issue 5841002: Finish deinlining virtual methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert parts of the balloon modifications Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_RENDERER_DEVTOOLS_AGENT_FILTER_H_ 5 #ifndef CHROME_RENDERER_DEVTOOLS_AGENT_FILTER_H_
6 #define CHROME_RENDERER_DEVTOOLS_AGENT_FILTER_H_ 6 #define CHROME_RENDERER_DEVTOOLS_AGENT_FILTER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 12 matching lines...) Expand all
23 // There is a single instance of this class instantiated by the RenderThread. 23 // There is a single instance of this class instantiated by the RenderThread.
24 DevToolsAgentFilter(); 24 DevToolsAgentFilter();
25 virtual ~DevToolsAgentFilter(); 25 virtual ~DevToolsAgentFilter();
26 26
27 static void SendRpcMessage(const DevToolsMessageData& data); 27 static void SendRpcMessage(const DevToolsMessageData& data);
28 28
29 private: 29 private:
30 // IPC::ChannelProxy::MessageFilter override. Called on IO thread. 30 // IPC::ChannelProxy::MessageFilter override. Called on IO thread.
31 virtual bool OnMessageReceived(const IPC::Message& message); 31 virtual bool OnMessageReceived(const IPC::Message& message);
32 32
33 virtual void OnFilterAdded(IPC::Channel* channel) { channel_ = channel; } 33 virtual void OnFilterAdded(IPC::Channel* channel);
34 34
35 static void DispatchMessageLoop(); 35 static void DispatchMessageLoop();
36 36
37 // OnDebuggerCommand will be executed in the IO thread so that we can 37 // OnDebuggerCommand will be executed in the IO thread so that we can
38 // handle debug messages even when v8 is stopped. 38 // handle debug messages even when v8 is stopped.
39 void OnDebuggerCommand(const std::string& command); 39 void OnDebuggerCommand(const std::string& command);
40 void OnDispatchOnInspectorBackend(const std::string& message); 40 void OnDispatchOnInspectorBackend(const std::string& message);
41 41
42 bool message_handled_; 42 bool message_handled_;
43 MessageLoop* render_thread_loop_; 43 MessageLoop* render_thread_loop_;
44 44
45 // Made static to allow DevToolsAgent to use it for replying directly 45 // Made static to allow DevToolsAgent to use it for replying directly
46 // from IO thread. 46 // from IO thread.
47 static int current_routing_id_; 47 static int current_routing_id_;
48 static IPC::Channel* channel_; 48 static IPC::Channel* channel_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(DevToolsAgentFilter); 50 DISALLOW_COPY_AND_ASSIGN(DevToolsAgentFilter);
51 }; 51 };
52 52
53 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_FILTER_H_ 53 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698