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

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

Issue 6342016: Remove ChromeURLRequestContext::is_media_ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years, 11 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 | Annotate | Revision Log
« 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) 2011 The Chromium 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 #ifndef CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_
6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ 6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 // Gets the file system host context with this context's profile. 74 // Gets the file system host context with this context's profile.
75 fileapi::SandboxedFileSystemContext* file_system_context() const { 75 fileapi::SandboxedFileSystemContext* file_system_context() const {
76 return file_system_context_.get(); 76 return file_system_context_.get();
77 } 77 }
78 78
79 bool is_off_the_record() const { 79 bool is_off_the_record() const {
80 return is_off_the_record_; 80 return is_off_the_record_;
81 } 81 }
82 bool is_media() const {
83 return is_media_;
84 }
85 82
86 virtual const std::string& GetUserAgent(const GURL& url) const; 83 virtual const std::string& GetUserAgent(const GURL& url) const;
87 84
88 HostContentSettingsMap* host_content_settings_map() { 85 HostContentSettingsMap* host_content_settings_map() {
89 return host_content_settings_map_; 86 return host_content_settings_map_;
90 } 87 }
91 88
92 const HostZoomMap* host_zoom_map() const { return host_zoom_map_; } 89 const HostZoomMap* host_zoom_map() const { return host_zoom_map_; }
93 90
94 const ExtensionInfoMap* extension_info_map() const { 91 const ExtensionInfoMap* extension_info_map() const {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void set_cookie_policy(ChromeCookiePolicy* cookie_policy) { 131 void set_cookie_policy(ChromeCookiePolicy* cookie_policy) {
135 chrome_cookie_policy_ = cookie_policy; // Take a strong reference. 132 chrome_cookie_policy_ = cookie_policy; // Take a strong reference.
136 cookie_policy_ = cookie_policy; 133 cookie_policy_ = cookie_policy;
137 } 134 }
138 void set_user_script_dir_path(const FilePath& path) { 135 void set_user_script_dir_path(const FilePath& path) {
139 user_script_dir_path_ = path; 136 user_script_dir_path_ = path;
140 } 137 }
141 void set_is_off_the_record(bool is_off_the_record) { 138 void set_is_off_the_record(bool is_off_the_record) {
142 is_off_the_record_ = is_off_the_record; 139 is_off_the_record_ = is_off_the_record;
143 } 140 }
144 void set_is_media(bool is_media) {
145 is_media_ = is_media;
146 }
147 void set_host_content_settings_map( 141 void set_host_content_settings_map(
148 HostContentSettingsMap* host_content_settings_map) { 142 HostContentSettingsMap* host_content_settings_map) {
149 host_content_settings_map_ = host_content_settings_map; 143 host_content_settings_map_ = host_content_settings_map;
150 } 144 }
151 void set_host_zoom_map(HostZoomMap* host_zoom_map) { 145 void set_host_zoom_map(HostZoomMap* host_zoom_map) {
152 host_zoom_map_ = host_zoom_map; 146 host_zoom_map_ = host_zoom_map;
153 } 147 }
154 void set_appcache_service(ChromeAppCacheService* service) { 148 void set_appcache_service(ChromeAppCacheService* service) {
155 appcache_service_ = service; 149 appcache_service_ = service;
156 } 150 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 scoped_refptr<ChromeAppCacheService> appcache_service_; 182 scoped_refptr<ChromeAppCacheService> appcache_service_;
189 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; 183 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_;
190 scoped_refptr<ChromeCookiePolicy> chrome_cookie_policy_; 184 scoped_refptr<ChromeCookiePolicy> chrome_cookie_policy_;
191 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 185 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
192 scoped_refptr<HostZoomMap> host_zoom_map_; 186 scoped_refptr<HostZoomMap> host_zoom_map_;
193 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; 187 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
194 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_; 188 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_;
195 scoped_refptr<ExtensionInfoMap> extension_info_map_; 189 scoped_refptr<ExtensionInfoMap> extension_info_map_;
196 scoped_refptr<PrerenderManager> prerender_manager_; 190 scoped_refptr<PrerenderManager> prerender_manager_;
197 191
198 bool is_media_;
199 bool is_off_the_record_; 192 bool is_off_the_record_;
200 193
201 private: 194 private:
202 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContext); 195 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContext);
203 }; 196 };
204 197
205 // A URLRequestContextGetter subclass used by the browser. This returns a 198 // A URLRequestContextGetter subclass used by the browser. This returns a
206 // subclass of net::URLRequestContext which can be used to store extra 199 // subclass of net::URLRequestContext which can be used to store extra
207 // information about requests. 200 // information about requests.
208 // 201 //
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 361
369 FilePath profile_dir_path_; 362 FilePath profile_dir_path_;
370 363
371 private: 364 private:
372 IOThread* const io_thread_; 365 IOThread* const io_thread_;
373 366
374 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory); 367 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory);
375 }; 368 };
376 369
377 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ 370 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_
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