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

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

Issue 223163005: Make AppCache support for SharedWorker in a renderer process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | content/renderer/shared_worker/embedded_shared_worker_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 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"
11 #include "third_party/WebKit/public/platform/WebString.h" 11 #include "third_party/WebKit/public/platform/WebString.h"
12 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" 12 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h"
13 #include "third_party/WebKit/public/web/WebSharedWorkerClient.h" 13 #include "third_party/WebKit/public/web/WebSharedWorkerClient.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 namespace blink { 16 namespace blink {
17 class WebApplicationCacheHost; 17 class WebApplicationCacheHost;
18 class WebApplicationCacheHostClient; 18 class WebApplicationCacheHostClient;
19 class WebMessagePortChannel; 19 class WebMessagePortChannel;
20 class WebNotificationPresenter; 20 class WebNotificationPresenter;
21 class WebSecurityOrigin; 21 class WebSecurityOrigin;
22 class WebSharedWorker; 22 class WebSharedWorker;
23 class WebWorkerPermissionClientProxy; 23 class WebWorkerPermissionClientProxy;
24 } 24 }
25 25
26 namespace content { 26 namespace content {
27 class SharedWorkerDevToolsAgent; 27 class SharedWorkerDevToolsAgent;
28 class WebApplicationCacheHostImpl;
28 class WebMessagePortChannelImpl; 29 class WebMessagePortChannelImpl;
29 30
30 class EmbeddedSharedWorkerStub : public IPC::Listener, 31 class EmbeddedSharedWorkerStub : public IPC::Listener,
31 public blink::WebSharedWorkerClient { 32 public blink::WebSharedWorkerClient {
32 public: 33 public:
33 EmbeddedSharedWorkerStub( 34 EmbeddedSharedWorkerStub(
34 const GURL& url, 35 const GURL& url,
35 const base::string16& name, 36 const base::string16& name,
36 const base::string16& content_security_policy, 37 const base::string16& content_security_policy,
37 blink::WebContentSecurityPolicyType security_policy_type, 38 blink::WebContentSecurityPolicyType security_policy_type,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 base::string16 name_; 74 base::string16 name_;
74 bool runing_; 75 bool runing_;
75 GURL url_; 76 GURL url_;
76 blink::WebSharedWorker* impl_; 77 blink::WebSharedWorker* impl_;
77 scoped_ptr<SharedWorkerDevToolsAgent> worker_devtools_agent_; 78 scoped_ptr<SharedWorkerDevToolsAgent> worker_devtools_agent_;
78 79
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_;
84 WebApplicationCacheHostImpl* app_cache_host_;
83 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); 85 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub);
84 }; 86 };
85 87
86 } // namespace content 88 } // namespace content
87 89
88 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H 90 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H
OLDNEW
« no previous file with comments | « no previous file | content/renderer/shared_worker/embedded_shared_worker_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698