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

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

Issue 40303002: Simplify SharedWorkerRepository code (Chromium side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_SHARED_WORKER_REPOSITORY_H_
6 #define CONTENT_RENDERER_SHARED_WORKER_REPOSITORY_H_
7
8 #include <set>
9
10 #include "base/basictypes.h"
11 #include "content/public/renderer/render_view_observer.h"
12 #include "third_party/WebKit/public/web/WebSharedWorkerRepositoryClient.h"
13
14 namespace content {
15
16 class RenderViewImpl;
17
18 class SharedWorkerRepository : public RenderViewObserver,
19 public WebKit::WebSharedWorkerRepositoryClient {
20 public:
21 explicit SharedWorkerRepository(RenderViewImpl* render_view);
22 virtual ~SharedWorkerRepository();
23
24 // WebSharedWorkerRepositoryClient overrides.
25 virtual WebKit::WebSharedWorker* createSharedWorker(
26 const WebKit::WebURL& url,
27 const WebKit::WebString& name,
28 DocumentID document_id) OVERRIDE;
29 virtual void documentDetached(DocumentID document_id) OVERRIDE;
30
31 private:
32 std::set<DocumentID> documents_with_workers_;
33
34 DISALLOW_COPY_AND_ASSIGN(SharedWorkerRepository);
35 };
36
37 } // namespace content
38
39 #endif // CONTENT_RENDERER_SHARED_WORKER_REPOSITORY_H_
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | content/renderer/shared_worker_repository.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698