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

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

Issue 2253383002: [DevTools] Schema domain implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: schema Created 4 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WORKER_DEVTOOLS_AGENT_HOST_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/browser/devtools/devtools_agent_host_impl.h" 9 #include "content/browser/devtools/devtools_agent_host_impl.h"
10 #include "ipc/ipc_listener.h" 10 #include "ipc/ipc_listener.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 namespace devtools { namespace schema { class SchemaHandler; }}
15
14 class BrowserContext; 16 class BrowserContext;
15 class DevToolsProtocolHandler; 17 class DevToolsProtocolHandler;
16 class SharedWorkerInstance; 18 class SharedWorkerInstance;
17 19
18 class WorkerDevToolsAgentHost : public DevToolsAgentHostImpl, 20 class WorkerDevToolsAgentHost : public DevToolsAgentHostImpl,
19 public IPC::Listener { 21 public IPC::Listener {
20 public: 22 public:
21 typedef std::pair<int, int> WorkerId; 23 typedef std::pair<int, int> WorkerId;
22 24
23 // DevToolsAgentHost override. 25 // DevToolsAgentHost override.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 60 }
59 61
60 private: 62 private:
61 friend class SharedWorkerDevToolsManagerTest; 63 friend class SharedWorkerDevToolsManagerTest;
62 64
63 void AttachToWorker(); 65 void AttachToWorker();
64 void DetachFromWorker(); 66 void DetachFromWorker();
65 void WorkerCreated(); 67 void WorkerCreated();
66 void OnDispatchOnInspectorFrontend(const DevToolsMessageChunk& message); 68 void OnDispatchOnInspectorFrontend(const DevToolsMessageChunk& message);
67 69
70 std::unique_ptr<devtools::schema::SchemaHandler> schema_handler_;
68 std::unique_ptr<DevToolsProtocolHandler> protocol_handler_; 71 std::unique_ptr<DevToolsProtocolHandler> protocol_handler_;
69 DevToolsMessageChunkProcessor chunk_processor_; 72 DevToolsMessageChunkProcessor chunk_processor_;
70 WorkerState state_; 73 WorkerState state_;
71 WorkerId worker_id_; 74 WorkerId worker_id_;
72 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsAgentHost); 75 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsAgentHost);
73 }; 76 };
74 77
75 } // namespace content 78 } // namespace content
76 79
77 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_ 80 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/render_frame_devtools_agent_host.cc ('k') | content/browser/devtools/worker_devtools_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698