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 "WebViewImpl.h" | 45 #include "WebViewImpl.h" |
46 #include "WorkerFileSystemClient.h" | 46 #include "WorkerFileSystemClient.h" |
47 #include "WorkerPermissionClient.h" | 47 #include "WorkerPermissionClient.h" |
48 #include "public/platform/WebString.h" | 48 #include "public/platform/WebString.h" |
49 #include "public/web/WebFrameClient.h" | 49 #include "public/web/WebFrameClient.h" |
50 #include "public/web/WebSecurityOrigin.h" | 50 #include "public/web/WebSecurityOrigin.h" |
51 #include "public/web/WebWorkerPermissionClientProxy.h" | 51 #include "public/web/WebWorkerPermissionClientProxy.h" |
52 | 52 |
53 using namespace WebCore; | 53 using namespace WebCore; |
54 | 54 |
55 namespace WebKit { | 55 namespace blink { |
56 | 56 |
57 // Chromium-specific decorator of WorkerMessagingProxy. | 57 // Chromium-specific decorator of WorkerMessagingProxy. |
58 | 58 |
59 // static | 59 // static |
60 WorkerGlobalScopeProxy* WebWorkerClientImpl::createWorkerGlobalScopeProxy(Worker
* worker) | 60 WorkerGlobalScopeProxy* WebWorkerClientImpl::createWorkerGlobalScopeProxy(Worker
* worker) |
61 { | 61 { |
62 if (worker->executionContext()->isDocument()) { | 62 if (worker->executionContext()->isDocument()) { |
63 Document* document = toDocument(worker->executionContext()); | 63 Document* document = toDocument(worker->executionContext()); |
64 WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame()); | 64 WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame()); |
65 OwnPtr<WorkerClients> workerClients = WorkerClients::create(); | 65 OwnPtr<WorkerClients> workerClients = WorkerClients::create(); |
(...skipping 15 matching lines...) Expand all Loading... |
81 WebWorkerClientImpl::WebWorkerClientImpl(Worker* worker, WebFrameImpl* webFrame,
PassOwnPtr<WorkerClients> workerClients) | 81 WebWorkerClientImpl::WebWorkerClientImpl(Worker* worker, WebFrameImpl* webFrame,
PassOwnPtr<WorkerClients> workerClients) |
82 : WebCore::WorkerMessagingProxy(worker, workerClients) | 82 : WebCore::WorkerMessagingProxy(worker, workerClients) |
83 , m_webFrame(webFrame) | 83 , m_webFrame(webFrame) |
84 { | 84 { |
85 } | 85 } |
86 | 86 |
87 WebWorkerClientImpl::~WebWorkerClientImpl() | 87 WebWorkerClientImpl::~WebWorkerClientImpl() |
88 { | 88 { |
89 } | 89 } |
90 | 90 |
91 } // namespace WebKit | 91 } // namespace blink |
OLD | NEW |