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

Side by Side Diff: third_party/WebKit/Source/web/WebSharedWorkerImpl.h

Issue 1408363004: [DevTools] Filter any messages from previous sessions in DevToolsAgentHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void willDestroyWorkerGlobalScope() override { } 86 void willDestroyWorkerGlobalScope() override { }
87 87
88 // WebFrameClient methods to support resource loading thru the 'shadow page' . 88 // WebFrameClient methods to support resource loading thru the 'shadow page' .
89 WebApplicationCacheHost* createApplicationCacheHost(WebLocalFrame*, WebAppli cationCacheHostClient*) override; 89 WebApplicationCacheHost* createApplicationCacheHost(WebLocalFrame*, WebAppli cationCacheHostClient*) override;
90 void willSendRequest(WebLocalFrame*, unsigned identifier, WebURLRequest&, co nst WebURLResponse& redirectResponse) override; 90 void willSendRequest(WebLocalFrame*, unsigned identifier, WebURLRequest&, co nst WebURLResponse& redirectResponse) override;
91 void didFinishDocumentLoad(WebLocalFrame*, bool documentIsEmpty) override; 91 void didFinishDocumentLoad(WebLocalFrame*, bool documentIsEmpty) override;
92 bool isControlledByServiceWorker(WebDataSource&) override; 92 bool isControlledByServiceWorker(WebDataSource&) override;
93 int64_t serviceWorkerID(WebDataSource&) override; 93 int64_t serviceWorkerID(WebDataSource&) override;
94 94
95 // WebDevToolsAgentClient overrides. 95 // WebDevToolsAgentClient overrides.
96 void sendProtocolMessage(int callId, const WebString&, const WebString&) ove rride; 96 void sendProtocolMessage(int sessionId, int callId, const WebString&, const WebString&) override;
97 void resumeStartup() override; 97 void resumeStartup() override;
98 98
99 // WebSharedWorker methods: 99 // WebSharedWorker methods:
100 void startWorkerContext(const WebURL&, const WebString& name, const WebStrin g& contentSecurityPolicy, WebContentSecurityPolicyType) override; 100 void startWorkerContext(const WebURL&, const WebString& name, const WebStrin g& contentSecurityPolicy, WebContentSecurityPolicyType) override;
101 void connect(WebMessagePortChannel*) override; 101 void connect(WebMessagePortChannel*) override;
102 void terminateWorkerContext() override; 102 void terminateWorkerContext() override;
103 103
104 void pauseWorkerContextOnStart() override; 104 void pauseWorkerContextOnStart() override;
105 void attachDevTools(const WebString& hostId) override; 105 void attachDevTools(const WebString& hostId, int sessionId) override;
106 void reattachDevTools(const WebString& hostId, const WebString& savedState) override; 106 void reattachDevTools(const WebString& hostId, int sesionId, const WebString & savedState) override;
107 void detachDevTools() override; 107 void detachDevTools() override;
108 void dispatchDevToolsMessage(const WebString&) override; 108 void dispatchDevToolsMessage(int sessionId, const WebString&) override;
109 109
110 private: 110 private:
111 ~WebSharedWorkerImpl() override; 111 ~WebSharedWorkerImpl() override;
112 112
113 void setWorkerThread(PassRefPtr<WorkerThread> thread) { m_workerThread = thr ead; } 113 void setWorkerThread(PassRefPtr<WorkerThread> thread) { m_workerThread = thr ead; }
114 WorkerThread* workerThread() { return m_workerThread.get(); } 114 WorkerThread* workerThread() { return m_workerThread.get(); }
115 115
116 // Shuts down the worker thread. 116 // Shuts down the worker thread.
117 void terminateWorkerThread(); 117 void terminateWorkerThread();
118 118
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 RefPtr<WorkerLoaderProxy> m_loaderProxy; 158 RefPtr<WorkerLoaderProxy> m_loaderProxy;
159 159
160 WebURL m_url; 160 WebURL m_url;
161 WebString m_name; 161 WebString m_name;
162 }; 162 };
163 163
164 } // namespace blink 164 } // namespace blink
165 165
166 #endif // WebSharedWorkerImpl_h 166 #endif // WebSharedWorkerImpl_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698