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

Side by Side Diff: Source/core/workers/WorkerScriptLoader.h

Issue 204983007: Make ThreadableLoader class to use references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments Created 6 years, 8 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 unified diff | Download patch
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.cpp ('k') | Source/core/workers/WorkerScriptLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.cpp ('k') | Source/core/workers/WorkerScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698