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

Side by Side Diff: public/web/WebDevToolsAgentClient.h

Issue 338993006: DevTools: pass agent host id to the renderer (Blink). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Same w/ reattach. Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « public/web/WebDevToolsAgent.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 29 matching lines...) Expand all
40 struct WebDevToolsMessageData; 40 struct WebDevToolsMessageData;
41 struct WebRect; 41 struct WebRect;
42 struct WebSize; 42 struct WebSize;
43 43
44 class WebDevToolsAgentClient { 44 class WebDevToolsAgentClient {
45 public: 45 public:
46 virtual void sendMessageToInspectorFrontend(const WebString&) { } 46 virtual void sendMessageToInspectorFrontend(const WebString&) { }
47 virtual void sendDebuggerOutput(const WebString&) { } 47 virtual void sendDebuggerOutput(const WebString&) { }
48 48
49 // Returns the identifier of the entity hosting this agent. 49 // Returns the identifier of the entity hosting this agent.
50 // FIXME: remove once migrated to debuggerId().
50 virtual int hostIdentifier() { return -1; } 51 virtual int hostIdentifier() { return -1; }
51 52
53 // Returns unique identifier of the entity within process.
54 virtual int debuggerId() { return hostIdentifier(); }
55
52 // Save the agent state in order to pass it later into WebDevToolsAgent::rea ttach 56 // Save the agent state in order to pass it later into WebDevToolsAgent::rea ttach
53 // if the same client is reattached to another agent. 57 // if the same client is reattached to another agent.
54 virtual void saveAgentRuntimeState(const WebString&) { } 58 virtual void saveAgentRuntimeState(const WebString&) { }
55 59
56 class WebKitClientMessageLoop { 60 class WebKitClientMessageLoop {
57 public: 61 public:
58 virtual ~WebKitClientMessageLoop() { } 62 virtual ~WebKitClientMessageLoop() { }
59 virtual void run() = 0; 63 virtual void run() = 0;
60 virtual void quitNow() = 0; 64 virtual void quitNow() = 0;
61 }; 65 };
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 103
100 virtual void setTouchEventEmulationEnabled(bool enabled, bool allowPinch) { } 104 virtual void setTouchEventEmulationEnabled(bool enabled, bool allowPinch) { }
101 105
102 protected: 106 protected:
103 ~WebDevToolsAgentClient() { } 107 ~WebDevToolsAgentClient() { }
104 }; 108 };
105 109
106 } // namespace blink 110 } // namespace blink
107 111
108 #endif 112 #endif
OLDNEW
« no previous file with comments | « public/web/WebDevToolsAgent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698