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

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 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 | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/profiles/profile_io_data.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 #include "chrome/browser/profiles/profile_impl_io_data.h" 5 #include "chrome/browser/profiles/profile_impl_io_data.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/common/chrome_switches.h" 23 #include "chrome/common/chrome_switches.h"
24 #include "chrome/common/pref_names.h" 24 #include "chrome/common/pref_names.h"
25 #include "chrome/common/url_constants.h" 25 #include "chrome/common/url_constants.h"
26 #include "content/browser/resource_context.h" 26 #include "content/browser/resource_context.h"
27 #include "content/public/browser/browser_thread.h" 27 #include "content/public/browser/browser_thread.h"
28 #include "net/base/origin_bound_cert_service.h" 28 #include "net/base/origin_bound_cert_service.h"
29 #include "net/ftp/ftp_network_layer.h" 29 #include "net/ftp/ftp_network_layer.h"
30 #include "net/http/http_cache.h" 30 #include "net/http/http_cache.h"
31 #include "net/url_request/url_request_job_factory.h" 31 #include "net/url_request/url_request_job_factory.h"
32 32
33 using content::BrowserThread;
34
33 namespace { 35 namespace {
34 36
35 void ClearNetworkingHistorySinceOnIOThread( 37 void ClearNetworkingHistorySinceOnIOThread(
36 ProfileImplIOData* io_data, base::Time time) { 38 ProfileImplIOData* io_data, base::Time time) {
37 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 39 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
38 io_data->transport_security_state()->DeleteSince(time); 40 io_data->transport_security_state()->DeleteSince(time);
39 io_data->http_server_properties()->Clear(); 41 io_data->http_server_properties()->Clear();
40 } 42 }
41 43
42 } // namespace 44 } // namespace
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 scoped_refptr<ChromeURLRequestContext> 487 scoped_refptr<ChromeURLRequestContext>
486 ProfileImplIOData::AcquireIsolatedAppRequestContext( 488 ProfileImplIOData::AcquireIsolatedAppRequestContext(
487 scoped_refptr<ChromeURLRequestContext> main_context, 489 scoped_refptr<ChromeURLRequestContext> main_context,
488 const std::string& app_id) const { 490 const std::string& app_id) const {
489 // We create per-app contexts on demand, unlike the others above. 491 // We create per-app contexts on demand, unlike the others above.
490 scoped_refptr<ChromeURLRequestContext> app_request_context = 492 scoped_refptr<ChromeURLRequestContext> app_request_context =
491 InitializeAppRequestContext(main_context, app_id); 493 InitializeAppRequestContext(main_context, app_id);
492 DCHECK(app_request_context); 494 DCHECK(app_request_context);
493 return app_request_context; 495 return app_request_context;
494 } 496 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698