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

Side by Side Diff: chrome/browser/automation/url_request_automation_job.h

Issue 5298008: net: Add namespace net to URLRequest and URLRequestJob classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some chromeos fixes Created 10 years 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 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This class simulates what wininet does when a dns lookup fails. 4 // This class simulates what wininet does when a dns lookup fails.
5 5
6 #ifndef CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ 6 #ifndef CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_
7 #define CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ 7 #define CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_
8 #pragma once 8 #pragma once
9 9
10 #include "chrome/common/ref_counted_util.h" 10 #include "chrome/common/ref_counted_util.h"
11 #include "net/url_request/url_request.h" 11 #include "net/url_request/url_request.h"
12 #include "net/url_request/url_request_job.h" 12 #include "net/url_request/url_request_job.h"
13 13
14 class AutomationResourceMessageFilter; 14 class AutomationResourceMessageFilter;
15 15
16 namespace net { 16 namespace net {
17 class HttpResponseHeaders; 17 class HttpResponseHeaders;
18 class HttpResponseInfo; 18 class HttpResponseInfo;
19 } 19 }
20 20
21 namespace IPC { 21 namespace IPC {
22 class Message; 22 class Message;
23 struct AutomationURLResponse; 23 struct AutomationURLResponse;
24 } 24 }
25 25
26 // URLRequestJob implementation that loads the resources using 26 // URLRequestJob implementation that loads the resources using
27 // automation. 27 // automation.
28 class URLRequestAutomationJob : public URLRequestJob { 28 class URLRequestAutomationJob : public net::URLRequestJob {
29 public: 29 public:
30 URLRequestAutomationJob(URLRequest* request, int tab, int request_id, 30 URLRequestAutomationJob(URLRequest* request, int tab, int request_id,
31 AutomationResourceMessageFilter* filter, 31 AutomationResourceMessageFilter* filter,
32 bool is_pending); 32 bool is_pending);
33 33
34 // Register our factory for HTTP/HTTPs requests. 34 // Register our factory for HTTP/HTTPs requests.
35 static bool EnsureProtocolFactoryRegistered(); 35 static bool EnsureProtocolFactoryRegistered();
36 36
37 static URLRequest::ProtocolFactory Factory; 37 static URLRequest::ProtocolFactory Factory;
38 38
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 // Contains the request status code, which is eventually passed to the http 121 // Contains the request status code, which is eventually passed to the http
122 // stack when we receive a Read request for a completed job. 122 // stack when we receive a Read request for a completed job.
123 URLRequestStatus request_status_; 123 URLRequestStatus request_status_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(URLRequestAutomationJob); 125 DISALLOW_COPY_AND_ASSIGN(URLRequestAutomationJob);
126 }; 126 };
127 127
128 #endif // CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ 128 #endif // CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_
129 129
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698