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

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

Issue 13687007: Remove PLATFORM(BLACKBERRY) support. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const KURL& responseURL() const; 66 const KURL& responseURL() const;
67 bool failed() const { return m_failed; } 67 bool failed() const { return m_failed; }
68 unsigned long identifier() const { return m_identifier; } 68 unsigned long identifier() const { return m_identifier; }
69 69
70 virtual void didReceiveResponse(unsigned long /*identifier*/, const Reso urceResponse&) OVERRIDE; 70 virtual void didReceiveResponse(unsigned long /*identifier*/, const Reso urceResponse&) OVERRIDE;
71 virtual void didReceiveData(const char* data, int dataLength) OVERRIDE; 71 virtual void didReceiveData(const char* data, int dataLength) OVERRIDE;
72 virtual void didFinishLoading(unsigned long identifier, double) OVERRIDE ; 72 virtual void didFinishLoading(unsigned long identifier, double) OVERRIDE ;
73 virtual void didFail(const ResourceError&) OVERRIDE; 73 virtual void didFail(const ResourceError&) OVERRIDE;
74 virtual void didFailRedirectCheck() OVERRIDE; 74 virtual void didFailRedirectCheck() OVERRIDE;
75 75
76 #if PLATFORM(CHROMIUM) || PLATFORM(BLACKBERRY) 76 #if PLATFORM(CHROMIUM)
77 void setTargetType(ResourceRequest::TargetType targetType) { m_targetTyp e = targetType; } 77 void setTargetType(ResourceRequest::TargetType targetType) { m_targetTyp e = targetType; }
78 #endif 78 #endif
79 79
80 private: 80 private:
81 friend class WTF::RefCounted<WorkerScriptLoader>; 81 friend class WTF::RefCounted<WorkerScriptLoader>;
82 82
83 WorkerScriptLoader(); 83 WorkerScriptLoader();
84 ~WorkerScriptLoader(); 84 ~WorkerScriptLoader();
85 85
86 PassOwnPtr<ResourceRequest> createResourceRequest(); 86 PassOwnPtr<ResourceRequest> createResourceRequest();
87 void notifyFinished(); 87 void notifyFinished();
88 88
89 WorkerScriptLoaderClient* m_client; 89 WorkerScriptLoaderClient* m_client;
90 RefPtr<ThreadableLoader> m_threadableLoader; 90 RefPtr<ThreadableLoader> m_threadableLoader;
91 String m_responseEncoding; 91 String m_responseEncoding;
92 RefPtr<TextResourceDecoder> m_decoder; 92 RefPtr<TextResourceDecoder> m_decoder;
93 StringBuilder m_script; 93 StringBuilder m_script;
94 KURL m_url; 94 KURL m_url;
95 KURL m_responseURL; 95 KURL m_responseURL;
96 bool m_failed; 96 bool m_failed;
97 unsigned long m_identifier; 97 unsigned long m_identifier;
98 bool m_finishing; 98 bool m_finishing;
99 #if PLATFORM(CHROMIUM) || PLATFORM(BLACKBERRY) 99 #if PLATFORM(CHROMIUM)
100 ResourceRequest::TargetType m_targetType; 100 ResourceRequest::TargetType m_targetType;
101 #endif 101 #endif
102 }; 102 };
103 103
104 } // namespace WebCore 104 } // namespace WebCore
105 105
106 #endif // ENABLE(WORKERS) 106 #endif // ENABLE(WORKERS)
107 107
108 #endif // WorkerScriptLoader_h 108 #endif // WorkerScriptLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698