Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: chrome/browser/net/chrome_url_request_context.cc

Issue 330026: Http cache: Handle byte range requests when there is no cache entry.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/http/http_cache.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/net/chrome_url_request_context.h" 5 #include "chrome/browser/net/chrome_url_request_context.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/privacy_blacklist/blacklist.h" 10 #include "chrome/browser/privacy_blacklist/blacklist.h"
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 // Factory that creates the ChromeURLRequestContext for media. 435 // Factory that creates the ChromeURLRequestContext for media.
436 class FactoryForMedia : public ChromeURLRequestContextFactory { 436 class FactoryForMedia : public ChromeURLRequestContextFactory {
437 public: 437 public:
438 FactoryForMedia(Profile* profile, 438 FactoryForMedia(Profile* profile,
439 const FilePath& disk_cache_path, 439 const FilePath& disk_cache_path,
440 int cache_size, 440 int cache_size,
441 bool off_the_record) 441 bool off_the_record)
442 : ChromeURLRequestContextFactory(profile), 442 : ChromeURLRequestContextFactory(profile),
443 main_context_getter_( 443 main_context_getter_(
444 static_cast<ChromeURLRequestContextGetter*>( 444 static_cast<ChromeURLRequestContextGetter*>(
445 profile->GetRequestContext())) { 445 profile->GetRequestContext())),
446 disk_cache_path_(disk_cache_path),
447 cache_size_(cache_size) {
446 is_media_ = true; 448 is_media_ = true;
447 is_off_the_record_ = off_the_record; 449 is_off_the_record_ = off_the_record;
448 } 450 }
449 451
450 virtual ChromeURLRequestContext* Create(); 452 virtual ChromeURLRequestContext* Create();
451 453
452 private: 454 private:
453 scoped_refptr<ChromeURLRequestContextGetter> main_context_getter_; 455 scoped_refptr<ChromeURLRequestContextGetter> main_context_getter_;
454 456
455 FilePath disk_cache_path_; 457 FilePath disk_cache_path_;
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 return result; 883 return result;
882 } 884 }
883 885
884 void ChromeURLRequestContextGetter::GetCookieStoreAsyncHelper( 886 void ChromeURLRequestContextGetter::GetCookieStoreAsyncHelper(
885 base::WaitableEvent* completion, 887 base::WaitableEvent* completion,
886 net::CookieStore** result) { 888 net::CookieStore** result) {
887 // Note that CookieStore is refcounted, yet we do not add a reference. 889 // Note that CookieStore is refcounted, yet we do not add a reference.
888 *result = GetURLRequestContext()->cookie_store(); 890 *result = GetURLRequestContext()->cookie_store();
889 completion->Signal(); 891 completion->Signal();
890 } 892 }
OLDNEW
« no previous file with comments | « no previous file | net/http/http_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698