Lines Matching refs:URLFetcher
33 class URLFetcher::Core
34 : public base::RefCountedThreadSafe<URLFetcher::Core>,
41 Core(URLFetcher* fetcher,
44 URLFetcher::Delegate* d);
65 URLFetcher::Delegate* delegate() const { return delegate_; }
70 friend class base::RefCountedThreadSafe<URLFetcher::Core>;
117 URLFetcher* fetcher_; // Corresponding fetcher object
121 URLFetcher::Delegate* delegate_; // Object to notify on completion
160 // specified by the owner URLFetcher instance, we'll give up.
163 // True if the URLFetcher has been cancelled.
172 friend class URLFetcher;
176 URLFetcher::Core::Registry::Registry() {}
177 URLFetcher::Core::Registry::~Registry() {}
179 void URLFetcher::Core::Registry::AddURLFetcherCore(Core* core) {
184 void URLFetcher::Core::Registry::RemoveURLFetcherCore(Core* core) {
189 void URLFetcher::Core::Registry::CancelAll() {
195 base::LazyInstance<URLFetcher::Core::Registry>
196 URLFetcher::Core::g_registry(base::LINKER_INITIALIZED);
199 URLFetcher::Factory* URLFetcher::factory_ = NULL;
202 bool URLFetcher::g_interception_enabled = false;
204 URLFetcher::URLFetcher(const GURL& url,
213 URLFetcher::~URLFetcher() {
218 URLFetcher* URLFetcher::Create(int id, const GURL& url,
225 new URLFetcher(url, request_type, d);
229 URLFetcher::Core::Core(URLFetcher* fetcher,
232 URLFetcher::Delegate* d)
247 URLFetcher::Core::~Core() {
253 void URLFetcher::Core::Start() {
264 void URLFetcher::Core::Stop() {
274 void URLFetcher::Core::ReceivedContentWasMalformed() {
282 void URLFetcher::Core::CancelAll() {
286 void URLFetcher::Core::OnResponseStarted(net::URLRequest* request) {
304 void URLFetcher::Core::CompleteAddingUploadDataChunk(
314 void URLFetcher::Core::AppendChunkToUpload(const std::string& content,
324 void URLFetcher::Core::OnReadCompleted(net::URLRequest* request,
358 void URLFetcher::Core::StartURLRequest() {
363 // run after the URLFetcher was already stopped.
416 void URLFetcher::Core::StartURLRequestWhenAppropriate() {
440 void URLFetcher::Core::CancelURLRequest() {
448 // references to URLFetcher::Core at this point so it may take a while to
455 void URLFetcher::Core::OnCompletedURLRequest(
490 void URLFetcher::Core::NotifyMalformedContent() {
496 void URLFetcher::Core::ReleaseRequest() {
501 base::TimeTicks URLFetcher::Core::GetBackoffReleaseTime() {
518 void URLFetcher::set_upload_data(const std::string& upload_content_type,
525 void URLFetcher::set_chunked_upload(const std::string& content_type) {
534 void URLFetcher::AppendChunkToUpload(const std::string& data,
540 const std::string& URLFetcher::upload_data() const {
544 void URLFetcher::set_referrer(const std::string& referrer) {
548 void URLFetcher::set_load_flags(int load_flags) {
552 int URLFetcher::load_flags() const {
556 void URLFetcher::set_extra_request_headers(
562 void URLFetcher::set_request_context(
568 net::URLRequestContextGetter* URLFetcher::request_context() {
573 void URLFetcher::set_automatically_retry_on_5xx(bool retry) {
577 net::HttpResponseHeaders* URLFetcher::response_headers() const {
581 void URLFetcher::Start() {
585 const GURL& URLFetcher::url() const {
589 void URLFetcher::ReceivedContentWasMalformed() {
594 void URLFetcher::CancelAll() {
599 int URLFetcher::GetNumFetcherCores() {
603 URLFetcher::Delegate* URLFetcher::delegate() const {