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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 #include "public/web/WebView.h" | 65 #include "public/web/WebView.h" |
66 #include "public/web/WebWorkerPermissionClientProxy.h" | 66 #include "public/web/WebWorkerPermissionClientProxy.h" |
67 #include "web/DatabaseClientImpl.h" | 67 #include "web/DatabaseClientImpl.h" |
68 #include "web/LocalFileSystemClient.h" | 68 #include "web/LocalFileSystemClient.h" |
69 #include "web/WebDataSourceImpl.h" | 69 #include "web/WebDataSourceImpl.h" |
70 #include "web/WebLocalFrameImpl.h" | 70 #include "web/WebLocalFrameImpl.h" |
71 #include "web/WorkerPermissionClient.h" | 71 #include "web/WorkerPermissionClient.h" |
72 #include "wtf/Functional.h" | 72 #include "wtf/Functional.h" |
73 #include "wtf/MainThread.h" | 73 #include "wtf/MainThread.h" |
74 | 74 |
75 using namespace blink; | |
76 | |
77 namespace blink { | 75 namespace blink { |
78 | 76 |
79 // A thin wrapper for one-off script loading. | 77 // A thin wrapper for one-off script loading. |
80 class WebSharedWorkerImpl::Loader : public WorkerScriptLoaderClient { | 78 class WebSharedWorkerImpl::Loader : public WorkerScriptLoaderClient { |
81 public: | 79 public: |
82 static PassOwnPtr<Loader> create() | 80 static PassOwnPtr<Loader> create() |
83 { | 81 { |
84 return adoptPtr(new Loader()); | 82 return adoptPtr(new Loader()); |
85 } | 83 } |
86 | 84 |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 workerThread()->postDebuggerTask(createCrossThreadTask(dispatchOnInspectorBa
ckendTask, String(message))); | 447 workerThread()->postDebuggerTask(createCrossThreadTask(dispatchOnInspectorBa
ckendTask, String(message))); |
450 workerThread()->interruptAndDispatchInspectorCommands(); | 448 workerThread()->interruptAndDispatchInspectorCommands(); |
451 } | 449 } |
452 | 450 |
453 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) | 451 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) |
454 { | 452 { |
455 return new WebSharedWorkerImpl(client); | 453 return new WebSharedWorkerImpl(client); |
456 } | 454 } |
457 | 455 |
458 } // namespace blink | 456 } // namespace blink |
OLD | NEW |