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

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

Issue 1775933002: CORS-RFC1918: Pipe creator address space through SharedWorker creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 4 years, 9 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 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/macros.h" 10 #include "base/macros.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/platform/WebAddressSpace.h"
12 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" 13 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h"
13 #include "third_party/WebKit/public/web/WebSharedWorkerCreationContextType.h" 14 #include "third_party/WebKit/public/web/WebSharedWorkerCreationContextType.h"
14 #include "third_party/WebKit/public/web/WebSharedWorkerRepositoryClient.h" 15 #include "third_party/WebKit/public/web/WebSharedWorkerRepositoryClient.h"
15 16
16 namespace content { 17 namespace content {
17 18
18 class RenderFrameImpl; 19 class RenderFrameImpl;
19 20
20 class SharedWorkerRepository : public RenderFrameObserver, 21 class SharedWorkerRepository : public RenderFrameObserver,
21 public blink::WebSharedWorkerRepositoryClient { 22 public blink::WebSharedWorkerRepositoryClient {
22 public: 23 public:
23 explicit SharedWorkerRepository(RenderFrameImpl* render_frame); 24 explicit SharedWorkerRepository(RenderFrameImpl* render_frame);
24 ~SharedWorkerRepository() override; 25 ~SharedWorkerRepository() override;
25 26
26 // WebSharedWorkerRepositoryClient overrides. 27 // WebSharedWorkerRepositoryClient overrides.
27 blink::WebSharedWorkerConnector* createSharedWorkerConnector( 28 blink::WebSharedWorkerConnector* createSharedWorkerConnector(
28 const blink::WebURL& url, 29 const blink::WebURL& url,
29 const blink::WebString& name, 30 const blink::WebString& name,
30 DocumentID document_id, 31 DocumentID document_id,
31 const blink::WebString& content_security_policy, 32 const blink::WebString& content_security_policy,
32 blink::WebContentSecurityPolicyType, 33 blink::WebContentSecurityPolicyType,
34 blink::WebAddressSpace,
33 blink::WebSharedWorkerCreationContextType, 35 blink::WebSharedWorkerCreationContextType,
34 blink::WebWorkerCreationError* error) override; 36 blink::WebWorkerCreationError* error) override;
35 void documentDetached(DocumentID document_id) override; 37 void documentDetached(DocumentID document_id) override;
36 38
37 private: 39 private:
38 std::set<DocumentID> documents_with_workers_; 40 std::set<DocumentID> documents_with_workers_;
39 41
40 DISALLOW_COPY_AND_ASSIGN(SharedWorkerRepository); 42 DISALLOW_COPY_AND_ASSIGN(SharedWorkerRepository);
41 }; 43 };
42 44
43 } // namespace content 45 } // namespace content
44 46
45 #endif // CONTENT_RENDERER_SHARED_WORKER_REPOSITORY_H_ 47 #endif // CONTENT_RENDERER_SHARED_WORKER_REPOSITORY_H_
OLDNEW
« no previous file with comments | « content/renderer/shared_worker/embedded_shared_worker_stub.cc ('k') | content/renderer/shared_worker_repository.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698