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

Side by Side Diff: content/renderer/shared_worker_repository.h

Issue 115713004: Move the worker script loading code to the worker process (phase:2/5) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move IPC_ENUM_TRAITS(blink::WebContentSecurityPolicyType) to content_param_traits_macros.h. Created 6 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
« no previous file with comments | « content/common/worker_messages.h ('k') | content/renderer/shared_worker_repository.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_REPOSITORY_H_ 5 #ifndef CONTENT_RENDERER_SHARED_WORKER_REPOSITORY_H_
6 #define CONTENT_RENDERER_SHARED_WORKER_REPOSITORY_H_ 6 #define CONTENT_RENDERER_SHARED_WORKER_REPOSITORY_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "content/public/renderer/render_frame_observer.h" 11 #include "content/public/renderer/render_frame_observer.h"
12 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h"
12 #include "third_party/WebKit/public/web/WebSharedWorkerRepositoryClient.h" 13 #include "third_party/WebKit/public/web/WebSharedWorkerRepositoryClient.h"
13 14
14 namespace content { 15 namespace content {
15 16
16 class RenderFrameImpl; 17 class RenderFrameImpl;
17 18
18 class SharedWorkerRepository : public RenderFrameObserver, 19 class SharedWorkerRepository : public RenderFrameObserver,
19 public blink::WebSharedWorkerRepositoryClient { 20 public blink::WebSharedWorkerRepositoryClient {
20 public: 21 public:
21 explicit SharedWorkerRepository(RenderFrameImpl* render_frame); 22 explicit SharedWorkerRepository(RenderFrameImpl* render_frame);
22 virtual ~SharedWorkerRepository(); 23 virtual ~SharedWorkerRepository();
23 24
24 // RenderFrameObserver overrides. 25 // RenderFrameObserver overrides.
25 virtual void WebFrameCreated(blink::WebFrame* frame) OVERRIDE; 26 virtual void WebFrameCreated(blink::WebFrame* frame) OVERRIDE;
26 27
27 // WebSharedWorkerRepositoryClient overrides. 28 // WebSharedWorkerRepositoryClient overrides.
28 virtual blink::WebSharedWorkerConnector* createSharedWorkerConnector( 29 virtual blink::WebSharedWorkerConnector* createSharedWorkerConnector(
29 const blink::WebURL& url, 30 const blink::WebURL& url,
30 const blink::WebString& name, 31 const blink::WebString& name,
31 DocumentID document_id) OVERRIDE; 32 DocumentID document_id,
33 const blink::WebString& content_security_policy,
34 blink::WebContentSecurityPolicyType) OVERRIDE;
32 virtual void documentDetached(DocumentID document_id) OVERRIDE; 35 virtual void documentDetached(DocumentID document_id) OVERRIDE;
33 36
34 private: 37 private:
35 std::set<DocumentID> documents_with_workers_; 38 std::set<DocumentID> documents_with_workers_;
36 39
37 DISALLOW_COPY_AND_ASSIGN(SharedWorkerRepository); 40 DISALLOW_COPY_AND_ASSIGN(SharedWorkerRepository);
38 }; 41 };
39 42
40 } // namespace content 43 } // namespace content
41 44
42 #endif // CONTENT_RENDERER_SHARED_WORKER_REPOSITORY_H_ 45 #endif // CONTENT_RENDERER_SHARED_WORKER_REPOSITORY_H_
OLDNEW
« no previous file with comments | « content/common/worker_messages.h ('k') | content/renderer/shared_worker_repository.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698