| OLD | NEW |
| 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 #include "chrome/browser/chromeos/gdata/drive_protocol_handler.h" | 5 #include "chrome/browser/chromeos/gdata/drive_protocol_handler.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" |
| 17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
| 18 #include "base/threading/sequenced_worker_pool.h" | 18 #include "base/threading/sequenced_worker_pool.h" |
| 19 #include "base/utf_string_conversions.h" | 19 #include "base/utf_string_conversions.h" |
| 20 #include "chrome/browser/chromeos/gdata/drive.pb.h" | 20 #include "chrome/browser/chromeos/gdata/drive.pb.h" |
| 21 #include "chrome/browser/chromeos/gdata/drive_file_system_interface.h" | 21 #include "chrome/browser/chromeos/gdata/drive_file_system_interface.h" |
| 22 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" | 22 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" |
| 23 #include "chrome/browser/chromeos/gdata/drive_system_service.h" | 23 #include "chrome/browser/chromeos/gdata/drive_system_service.h" |
| 24 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" | |
| 25 #include "chrome/browser/chromeos/gdata/gdata_util.h" | 24 #include "chrome/browser/chromeos/gdata/gdata_util.h" |
| 25 #include "chrome/browser/google_apis/gdata_errorcode.h" |
| 26 #include "chrome/browser/profiles/profile.h" | 26 #include "chrome/browser/profiles/profile.h" |
| 27 #include "chrome/browser/profiles/profile_manager.h" | 27 #include "chrome/browser/profiles/profile_manager.h" |
| 28 #include "chrome/common/url_constants.h" | 28 #include "chrome/common/url_constants.h" |
| 29 #include "content/public/browser/browser_thread.h" | 29 #include "content/public/browser/browser_thread.h" |
| 30 #include "net/base/escape.h" | 30 #include "net/base/escape.h" |
| 31 #include "net/base/file_stream.h" | 31 #include "net/base/file_stream.h" |
| 32 #include "net/base/net_errors.h" | 32 #include "net/base/net_errors.h" |
| 33 #include "net/http/http_request_headers.h" | 33 #include "net/http/http_request_headers.h" |
| 34 #include "net/http/http_response_headers.h" | 34 #include "net/http/http_response_headers.h" |
| 35 #include "net/http/http_response_info.h" | 35 #include "net/http/http_response_info.h" |
| (...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 DriveProtocolHandler::~DriveProtocolHandler() { | 935 DriveProtocolHandler::~DriveProtocolHandler() { |
| 936 } | 936 } |
| 937 | 937 |
| 938 net::URLRequestJob* DriveProtocolHandler::MaybeCreateJob( | 938 net::URLRequestJob* DriveProtocolHandler::MaybeCreateJob( |
| 939 net::URLRequest* request, net::NetworkDelegate* network_delegate) const { | 939 net::URLRequest* request, net::NetworkDelegate* network_delegate) const { |
| 940 DVLOG(1) << "Handling url: " << request->url().spec(); | 940 DVLOG(1) << "Handling url: " << request->url().spec(); |
| 941 return new DriveURLRequestJob(request, network_delegate); | 941 return new DriveURLRequestJob(request, network_delegate); |
| 942 } | 942 } |
| 943 | 943 |
| 944 } // namespace gdata | 944 } // namespace gdata |
| OLD | NEW |