OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 class WorkerScriptLoaderClient; | 46 class WorkerScriptLoaderClient; |
47 | 47 |
48 class WorkerScriptLoader FINAL : public RefCounted<WorkerScriptLoader>, publ
ic ThreadableLoaderClient { | 48 class WorkerScriptLoader FINAL : public RefCounted<WorkerScriptLoader>, publ
ic ThreadableLoaderClient { |
49 WTF_MAKE_FAST_ALLOCATED; | 49 WTF_MAKE_FAST_ALLOCATED; |
50 public: | 50 public: |
51 static PassRefPtr<WorkerScriptLoader> create() | 51 static PassRefPtr<WorkerScriptLoader> create() |
52 { | 52 { |
53 return adoptRef(new WorkerScriptLoader()); | 53 return adoptRef(new WorkerScriptLoader()); |
54 } | 54 } |
55 | 55 |
56 void loadSynchronously(ExecutionContext*, const KURL&, CrossOriginReques
tPolicy); | 56 void loadSynchronously(ExecutionContext&, const KURL&, CrossOriginReques
tPolicy); |
57 void loadAsynchronously(ExecutionContext*, const KURL&, CrossOriginReque
stPolicy, WorkerScriptLoaderClient*); | 57 void loadAsynchronously(ExecutionContext&, const KURL&, CrossOriginReque
stPolicy, WorkerScriptLoaderClient*); |
58 | 58 |
59 void notifyError(); | 59 void notifyError(); |
60 | 60 |
61 // This will immediately lead to notifyFinished() if loadAsynchronously | 61 // This will immediately lead to notifyFinished() if loadAsynchronously |
62 // is in progress. | 62 // is in progress. |
63 void cancel(); | 63 void cancel(); |
64 | 64 |
65 void setClient(WorkerScriptLoaderClient* client) { m_client = client; } | 65 void setClient(WorkerScriptLoaderClient* client) { m_client = client; } |
66 | 66 |
67 String script(); | 67 String script(); |
(...skipping 28 matching lines...) Expand all Loading... |
96 KURL m_responseURL; | 96 KURL m_responseURL; |
97 bool m_failed; | 97 bool m_failed; |
98 unsigned long m_identifier; | 98 unsigned long m_identifier; |
99 bool m_finishing; | 99 bool m_finishing; |
100 ResourceRequest::TargetType m_targetType; | 100 ResourceRequest::TargetType m_targetType; |
101 }; | 101 }; |
102 | 102 |
103 } // namespace WebCore | 103 } // namespace WebCore |
104 | 104 |
105 #endif // WorkerScriptLoader_h | 105 #endif // WorkerScriptLoader_h |
OLD | NEW |