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

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

Issue 16295003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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 // 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 // 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 8
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/common/ref_counted_util.h" 10 #include "chrome/common/ref_counted_util.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 int request_id() const { 65 int request_id() const {
66 return request_id_; 66 return request_id_;
67 } 67 }
68 68
69 bool is_pending() const { 69 bool is_pending() const {
70 return is_pending_; 70 return is_pending_;
71 } 71 }
72 72
73 AutomationResourceMessageFilter* message_filter() const { 73 AutomationResourceMessageFilter* message_filter() const {
74 return message_filter_; 74 return message_filter_.get();
75 } 75 }
76 76
77 // Resumes a job, which was waiting for the external host to connect to the 77 // Resumes a job, which was waiting for the external host to connect to the
78 // automation channel. This is to ensure that this request gets routed to the 78 // automation channel. This is to ensure that this request gets routed to the
79 // external host. 79 // external host.
80 void StartPendingJob(int new_tab_handle, 80 void StartPendingJob(int new_tab_handle,
81 AutomationResourceMessageFilter* new_filter); 81 AutomationResourceMessageFilter* new_filter);
82 82
83 protected: 83 protected:
84 // Protected net::URLRequestJob override. 84 // Protected net::URLRequestJob override.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 // Size of the upload data appended to the request. 137 // Size of the upload data appended to the request.
138 uint64 upload_size_; 138 uint64 upload_size_;
139 139
140 base::WeakPtrFactory<URLRequestAutomationJob> weak_factory_; 140 base::WeakPtrFactory<URLRequestAutomationJob> weak_factory_;
141 141
142 DISALLOW_COPY_AND_ASSIGN(URLRequestAutomationJob); 142 DISALLOW_COPY_AND_ASSIGN(URLRequestAutomationJob);
143 }; 143 };
144 144
145 #endif // CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ 145 #endif // CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/browser/automation/url_request_automation_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698