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

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

Issue 6697012: Remove 'off the record' references from ChromeURLContext. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed 'off the record' references from ChromeURLRequestContext. Created 9 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 | Annotate | Revision Log
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 #include "chrome/browser/net/chrome_url_request_context.h" 5 #include "chrome/browser/net/chrome_url_request_context.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/io_thread.h" 10 #include "chrome/browser/io_thread.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // Note that CookieStore is refcounted, yet we do not add a reference. 313 // Note that CookieStore is refcounted, yet we do not add a reference.
314 *result = GetURLRequestContext()->cookie_store(); 314 *result = GetURLRequestContext()->cookie_store();
315 completion->Signal(); 315 completion->Signal();
316 } 316 }
317 317
318 // ---------------------------------------------------------------------------- 318 // ----------------------------------------------------------------------------
319 // ChromeURLRequestContext 319 // ChromeURLRequestContext
320 // ---------------------------------------------------------------------------- 320 // ----------------------------------------------------------------------------
321 321
322 ChromeURLRequestContext::ChromeURLRequestContext() 322 ChromeURLRequestContext::ChromeURLRequestContext()
323 : is_off_the_record_(false) { 323 : is_incognito_(false) {
324 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 324 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
325 } 325 }
326 326
327 void ChromeURLRequestContext::set_chrome_cookie_policy( 327 void ChromeURLRequestContext::set_chrome_cookie_policy(
328 ChromeCookiePolicy* cookie_policy) { 328 ChromeCookiePolicy* cookie_policy) {
329 chrome_cookie_policy_ = cookie_policy; // Take a strong reference. 329 chrome_cookie_policy_ = cookie_policy; // Take a strong reference.
330 set_cookie_policy(cookie_policy); 330 set_cookie_policy(cookie_policy);
331 } 331 }
332 332
333 ChromeURLDataManagerBackend* 333 ChromeURLDataManagerBackend*
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 net::HttpUtil::GenerateAcceptLanguageHeader(accept_language)); 377 net::HttpUtil::GenerateAcceptLanguageHeader(accept_language));
378 } 378 }
379 379
380 void ChromeURLRequestContext::OnDefaultCharsetChange( 380 void ChromeURLRequestContext::OnDefaultCharsetChange(
381 const std::string& default_charset) { 381 const std::string& default_charset) {
382 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 382 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
383 set_referrer_charset(default_charset); 383 set_referrer_charset(default_charset);
384 set_accept_charset( 384 set_accept_charset(
385 net::HttpUtil::GenerateAcceptCharsetHeader(default_charset)); 385 net::HttpUtil::GenerateAcceptCharsetHeader(default_charset));
386 } 386 }
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.h ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698