| OLD | NEW | 
|    1 // Copyright 2014 The Chromium Authors. All rights reserved. |    1 // Copyright 2014 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 "content/browser/android/url_request_content_job.h" |    5 #include "content/browser/android/url_request_content_job.h" | 
|    6  |    6  | 
|    7 #include <stdint.h> |    7 #include <stdint.h> | 
|    8  |    8  | 
|    9 #include <algorithm> |    9 #include <algorithm> | 
|   10 #include <memory> |   10 #include <memory> | 
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   62   net::URLRequestJob* MaybeInterceptResponse( |   62   net::URLRequestJob* MaybeInterceptResponse( | 
|   63       net::URLRequest* request, |   63       net::URLRequest* request, | 
|   64       net::NetworkDelegate* network_delegate) const override { |   64       net::NetworkDelegate* network_delegate) const override { | 
|   65     return nullptr; |   65     return nullptr; | 
|   66   } |   66   } | 
|   67  |   67  | 
|   68   bool IsHandledProtocol(const std::string& scheme) const override { |   68   bool IsHandledProtocol(const std::string& scheme) const override { | 
|   69     return scheme == "content"; |   69     return scheme == "content"; | 
|   70   } |   70   } | 
|   71  |   71  | 
|   72   bool IsHandledURL(const GURL& url) const override { |  | 
|   73     return IsHandledProtocol(url.scheme()); |  | 
|   74   } |  | 
|   75  |  | 
|   76   bool IsSafeRedirectTarget(const GURL& location) const override { |   72   bool IsSafeRedirectTarget(const GURL& location) const override { | 
|   77     return false; |   73     return false; | 
|   78   } |   74   } | 
|   79  |   75  | 
|   80  private: |   76  private: | 
|   81   base::FilePath path_; |   77   base::FilePath path_; | 
|   82   JobObserver* observer_; |   78   JobObserver* observer_; | 
|   83 }; |   79 }; | 
|   84  |   80  | 
|   85 class JobObserverImpl : public CallbacksJobFactory::JobObserver { |   81 class JobObserverImpl : public CallbacksJobFactory::JobObserver { | 
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  192 } |  188 } | 
|  193  |  189  | 
|  194 TEST_F(URLRequestContentJobTest, ContentURIWithZeroRange) { |  190 TEST_F(URLRequestContentJobTest, ContentURIWithZeroRange) { | 
|  195   Range range(0, 0); |  191   Range range(0, 0); | 
|  196   RunRequest(&range); |  192   RunRequest(&range); | 
|  197 } |  193 } | 
|  198  |  194  | 
|  199 }  // namespace |  195 }  // namespace | 
|  200  |  196  | 
|  201 }  // namespace content |  197 }  // namespace content | 
| OLD | NEW |