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

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

Issue 42467: Fix an invalid DCHECK for media request context (Closed)
Patch Set: rvargas & aa's comments Created 11 years, 9 months 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
« no previous file with comments | « no previous file | chrome/browser/net/chrome_url_request_context.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/file_path.h" 5 #include "base/file_path.h"
6 #include "chrome/common/net/cookie_monster_sqlite.h" 6 #include "chrome/common/net/cookie_monster_sqlite.h"
7 #include "chrome/common/notification_observer.h" 7 #include "chrome/common/notification_observer.h"
8 #include "chrome/common/pref_service.h" 8 #include "chrome/common/pref_service.h"
9 #include "net/url_request/url_request_context.h" 9 #include "net/url_request/url_request_context.h"
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 return user_script_dir_path_; 54 return user_script_dir_path_;
55 } 55 }
56 56
57 virtual const std::string& GetUserAgent(const GURL& url) const; 57 virtual const std::string& GetUserAgent(const GURL& url) const;
58 58
59 private: 59 private:
60 // Private constructor, use the static factory methods instead. This is 60 // Private constructor, use the static factory methods instead. This is
61 // expected to be called on the UI thread. 61 // expected to be called on the UI thread.
62 ChromeURLRequestContext(Profile* profile); 62 ChromeURLRequestContext(Profile* profile);
63 63
64 // Create a request context for media resources from a regular request
65 // context. This helper method is called from CreateOriginalForMedia and
66 // CreateOffTheRecordForMedia.
67 static ChromeURLRequestContext* CreateRequestContextForMedia(Profile* profile,
68 const FilePath& disk_cache_path);
69
64 // NotificationObserver implementation. 70 // NotificationObserver implementation.
65 virtual void Observe(NotificationType type, 71 virtual void Observe(NotificationType type,
66 const NotificationSource& source, 72 const NotificationSource& source,
67 const NotificationDetails& details); 73 const NotificationDetails& details);
68 74
69 // Callback for when the accept language changes. 75 // Callback for when the accept language changes.
70 void OnAcceptLanguageChange(std::string accept_language); 76 void OnAcceptLanguageChange(std::string accept_language);
71 77
72 // Callback for when the cookie policy changes. 78 // Callback for when the cookie policy changes.
73 void OnCookiePolicyChange(net::CookiePolicy::Type type); 79 void OnCookiePolicyChange(net::CookiePolicy::Type type);
74 80
75 // Callback for when new extensions are loaded. 81 // Callback for when new extensions are loaded.
76 void OnNewExtensions(ExtensionPaths* new_paths); 82 void OnNewExtensions(ExtensionPaths* new_paths);
77 83
78 // Destructor. 84 // Destructor.
79 virtual ~ChromeURLRequestContext(); 85 virtual ~ChromeURLRequestContext();
80 86
81 // Maps extension IDs to paths on disk. This is initialized in the 87 // Maps extension IDs to paths on disk. This is initialized in the
82 // construtor and updated when extensions changed. 88 // construtor and updated when extensions changed.
83 ExtensionPaths extension_paths_; 89 ExtensionPaths extension_paths_;
84 90
85 // Path to the directory user scripts are stored in. 91 // Path to the directory user scripts are stored in.
86 FilePath user_script_dir_path_; 92 FilePath user_script_dir_path_;
87 93
88 scoped_ptr<SQLitePersistentCookieStore> cookie_db_; 94 scoped_ptr<SQLitePersistentCookieStore> cookie_db_;
89 PrefService* prefs_; 95 PrefService* prefs_;
90 bool is_off_the_record_; 96 bool is_off_the_record_;
91 }; 97 };
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/chrome_url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698