| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "native_client/src/trusted/plugin/file_downloader.h" | 5 #include "native_client/src/trusted/plugin/file_downloader.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "native_client/src/include/portability_io.h" | 10 #include "native_client/src/include/portability_io.h" |
| 11 #include "native_client/src/shared/platform/nacl_check.h" | 11 #include "native_client/src/shared/platform/nacl_check.h" |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 | 329 |
| 330 bool FileDownloader::streaming_to_file() const { | 330 bool FileDownloader::streaming_to_file() const { |
| 331 return (flags_ & DOWNLOAD_TO_BUFFER) == 0; | 331 return (flags_ & DOWNLOAD_TO_BUFFER) == 0; |
| 332 } | 332 } |
| 333 | 333 |
| 334 bool FileDownloader::streaming_to_buffer() const { | 334 bool FileDownloader::streaming_to_buffer() const { |
| 335 return (flags_ & DOWNLOAD_TO_BUFFER) == 1; | 335 return (flags_ & DOWNLOAD_TO_BUFFER) == 1; |
| 336 } | 336 } |
| 337 | 337 |
| 338 } // namespace plugin | 338 } // namespace plugin |
| OLD | NEW |