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

Side by Side Diff: content/worker/websharedworker_stub.h

Issue 213423008: Add pause_on_start flag to WorkerProcessMsg_CreateWorker_Params. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated yurys's comment 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
« no previous file with comments | « content/common/worker_messages.h ('k') | content/worker/websharedworker_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WORKER_WEBSHAREDWORKER_STUB_H_ 5 #ifndef CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_
6 #define CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ 6 #define CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/child/scoped_child_process_reference.h" 9 #include "content/child/scoped_child_process_reference.h"
10 #include "content/worker/websharedworkerclient_proxy.h" 10 #include "content/worker/websharedworkerclient_proxy.h"
(...skipping 12 matching lines...) Expand all
23 class WebMessagePortChannelImpl; 23 class WebMessagePortChannelImpl;
24 24
25 // This class creates a WebSharedWorker, and translates incoming IPCs to the 25 // This class creates a WebSharedWorker, and translates incoming IPCs to the
26 // appropriate WebSharedWorker APIs. 26 // appropriate WebSharedWorker APIs.
27 class WebSharedWorkerStub : public IPC::Listener { 27 class WebSharedWorkerStub : public IPC::Listener {
28 public: 28 public:
29 WebSharedWorkerStub(const GURL& url, 29 WebSharedWorkerStub(const GURL& url,
30 const base::string16& name, 30 const base::string16& name,
31 const base::string16& content_security_policy, 31 const base::string16& content_security_policy,
32 blink::WebContentSecurityPolicyType security_policy_type, 32 blink::WebContentSecurityPolicyType security_policy_type,
33 bool pause_on_start,
33 int route_id); 34 int route_id);
34 35
35 // IPC::Listener implementation. 36 // IPC::Listener implementation.
36 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 37 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
37 virtual void OnChannelError() OVERRIDE; 38 virtual void OnChannelError() OVERRIDE;
38 39
39 // Invoked when the WebSharedWorkerClientProxy is shutting down. 40 // Invoked when the WebSharedWorkerClientProxy is shutting down.
40 void Shutdown(); 41 void Shutdown();
41 42
42 void WorkerScriptLoaded(); 43 void WorkerScriptLoaded();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 75
75 typedef std::vector<WebMessagePortChannelImpl*> PendingChannelList; 76 typedef std::vector<WebMessagePortChannelImpl*> PendingChannelList;
76 PendingChannelList pending_channels_; 77 PendingChannelList pending_channels_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub); 79 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub);
79 }; 80 };
80 81
81 } // namespace content 82 } // namespace content
82 83
83 #endif // CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ 84 #endif // CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/worker_messages.h ('k') | content/worker/websharedworker_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698