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

Unified Diff: Source/core/workers/SharedWorkerRepositoryClient.h

Issue 40143003: Simplify SharedWorkerRepository code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/workers/SharedWorkerRepository.h ('k') | Source/web/SharedWorkerRepository.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/SharedWorkerRepositoryClient.h
diff --git a/Source/platform/PlatformThreadData.h b/Source/core/workers/SharedWorkerRepositoryClient.h
similarity index 73%
copy from Source/platform/PlatformThreadData.h
copy to Source/core/workers/SharedWorkerRepositoryClient.h
index a3237ca653dbb155413d303a055209778e10c22b..c337e4e0fd83a8320509cc5c3092219ceeac374b 100644
--- a/Source/platform/PlatformThreadData.h
+++ b/Source/core/workers/SharedWorkerRepositoryClient.h
@@ -28,32 +28,31 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef PlatformThreadData_h
-#define PlatformThreadData_h
+#ifndef SharedWorkerRepositoryClient_h
+#define SharedWorkerRepositoryClient_h
-#include "platform/PlatformExport.h"
+#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
-#include "wtf/OwnPtr.h"
namespace WebCore {
-class ThreadTimers;
+class Document;
+class ExceptionState;
+class KURL;
+class MessagePortChannel;
+class SharedWorker;
-class PLATFORM_EXPORT PlatformThreadData {
- WTF_MAKE_NONCOPYABLE(PlatformThreadData);
+class SharedWorkerRepositoryClient {
+ WTF_MAKE_NONCOPYABLE(SharedWorkerRepositoryClient);
public:
- PlatformThreadData();
- ~PlatformThreadData();
+ SharedWorkerRepositoryClient() { }
+ virtual ~SharedWorkerRepositoryClient() { }
- ThreadTimers& threadTimers() { return *m_threadTimers; }
+ virtual void connect(PassRefPtr<SharedWorker>, PassRefPtr<MessagePortChannel>, const KURL&, const String& name, ExceptionState&) = 0;
- static PlatformThreadData& current();
- void destroy();
-
-private:
- OwnPtr<ThreadTimers> m_threadTimers;
+ virtual void documentDetached(Document*) = 0;
};
} // namespace WebCore
-#endif // PlatformThreadData_h
+#endif // SharedWorkerRepositoryClient_h
« no previous file with comments | « Source/core/workers/SharedWorkerRepository.h ('k') | Source/web/SharedWorkerRepository.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698