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

Side by Side Diff: content/renderer/shared_worker/embedded_shared_worker_stub.h

Issue 223123003: Make DevTools support for the embedded SharedWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed version Created 6 years, 8 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_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H 5 #ifndef CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H
6 #define CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H 6 #define CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H
7 7
8 #include "content/child/child_message_filter.h" 8 #include "content/child/child_message_filter.h"
9 #include "content/child/scoped_child_process_reference.h" 9 #include "content/child/scoped_child_process_reference.h"
10 #include "ipc/ipc_listener.h" 10 #include "ipc/ipc_listener.h"
(...skipping 17 matching lines...) Expand all
28 class WebMessagePortChannelImpl; 28 class WebMessagePortChannelImpl;
29 29
30 class EmbeddedSharedWorkerStub : public IPC::Listener, 30 class EmbeddedSharedWorkerStub : public IPC::Listener,
31 public blink::WebSharedWorkerClient { 31 public blink::WebSharedWorkerClient {
32 public: 32 public:
33 EmbeddedSharedWorkerStub( 33 EmbeddedSharedWorkerStub(
34 const GURL& url, 34 const GURL& url,
35 const base::string16& name, 35 const base::string16& name,
36 const base::string16& content_security_policy, 36 const base::string16& content_security_policy,
37 blink::WebContentSecurityPolicyType security_policy_type, 37 blink::WebContentSecurityPolicyType security_policy_type,
38 bool pause_on_start,
38 int route_id); 39 int route_id);
39 40
40 // IPC::Listener implementation. 41 // IPC::Listener implementation.
41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 42 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
42 virtual void OnChannelError() OVERRIDE; 43 virtual void OnChannelError() OVERRIDE;
43 44
44 // blink::WebSharedWorkerClient implementation. 45 // blink::WebSharedWorkerClient implementation.
45 virtual void workerContextClosed() OVERRIDE; 46 virtual void workerContextClosed() OVERRIDE;
46 virtual void workerContextDestroyed() OVERRIDE; 47 virtual void workerContextDestroyed() OVERRIDE;
47 virtual void workerScriptLoaded() OVERRIDE; 48 virtual void workerScriptLoaded() OVERRIDE;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 typedef std::vector<WebMessagePortChannelImpl*> PendingChannelList; 80 typedef std::vector<WebMessagePortChannelImpl*> PendingChannelList;
80 PendingChannelList pending_channels_; 81 PendingChannelList pending_channels_;
81 82
82 ScopedChildProcessReference process_ref_; 83 ScopedChildProcessReference process_ref_;
83 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); 84 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub);
84 }; 85 };
85 86
86 } // namespace content 87 } // namespace content
87 88
88 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H 89 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/shared_worker/embedded_shared_worker_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698