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

Side by Side Diff: net/proxy/mock_proxy_script_fetcher.h

Issue 9078003: Poll PAC scripts for content changes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix dcheck reached on bot Created 8 years, 11 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 | « net/proxy/mock_proxy_resolver.h ('k') | net/proxy/mock_proxy_script_fetcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_PROXY_MOCK_PROXY_SCRIPT_FETCHER_H_ 5 #ifndef NET_PROXY_MOCK_PROXY_SCRIPT_FETCHER_H_
6 #define NET_PROXY_MOCK_PROXY_SCRIPT_FETCHER_H_ 6 #define NET_PROXY_MOCK_PROXY_SCRIPT_FETCHER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 16 matching lines...) Expand all
27 virtual int Fetch(const GURL& url, 27 virtual int Fetch(const GURL& url,
28 string16* text, 28 string16* text,
29 const CompletionCallback& callback) OVERRIDE; 29 const CompletionCallback& callback) OVERRIDE;
30 virtual void Cancel() OVERRIDE; 30 virtual void Cancel() OVERRIDE;
31 virtual URLRequestContext* GetRequestContext() const OVERRIDE; 31 virtual URLRequestContext* GetRequestContext() const OVERRIDE;
32 32
33 void NotifyFetchCompletion(int result, const std::string& ascii_text); 33 void NotifyFetchCompletion(int result, const std::string& ascii_text);
34 const GURL& pending_request_url() const; 34 const GURL& pending_request_url() const;
35 bool has_pending_request() const; 35 bool has_pending_request() const;
36 36
37 // Spins the message loop until this->Fetch() is invoked.
38 void WaitUntilFetch();
39
37 private: 40 private:
38 GURL pending_request_url_; 41 GURL pending_request_url_;
39 CompletionCallback pending_request_callback_; 42 CompletionCallback pending_request_callback_;
40 string16* pending_request_text_; 43 string16* pending_request_text_;
44 bool waiting_for_fetch_;
41 }; 45 };
42 46
43 } // namespace net 47 } // namespace net
44 48
45 #endif // NET_PROXY_MOCK_PROXY_SCRIPT_FETCHER_H_ 49 #endif // NET_PROXY_MOCK_PROXY_SCRIPT_FETCHER_H_
OLDNEW
« no previous file with comments | « net/proxy/mock_proxy_resolver.h ('k') | net/proxy/mock_proxy_script_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698