OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <string> | 6 #include <string> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 net::URLRequestJob* MaybeInterceptResponse( | 109 net::URLRequestJob* MaybeInterceptResponse( |
110 net::URLRequest* request, | 110 net::URLRequest* request, |
111 net::NetworkDelegate* network_delegate) const override { | 111 net::NetworkDelegate* network_delegate) const override { |
112 return nullptr; | 112 return nullptr; |
113 } | 113 } |
114 | 114 |
115 bool IsHandledProtocol(const std::string& scheme) const override { | 115 bool IsHandledProtocol(const std::string& scheme) const override { |
116 return true; | 116 return true; |
117 } | 117 } |
118 | 118 |
119 bool IsHandledURL(const GURL& url) const override { return true; } | |
120 | |
121 bool IsSafeRedirectTarget(const GURL& location) const override { | 119 bool IsSafeRedirectTarget(const GURL& location) const override { |
122 return false; | 120 return false; |
123 } | 121 } |
124 | 122 |
125 private: | 123 private: |
126 std::string storage_domain_; | 124 std::string storage_domain_; |
127 FileSystemContext* file_system_context_; | 125 FileSystemContext* file_system_context_; |
128 }; | 126 }; |
129 | 127 |
130 } // namespace | 128 } // namespace |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 EXPECT_TRUE(delegate_->request_failed()); | 475 EXPECT_TRUE(delegate_->request_failed()); |
478 EXPECT_EQ(net::ERR_FILE_NOT_FOUND, delegate_->request_status()); | 476 EXPECT_EQ(net::ERR_FILE_NOT_FOUND, delegate_->request_status()); |
479 | 477 |
480 ASSERT_FALSE( | 478 ASSERT_FALSE( |
481 storage::ExternalMountPoints::GetSystemInstance()->RevokeFileSystem( | 479 storage::ExternalMountPoints::GetSystemInstance()->RevokeFileSystem( |
482 kValidExternalMountPoint)); | 480 kValidExternalMountPoint)); |
483 } | 481 } |
484 | 482 |
485 } // namespace | 483 } // namespace |
486 } // namespace content | 484 } // namespace content |
OLD | NEW |