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

Unified Diff: trunk/src/sync/internal_api/public/attachments/attachment_uploader_impl.h

Issue 316413002: Revert 275293 "Add authentication support to AttachmentUploaderI..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/sync/internal_api/public/attachments/attachment_uploader_impl.h
===================================================================
--- trunk/src/sync/internal_api/public/attachments/attachment_uploader_impl.h (revision 275356)
+++ trunk/src/sync/internal_api/public/attachments/attachment_uploader_impl.h (working copy)
@@ -7,7 +7,6 @@
#include "base/containers/scoped_ptr_hash_map.h"
#include "base/threading/non_thread_safe.h"
-#include "google_apis/gaia/oauth2_token_service_request.h"
#include "net/url_request/url_request_context_getter.h"
#include "sync/api/attachments/attachment_uploader.h"
@@ -24,23 +23,10 @@
public base::NonThreadSafe {
public:
// |url_prefix| is the URL prefix (including trailing slash) to be used when
- // uploading attachments.
- //
- // |url_request_context_getter| provides a URLRequestContext.
- //
- // |account_id| is the account id to use for uploads.
- //
- // |scopes| is the set of scopes to use for uploads.
- //
- // |token_service_provider| provides an OAuth2 token service.
- AttachmentUploaderImpl(
- const std::string& url_prefix,
- const scoped_refptr<net::URLRequestContextGetter>&
- url_request_context_getter,
- const std::string& account_id,
- const OAuth2TokenService::ScopeSet& scopes,
- scoped_ptr<OAuth2TokenServiceRequest::TokenServiceProvider>
- token_service_provider);
+ // |uploading attachments.
+ AttachmentUploaderImpl(const std::string& url_prefix,
+ const scoped_refptr<net::URLRequestContextGetter>&
+ url_request_context_getter);
virtual ~AttachmentUploaderImpl();
// AttachmentUploader implementation.
@@ -57,10 +43,6 @@
std::string url_prefix_;
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
- std::string account_id_;
- OAuth2TokenService::ScopeSet scopes_;
- scoped_ptr<OAuth2TokenServiceRequest::TokenServiceProvider>
- token_service_provider_;
StateMap state_map_;
DISALLOW_COPY_AND_ASSIGN(AttachmentUploaderImpl);
};
« no previous file with comments | « trunk/src/sync/internal_api/attachments/attachment_uploader_impl_unittest.cc ('k') | trunk/src/sync/sync_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698