Searched refs:max_bytes (Results 1 - 25 of 71) sorted by relevance

123

/external/chromium_org/chrome/browser/prerender/
H A Dprerender_config.cc9 Config::Config() : max_bytes(150 * 1024 * 1024),
H A Dprerender_config.h20 size_t max_bytes; member in struct:prerender::Config
/external/chromium_org/net/disk_cache/
H A Dcache_creator.cc27 CacheCreator(const base::FilePath& path, bool force, int max_bytes,
60 const base::FilePath& path, bool force, int max_bytes,
68 max_bytes_(max_bytes),
149 int max_bytes,
155 *backend = disk_cache::MemBackendImpl::CreateBackend(max_bytes, net_log);
159 CacheCreator* creator = new CacheCreator(path, force, max_bytes, type,
59 CacheCreator( const base::FilePath& path, bool force, int max_bytes, net::CacheType type, net::BackendType backend_type, uint32 flags, base::MessageLoopProxy* thread, net::NetLog* net_log, scoped_ptr<disk_cache::Backend>* backend, const net::CompletionCallback& callback) argument
146 CreateCacheBackend(net::CacheType type, net::BackendType backend_type, const base::FilePath& path, int max_bytes, bool force, base::MessageLoopProxy* thread, net::NetLog* net_log, scoped_ptr<Backend>* backend, const net::CompletionCallback& callback) argument
H A Dmem_backend_impl.cc44 scoped_ptr<Backend> MemBackendImpl::CreateBackend(int max_bytes, argument
47 cache->SetMaxSize(max_bytes);
77 bool MemBackendImpl::SetMaxSize(int max_bytes) { argument
78 COMPILE_ASSERT(sizeof(max_bytes) == sizeof(max_size_), unsupported_int_model);
79 if (max_bytes < 0)
83 if (!max_bytes)
86 max_size_ = max_bytes;
H A Dmem_backend_impl.h31 // object should be deleted when not needed anymore. max_bytes is the maximum
32 // size the cache can grow to. If zero is passed in as max_bytes, the cache
35 static scoped_ptr<Backend> CreateBackend(int max_bytes, net::NetLog* net_log);
41 bool SetMaxSize(int max_bytes);
/external/chromium/net/disk_cache/
H A Dmem_backend_impl.cc44 Backend* MemBackendImpl::CreateBackend(int max_bytes, net::NetLog* net_log) { argument
46 cache->SetMaxSize(max_bytes);
80 bool MemBackendImpl::SetMaxSize(int max_bytes) { argument
81 COMPILE_ASSERT(sizeof(max_bytes) == sizeof(max_size_), unsupported_int_model);
82 if (max_bytes < 0)
86 if (!max_bytes)
89 max_size_ = max_bytes;
H A Dmem_backend_impl.h32 // object should be deleted when not needed anymore. max_bytes is the maximum
33 // size the cache can grow to. If zero is passed in as max_bytes, the cache
36 static Backend* CreateBackend(int max_bytes, net::NetLog* net_log);
42 bool SetMaxSize(int max_bytes);
/external/chromium_org/chrome/browser/extensions/api/serial/
H A Dserial_io_handler.cc35 void SerialIoHandler::Read(int max_bytes) { argument
38 pending_read_buffer_ = new net::IOBuffer(max_bytes);
39 pending_read_buffer_len_ = max_bytes;
/external/chromium_org/net/quic/
H A Diovector.h75 // Appends at most max_bytes from iovec to the IOVector.
78 size_t max_bytes) {
80 for (size_t i = 0; i < iovcnt && max_bytes > 0; ++i) {
81 const size_t length = std::min(max_bytes, iov[i].iov_len);
83 max_bytes -= length;
76 AppendIovecAtMostBytes(const struct iovec* iov, size_t iovcnt, size_t max_bytes) argument
/external/wpa_supplicant_8/hostapd/src/wps/
H A Dhttpread.h66 * Pass max_bytes == 0 to not read body at all (required for e.g.
74 int max_bytes, /* maximum file size else abort it */
H A Dhttpread.c66 int max_bytes; /* maximum file size else abort it */ member in struct:httpread
357 h->max_bytes = 0;
365 h->max_bytes = 0;
476 if (h->max_bytes == 0) {
522 if (h->body_nbytes >= h->max_bytes)
729 * Pass max_bytes == 0 to not read body at all (required for e.g.
737 int max_bytes, /* maximum body size else abort it */
749 h->max_bytes = max_bytes;
732 httpread_create( int sd, void (*cb)(struct httpread *handle, void *cookie, enum httpread_event e), void *cookie, int max_bytes, int timeout_seconds ) argument
/external/wpa_supplicant_8/src/wps/
H A Dhttpread.h66 * Pass max_bytes == 0 to not read body at all (required for e.g.
74 int max_bytes, /* maximum file size else abort it */
H A Dhttpread.c66 int max_bytes; /* maximum file size else abort it */ member in struct:httpread
357 h->max_bytes = 0;
365 h->max_bytes = 0;
476 if (h->max_bytes == 0) {
522 if (h->body_nbytes >= h->max_bytes)
729 * Pass max_bytes == 0 to not read body at all (required for e.g.
737 int max_bytes, /* maximum body size else abort it */
749 h->max_bytes = max_bytes;
732 httpread_create( int sd, void (*cb)(struct httpread *handle, void *cookie, enum httpread_event e), void *cookie, int max_bytes, int timeout_seconds ) argument
/external/wpa_supplicant_8/wpa_supplicant/src/wps/
H A Dhttpread.h66 * Pass max_bytes == 0 to not read body at all (required for e.g.
74 int max_bytes, /* maximum file size else abort it */
H A Dhttpread.c66 int max_bytes; /* maximum file size else abort it */ member in struct:httpread
357 h->max_bytes = 0;
365 h->max_bytes = 0;
476 if (h->max_bytes == 0) {
522 if (h->body_nbytes >= h->max_bytes)
729 * Pass max_bytes == 0 to not read body at all (required for e.g.
737 int max_bytes, /* maximum body size else abort it */
749 h->max_bytes = max_bytes;
732 httpread_create( int sd, void (*cb)(struct httpread *handle, void *cookie, enum httpread_event e), void *cookie, int max_bytes, int timeout_seconds ) argument
/external/chromium_org/content/test/net/
H A Durl_request_abort_on_end_job.cc101 const int max_bytes,
104 *bytes_read = std::min(size_t(max_bytes), sizeof(kPageContent));
100 ReadRawData(net::IOBuffer* buf, const int max_bytes, int* bytes_read) argument
/external/chromium/sdch/open-vcdiff/src/
H A Dblockhash.h428 // Will not examine more than max_bytes bytes, which is to say that
429 // the return value will be in the range [0, max_bytes] inclusive.
432 int max_bytes);
436 // Will not examine more than max_bytes bytes, which is to say that
437 // the return value will be in the range [0, max_bytes] inclusive.
440 int max_bytes);
H A Dblockhash.cc347 // Will not examine more than max_bytes bytes, which is to say that
348 // the return value will be in the range [0, max_bytes] inclusive.
351 int max_bytes) {
355 while (bytes_found < max_bytes) {
368 // Will not examine more than max_bytes bytes, which is to say that
369 // the return value will be in the range [0, max_bytes] inclusive.
372 int max_bytes) {
376 while ((bytes_found < max_bytes) && (*source_ptr == *target_ptr)) {
349 MatchingBytesToLeft(const char* source_match_start, const char* target_match_start, int max_bytes) argument
370 MatchingBytesToRight(const char* source_match_end, const char* target_match_end, int max_bytes) argument
/external/chromium_org/sdch/open-vcdiff/src/
H A Dblockhash.h428 // Will not examine more than max_bytes bytes, which is to say that
429 // the return value will be in the range [0, max_bytes] inclusive.
432 int max_bytes);
436 // Will not examine more than max_bytes bytes, which is to say that
437 // the return value will be in the range [0, max_bytes] inclusive.
440 int max_bytes);
H A Dblockhash.cc348 // Will not examine more than max_bytes bytes, which is to say that
349 // the return value will be in the range [0, max_bytes] inclusive.
352 int max_bytes) {
356 while (bytes_found < max_bytes) {
369 // Will not examine more than max_bytes bytes, which is to say that
370 // the return value will be in the range [0, max_bytes] inclusive.
373 int max_bytes) {
377 while ((bytes_found < max_bytes) && (*source_ptr == *target_ptr)) {
350 MatchingBytesToLeft(const char* source_match_start, const char* target_match_start, int max_bytes) argument
371 MatchingBytesToRight(const char* source_match_end, const char* target_match_end, int max_bytes) argument
/external/open-vcdiff/src/
H A Dblockhash.h428 // Will not examine more than max_bytes bytes, which is to say that
429 // the return value will be in the range [0, max_bytes] inclusive.
432 int max_bytes);
436 // Will not examine more than max_bytes bytes, which is to say that
437 // the return value will be in the range [0, max_bytes] inclusive.
440 int max_bytes);
H A Dblockhash.cc348 // Will not examine more than max_bytes bytes, which is to say that
349 // the return value will be in the range [0, max_bytes] inclusive.
352 int max_bytes) {
356 while (bytes_found < max_bytes) {
369 // Will not examine more than max_bytes bytes, which is to say that
370 // the return value will be in the range [0, max_bytes] inclusive.
373 int max_bytes) {
377 while ((bytes_found < max_bytes) && (*source_ptr == *target_ptr)) {
350 MatchingBytesToLeft(const char* source_match_start, const char* target_match_start, int max_bytes) argument
371 MatchingBytesToRight(const char* source_match_end, const char* target_match_end, int max_bytes) argument
/external/chromium/chrome/browser/sessions/
H A Dbase_session_service.cc28 // |pickle|, if and only if |str| fits within (|max_bytes| - |*bytes_written|).
30 void WriteStringToPickle(Pickle& pickle, int* bytes_written, int max_bytes, argument
33 if (*bytes_written + num_bytes < max_bytes) {
42 void WriteString16ToPickle(Pickle& pickle, int* bytes_written, int max_bytes, argument
45 if (*bytes_written + num_bytes < max_bytes) {
/external/chromium_org/third_party/openssl/openssl/crypto/rand/
H A Drand.h106 int RAND_load_file(const char *file,long max_bytes);
/external/chromium_org/third_party/openssl/openssl/include/openssl/
H A Drand.h106 int RAND_load_file(const char *file,long max_bytes);

Completed in 849 milliseconds

123