OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "public/platform/WebMessagePortChannel.h" | 45 #include "public/platform/WebMessagePortChannel.h" |
46 #include "public/platform/WebString.h" | 46 #include "public/platform/WebString.h" |
47 #include "public/platform/WebURL.h" | 47 #include "public/platform/WebURL.h" |
48 #include "public/web/WebContentSecurityPolicy.h" | 48 #include "public/web/WebContentSecurityPolicy.h" |
49 #include "public/web/WebFrameClient.h" | 49 #include "public/web/WebFrameClient.h" |
50 #include "public/web/WebKit.h" | 50 #include "public/web/WebKit.h" |
51 #include "public/web/WebSharedWorker.h" | 51 #include "public/web/WebSharedWorker.h" |
52 #include "public/web/WebSharedWorkerRepositoryClient.h" | 52 #include "public/web/WebSharedWorkerRepositoryClient.h" |
53 #include "web/WebLocalFrameImpl.h" | 53 #include "web/WebLocalFrameImpl.h" |
54 | 54 |
55 using namespace WebCore; | 55 using namespace blink; |
56 | 56 |
57 namespace blink { | 57 namespace blink { |
58 | 58 |
59 // Callback class that keeps the SharedWorker and WebSharedWorker objects alive
while connecting. | 59 // Callback class that keeps the SharedWorker and WebSharedWorker objects alive
while connecting. |
60 class SharedWorkerConnector : private WebSharedWorkerConnector::ConnectListener
{ | 60 class SharedWorkerConnector : private WebSharedWorkerConnector::ConnectListener
{ |
61 public: | 61 public: |
62 SharedWorkerConnector(PassRefPtrWillBeRawPtr<SharedWorker> worker, const KUR
L& url, const String& name, PassOwnPtr<WebMessagePortChannel> channel, PassOwnPt
r<WebSharedWorkerConnector> webWorkerConnector) | 62 SharedWorkerConnector(PassRefPtrWillBeRawPtr<SharedWorker> worker, const KUR
L& url, const String& name, PassOwnPtr<WebMessagePortChannel> channel, PassOwnPt
r<WebSharedWorkerConnector> webWorkerConnector) |
63 : m_worker(worker) | 63 : m_worker(worker) |
64 , m_url(url) | 64 , m_url(url) |
65 , m_name(name) | 65 , m_name(name) |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 ASSERT(m_client); | 136 ASSERT(m_client); |
137 m_client->documentDetached(getId(document)); | 137 m_client->documentDetached(getId(document)); |
138 } | 138 } |
139 | 139 |
140 SharedWorkerRepositoryClientImpl::SharedWorkerRepositoryClientImpl(WebSharedWork
erRepositoryClient* client) | 140 SharedWorkerRepositoryClientImpl::SharedWorkerRepositoryClientImpl(WebSharedWork
erRepositoryClient* client) |
141 : m_client(client) | 141 : m_client(client) |
142 { | 142 { |
143 } | 143 } |
144 | 144 |
145 } // namespace blink | 145 } // namespace blink |
OLD | NEW |