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

Side by Side Diff: WebCore/loader/WorkerThreadableLoader.h

Issue 28077: WebKit side of merge from r41149 to r41181. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/WebKit/
Patch Set: Created 11 years, 10 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 | Annotate | Revision Log
OLDNEW
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 static void mainThreadDestroy(ScriptExecutionContext*, MainThreadBri dge*); 105 static void mainThreadDestroy(ScriptExecutionContext*, MainThreadBri dge*);
106 ~MainThreadBridge(); 106 ~MainThreadBridge();
107 107
108 static void mainThreadCreateLoader(ScriptExecutionContext*, MainThre adBridge*, std::auto_ptr<CrossThreadResourceRequestData>, LoadCallbacks, Content Sniff); 108 static void mainThreadCreateLoader(ScriptExecutionContext*, MainThre adBridge*, std::auto_ptr<CrossThreadResourceRequestData>, LoadCallbacks, Content Sniff);
109 static void mainThreadCancel(ScriptExecutionContext*, MainThreadBrid ge*); 109 static void mainThreadCancel(ScriptExecutionContext*, MainThreadBrid ge*);
110 virtual void didSendData(unsigned long long bytesSent, unsigned long long totalBytesToBeSent); 110 virtual void didSendData(unsigned long long bytesSent, unsigned long long totalBytesToBeSent);
111 virtual void didReceiveResponse(const ResourceResponse&); 111 virtual void didReceiveResponse(const ResourceResponse&);
112 virtual void didReceiveData(const char*, int lengthReceived); 112 virtual void didReceiveData(const char*, int lengthReceived);
113 virtual void didFinishLoading(int identifier); 113 virtual void didFinishLoading(int identifier);
114 virtual void didFail(const ResourceError&); 114 virtual void didFail(const ResourceError&);
115 virtual void didFailRedirectCheck();
115 virtual void didReceiveAuthenticationCancellation(const ResourceResp onse&); 116 virtual void didReceiveAuthenticationCancellation(const ResourceResp onse&);
116 117
117 // Only to be used on the main thread. 118 // Only to be used on the main thread.
118 RefPtr<ThreadableLoader> m_mainThreadLoader; 119 RefPtr<ThreadableLoader> m_mainThreadLoader;
119 120
120 // ThreadableLoaderClientWrapper is to be used on the worker context thread. 121 // ThreadableLoaderClientWrapper is to be used on the worker context thread.
121 // The ref counting is done on either thread. 122 // The ref counting is done on either thread.
122 RefPtr<ThreadSafeShared<ThreadableLoaderClientWrapper> > m_workerCli entWrapper; 123 RefPtr<ThreadSafeShared<ThreadableLoaderClientWrapper> > m_workerCli entWrapper;
123 124
124 // May be used on either thread. 125 // May be used on either thread.
125 WorkerMessagingProxy& m_messagingProxy; 126 WorkerMessagingProxy& m_messagingProxy;
126 }; 127 };
127 128
128 WorkerThreadableLoader(WorkerContext*, ThreadableLoaderClient*, const Re sourceRequest&, LoadCallbacks, ContentSniff); 129 WorkerThreadableLoader(WorkerContext*, ThreadableLoaderClient*, const Re sourceRequest&, LoadCallbacks, ContentSniff);
129 130
130 RefPtr<WorkerContext> m_workerContext; 131 RefPtr<WorkerContext> m_workerContext;
131 MainThreadBridge& m_bridge; 132 MainThreadBridge& m_bridge;
132 }; 133 };
133 134
134 } // namespace WebCore 135 } // namespace WebCore
135 136
136 #endif // ENABLE(WORKERS) 137 #endif // ENABLE(WORKERS)
137 138
138 #endif // WorkerThreadableLoader_h 139 #endif // WorkerThreadableLoader_h
OLDNEW
« no previous file with comments | « WebCore/loader/ThreadableLoaderClientWrapper.h ('k') | WebCore/loader/WorkerThreadableLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698