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

Side by Side Diff: google_apis/drive/request_sender.h

Issue 498123003: Remove implicit conversions from scoped_refptr to T* in google_apis/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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 | « google_apis/drive/auth_service.cc ('k') | google_apis/gaia/gaia_auth_fetcher_unittest.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 GOOGLE_APIS_DRIVE_REQUEST_SENDER_H_ 5 #ifndef GOOGLE_APIS_DRIVE_REQUEST_SENDER_H_
6 #define GOOGLE_APIS_DRIVE_REQUEST_SENDER_H_ 6 #define GOOGLE_APIS_DRIVE_REQUEST_SENDER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // requests issued through the request sender if the value is not empty. 46 // requests issued through the request sender if the value is not empty.
47 RequestSender(AuthServiceInterface* auth_service, 47 RequestSender(AuthServiceInterface* auth_service,
48 net::URLRequestContextGetter* url_request_context_getter, 48 net::URLRequestContextGetter* url_request_context_getter,
49 base::SequencedTaskRunner* blocking_task_runner, 49 base::SequencedTaskRunner* blocking_task_runner,
50 const std::string& custom_user_agent); 50 const std::string& custom_user_agent);
51 ~RequestSender(); 51 ~RequestSender();
52 52
53 AuthServiceInterface* auth_service() { return auth_service_.get(); } 53 AuthServiceInterface* auth_service() { return auth_service_.get(); }
54 54
55 net::URLRequestContextGetter* url_request_context_getter() const { 55 net::URLRequestContextGetter* url_request_context_getter() const {
56 return url_request_context_getter_; 56 return url_request_context_getter_.get();
57 } 57 }
58 58
59 base::SequencedTaskRunner* blocking_task_runner() const { 59 base::SequencedTaskRunner* blocking_task_runner() const {
60 return blocking_task_runner_.get(); 60 return blocking_task_runner_.get();
61 } 61 }
62 62
63 // Starts a request implementing the AuthenticatedRequestInterface 63 // Starts a request implementing the AuthenticatedRequestInterface
64 // interface, and makes the request retry upon authentication failures by 64 // interface, and makes the request retry upon authentication failures by
65 // calling back to RetryRequest. The |request| object is owned by this 65 // calling back to RetryRequest. The |request| object is owned by this
66 // RequestSender. It will be deleted in RequestSender's destructor or 66 // RequestSender. It will be deleted in RequestSender's destructor or
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // Note: This should remain the last member so it'll be destroyed and 102 // Note: This should remain the last member so it'll be destroyed and
103 // invalidate its weak pointers before any other members are destroyed. 103 // invalidate its weak pointers before any other members are destroyed.
104 base::WeakPtrFactory<RequestSender> weak_ptr_factory_; 104 base::WeakPtrFactory<RequestSender> weak_ptr_factory_;
105 105
106 DISALLOW_COPY_AND_ASSIGN(RequestSender); 106 DISALLOW_COPY_AND_ASSIGN(RequestSender);
107 }; 107 };
108 108
109 } // namespace google_apis 109 } // namespace google_apis
110 110
111 #endif // GOOGLE_APIS_DRIVE_REQUEST_SENDER_H_ 111 #endif // GOOGLE_APIS_DRIVE_REQUEST_SENDER_H_
OLDNEW
« no previous file with comments | « google_apis/drive/auth_service.cc ('k') | google_apis/gaia/gaia_auth_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698