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

Side by Side Diff: third_party/WebKit/Source/core/inspector/WorkerInspectorController.h

Issue 2649923007: Revert of Show service worker navigation preload requests in DevTools Network tab (Closed)
Patch Set: Created 3 years, 11 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class WorkerThread; 45 class WorkerThread;
46 class WorkerThreadDebugger; 46 class WorkerThreadDebugger;
47 47
48 class WorkerInspectorController final 48 class WorkerInspectorController final
49 : public GarbageCollectedFinalized<WorkerInspectorController>, 49 : public GarbageCollectedFinalized<WorkerInspectorController>,
50 public InspectorSession::Client, 50 public InspectorSession::Client,
51 private WebThread::TaskObserver { 51 private WebThread::TaskObserver {
52 WTF_MAKE_NONCOPYABLE(WorkerInspectorController); 52 WTF_MAKE_NONCOPYABLE(WorkerInspectorController);
53 53
54 public: 54 public:
55 static WorkerInspectorController* create(WorkerThread*, 55 static WorkerInspectorController* create(WorkerThread*);
56 bool networkCapability);
57 ~WorkerInspectorController() override; 56 ~WorkerInspectorController() override;
58 DECLARE_TRACE(); 57 DECLARE_TRACE();
59 58
60 InstrumentingAgents* instrumentingAgents() const { 59 InstrumentingAgents* instrumentingAgents() const {
61 return m_instrumentingAgents.get(); 60 return m_instrumentingAgents.get();
62 } 61 }
63 62
64 void connectFrontend(); 63 void connectFrontend();
65 void disconnectFrontend(); 64 void disconnectFrontend();
66 void dispatchMessageFromFrontend(const String&); 65 void dispatchMessageFromFrontend(const String&);
67 void dispose(); 66 void dispose();
68 void flushProtocolNotifications(); 67 void flushProtocolNotifications();
69 68
70 private: 69 private:
71 WorkerInspectorController(WorkerThread*, 70 WorkerInspectorController(WorkerThread*, WorkerThreadDebugger*);
72 WorkerThreadDebugger*,
73 bool networkCapability);
74 71
75 // InspectorSession::Client implementation. 72 // InspectorSession::Client implementation.
76 void sendProtocolMessage(int sessionId, 73 void sendProtocolMessage(int sessionId,
77 int callId, 74 int callId,
78 const String& response, 75 const String& response,
79 const String& state) override; 76 const String& state) override;
80 77
81 // WebThread::TaskObserver implementation. 78 // WebThread::TaskObserver implementation.
82 void willProcessTask() override; 79 void willProcessTask() override;
83 void didProcessTask() override; 80 void didProcessTask() override;
84 81
85 WorkerThreadDebugger* m_debugger; 82 WorkerThreadDebugger* m_debugger;
86 WorkerThread* m_thread; 83 WorkerThread* m_thread;
87 Member<InstrumentingAgents> m_instrumentingAgents; 84 Member<InstrumentingAgents> m_instrumentingAgents;
88 const bool m_networkCapability;
89 Member<InspectorSession> m_session; 85 Member<InspectorSession> m_session;
90 }; 86 };
91 87
92 } // namespace blink 88 } // namespace blink
93 89
94 #endif // WorkerInspectorController_h 90 #endif // WorkerInspectorController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698