chromeos: dbus: add Bluetooth properties support
[chromium-blink-merge.git] / content / renderer / websharedworkerrepository_impl.h
blob8bd615c80a0ad1d1a66494fe863362b5dfc3d44c
1 // Copyright (c) 2010 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.
5 #ifndef CONTENT_RENDERER_WEBSHAREDWORKERREPOSITORY_IMPL_H_
6 #define CONTENT_RENDERER_WEBSHAREDWORKERREPOSITORY_IMPL_H_
7 #pragma once
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerRepository.h"
11 #include "base/hash_tables.h"
13 namespace WebKit {
14 class WebSharedWorker;
17 class WebSharedWorkerRepositoryImpl : public WebKit::WebSharedWorkerRepository {
18 public:
19 WebSharedWorkerRepositoryImpl();
20 virtual ~WebSharedWorkerRepositoryImpl();
22 virtual void addSharedWorker(WebKit::WebSharedWorker*, DocumentID document);
23 virtual void documentDetached(DocumentID document);
25 // Returns true if the document has created a SharedWorker (used by the
26 // WebKit code to determine if the document can be suspended).
27 virtual bool hasSharedWorkers(DocumentID document);
29 private:
30 // The set of documents that have created a SharedWorker.
31 typedef base::hash_set<DocumentID> DocumentSet;
32 DocumentSet shared_worker_parents_;
35 #endif // CONTENT_RENDERER_WEBSHAREDWORKERREPOSITORY_IMPL_H_